CVE-2023-52922

can: bcm: Fix UAF in bcm_proc_show()

7.8 high EPSS 0.30%

Published 28 Nov 2024 Updated 5 Aug 2026 CNA: Linux

Check your servers for CVE-2023-52922

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-52922 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

In the Linux kernel, the following vulnerability has been resolved:

can: bcm: Fix UAF in bcm_proc_show()

BUG: KASAN: slab-use-after-free in bcm_proc_show+0x969/0xa80 Read of size 8 at addr ffff888155846230 by task cat/7862

CPU: 1 PID: 7862 Comm: cat Not tainted 6.5.0-rc1-00153-gc8746099c197 #230 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/01/2014 Call Trace: <TASK> dump_stack_lvl+0xd5/0x150 print_report+0xc1/0x5e0 kasan_report+0xba/0xf0 bcm_proc_show+0x969/0xa80 seq_read_iter+0x4f6/0x1260 seq_read+0x165/0x210 proc_reg_read+0x227/0x300 vfs_read+0x1d5/0x8d0 ksys_read+0x11e/0x240 do_syscall_64+0x35/0xb0 entry_SYSCALL_64_after_hwframe+0x63/0xcd

Allocated by task 7846: kasan_save_stack+0x1e/0x40 kasan_set_track+0x21/0x30 __kasan_kmalloc+0x9e/0xa0 bcm_sendmsg+0x264b/0x44e0 sock_sendmsg+0xda/0x180 ____sys_sendmsg+0x735/0x920 ___sys_sendmsg+0x11d/0x1b0 __sys_sendmsg+0xfa/0x1d0 do_syscall_64+0x35/0xb0 entry_SYSCALL_64_after_hwframe+0x63/0xcd

Freed by task 7846: kasan_save_stack+0x1e/0x40 kasan_set_track+0x21/0x30 kasan_save_free_info+0x27/0x40 ____kasan_slab_free+0x161/0x1c0 slab_free_freelist_hook+0x119/0x220 __kmem_cache_free+0xb4/0x2e0 rcu_core+0x809/0x1bd0

bcm_op is freed before procfs entry be removed in bcm_release(), this lead to bcm_proc_show() may read the freed bcm_op.

Severity (CVSS)

7.8 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
7.8 high CVSS 3.1 from CISA (ADP)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.30%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 23.9% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 11 Dec 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
total: full control of the component or of its data

Weakness

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from ffd980f976e7fd666c2e61bf8ab35107efd11828, before 11b8e27ed448baa385d90154a141466bd5e92f18
affected from ffd980f976e7fd666c2e61bf8ab35107efd11828, before 9b58d36d0c1ea29a9571e0222a9c29df0ccfb7ff
affected from ffd980f976e7fd666c2e61bf8ab35107efd11828, before 9533dbfac0ff7edd77a5fa2c24974b1d66c8b0a6
affected from ffd980f976e7fd666c2e61bf8ab35107efd11828, before cf254b4f68e480e73dab055014e002b77aed30ed
affected from ffd980f976e7fd666c2e61bf8ab35107efd11828, before 3c3941bb1eb53abe7d640ffee5c4d6b559829ab3
affected from ffd980f976e7fd666c2e61bf8ab35107efd11828, before 995f47d76647708ec26c6e388663ad4f3f264787
affected from ffd980f976e7fd666c2e61bf8ab35107efd11828, before dfd0aa26e9a07f2ce546ccf8304ead6a2914e8a7
affected from ffd980f976e7fd666c2e61bf8ab35107efd11828, before 55c3b96074f3f9b0aee19bf93cd71af7516582bb
Other versions: unaffected
Linux
affected 2.6.25
unaffected before 2.6.25
unaffected from 4.14.322 up to and including 4.14.*
unaffected from 4.19.291 up to and including 4.19.*
unaffected from 5.4.251 up to and including 5.4.*
unaffected from 5.10.188 up to and including 5.10.*
unaffected from 5.15.123 up to and including 5.15.*
unaffected from 6.1.42 up to and including 6.1.*
unaffected from 6.4.7 up to and including 6.4.*
unaffected 6.5 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2023-52922 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-52922

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2023-52922
trivy image --scanners vuln IMAGE | grep CVE-2023-52922

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2023-52922 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.