# CVE-2025-38004: can: bcm: add locking for bcm_op runtime updates

- Severity: High 7.3 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 21% of CVEs (2026-12-01)
- Published: 2025-06-08T10:34:56.484Z
- Modified: 2026-10-15T22:18:24.450Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from ffd980f976e7fd666c2e61bf8ab35107efd11828 before 8f1c022541bf5a923c8d6fa483112c15250f30a4; from ffd980f976e7fd666c2e61bf8ab35107efd11828 before 7595de7bc56e0e52b74e56c90f7e247bf626d628; from ffd980f976e7fd666c2e61bf8ab35107efd11828 before fbd8fdc2b218e979cfe422b139b8f74c12419d1f; from ffd980f976e7fd666c2e61bf8ab35107efd11828 before 2a437b86ac5a9893c902f30ef66815bf13587bf6; from ffd980f976e7fd666c2e61bf8ab35107efd11828 before 76c84c3728178b2d38d5604e399dfe8b0752645e; from ffd980f976e7fd666c2e61bf8ab35107efd11828 before cc55dd28c20a6611e30596019b3b2f636819a4c0; from ffd980f976e7fd666c2e61bf8ab35107efd11828 before c4e8a172501e677ebd8ea9d9161d97dc4df56fbd; from ffd980f976e7fd666c2e61bf8ab35107efd11828 before c2aba69d0c36a496ab4f2e81e9c2b271f2693fd7; 2.6.25 (not affected: before 2.6.25; from 5.4.294 up to 5.4.*; from 5.10.238 up to 5.10.*; from 5.15.185 up to 5.15.*; from 6.1.141 up to 6.1.*; from 6.6.93 up to 6.6.*; from 6.12.31 up to 6.12.*; from 6.14.9 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: from 2.6.25 before 5.4.294; from 5.5 before 5.10.238; from 5.11 before 5.15.185; from 5.16 before 6.1.141; from 6.2 before 6.6.93; from 6.7 before 6.12.31; from 6.13 before 6.14.9; 6.15
- debian debian_linux: 11.0

## Every score

- Linux: CVSS:3.1 7.3 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/8f1c022541bf5a923c8d6fa483112c15250f30a4> (patch)
- <https://git.kernel.org/stable/c/7595de7bc56e0e52b74e56c90f7e247bf626d628> (patch)
- <https://git.kernel.org/stable/c/fbd8fdc2b218e979cfe422b139b8f74c12419d1f> (patch)
- <https://git.kernel.org/stable/c/2a437b86ac5a9893c902f30ef66815bf13587bf6> (patch)
- <https://git.kernel.org/stable/c/76c84c3728178b2d38d5604e399dfe8b0752645e> (patch)
- <https://git.kernel.org/stable/c/cc55dd28c20a6611e30596019b3b2f636819a4c0> (patch)
- <https://git.kernel.org/stable/c/c4e8a172501e677ebd8ea9d9161d97dc4df56fbd> (patch)
- <https://git.kernel.org/stable/c/c2aba69d0c36a496ab4f2e81e9c2b271f2693fd7> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html> (third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html> (third-party-advisory)

## Sources

- CVE List: [CVE-2025-38004](https://www.cve.org/CVERecord?id=CVE-2025-38004), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2025-38004](https://nvd.nist.gov/vuln/detail/CVE-2025-38004), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2025-38004 · Whole record: https://cve.day/CVE-2025-38004.json · Rebuilt by cve.day 2026-11-25T22:58:58.911Z
