CVE-2025-38004
can: bcm: add locking for bcm_op runtime updates
Check your servers for CVE-2025-38004
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-2025-38004 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.
Description
In the Linux kernel, the following vulnerability has been resolved:
can: bcm: add locking for bcm_op runtime updates
The CAN broadcast manager (CAN BCM) can send a sequence of CAN frames via hrtimer. The content and also the length of the sequence can be changed resp reduced at runtime where the 'currframe' counter is then set to zero.
Although this appeared to be a safe operation the updates of 'currframe' can be triggered from user space and hrtimer context in bcm_can_tx(). Anderson Nascimento created a proof of concept that triggered a KASAN slab-out-of-bounds read access which can be prevented with a spin_lock_bh.
At the rework of bcm_can_tx() the 'count' variable has been moved into the protected section as this variable can be modified from both contexts too.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/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 low, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.28%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 21.4% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 15 Oct 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from ffd980f976e7fd666c2e61bf8ab35107efd11828, before 8f1c022541bf5a923c8d6fa483112c15250f30a4 affected from ffd980f976e7fd666c2e61bf8ab35107efd11828, before 7595de7bc56e0e52b74e56c90f7e247bf626d628 affected from ffd980f976e7fd666c2e61bf8ab35107efd11828, before fbd8fdc2b218e979cfe422b139b8f74c12419d1f affected from ffd980f976e7fd666c2e61bf8ab35107efd11828, before 2a437b86ac5a9893c902f30ef66815bf13587bf6 affected from ffd980f976e7fd666c2e61bf8ab35107efd11828, before 76c84c3728178b2d38d5604e399dfe8b0752645e affected from ffd980f976e7fd666c2e61bf8ab35107efd11828, before cc55dd28c20a6611e30596019b3b2f636819a4c0 affected from ffd980f976e7fd666c2e61bf8ab35107efd11828, before c4e8a172501e677ebd8ea9d9161d97dc4df56fbd affected from ffd980f976e7fd666c2e61bf8ab35107efd11828, before c2aba69d0c36a496ab4f2e81e9c2b271f2693fd7
Other versions: unaffected
|
| Linux |
affected 2.6.25 unaffected before 2.6.25 unaffected from 5.4.294 up to and including 5.4.* unaffected from 5.10.238 up to and including 5.10.* unaffected from 5.15.185 up to and including 5.15.* unaffected from 6.1.141 up to and including 6.1.* unaffected from 6.6.93 up to and including 6.6.* unaffected from 6.12.31 up to and including 6.12.* unaffected from 6.14.9 up to and including 6.14.* unaffected 6.15 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-2025-38004 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38004
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-2025-38004
trivy image --scanners vuln IMAGE | grep CVE-2025-38004
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
- https://git.kernel.org/stable/c/8f1c022541bf5a923c8d6fa483112c15250f30a4 git.kernel.org
- https://git.kernel.org/stable/c/7595de7bc56e0e52b74e56c90f7e247bf626d628 git.kernel.org
- https://git.kernel.org/stable/c/fbd8fdc2b218e979cfe422b139b8f74c12419d1f git.kernel.org
- https://git.kernel.org/stable/c/2a437b86ac5a9893c902f30ef66815bf13587bf6 git.kernel.org
- https://git.kernel.org/stable/c/76c84c3728178b2d38d5604e399dfe8b0752645e git.kernel.org
- https://git.kernel.org/stable/c/cc55dd28c20a6611e30596019b3b2f636819a4c0 git.kernel.org
- https://git.kernel.org/stable/c/c4e8a172501e677ebd8ea9d9161d97dc4df56fbd git.kernel.org
- https://git.kernel.org/stable/c/c2aba69d0c36a496ab4f2e81e9c2b271f2693fd7 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html lists.debian.org
Source: the record CVE-2025-38004 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse