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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.3
- **CVSS:** 7.3 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: Low; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 17, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2025-06-08T10:34:56.484Z
- **Modified:** 2026-10-15T22:18:24.450Z

## Who should check

- Anyone running Linux \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< 8f1c022541bf5a923c8d6fa483112c15250f30a4; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< 7595de7bc56e0e52b74e56c90f7e247bf626d628; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< fbd8fdc2b218e979cfe422b139b8f74c12419d1f; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< 2a437b86ac5a9893c902f30ef66815bf13587bf6; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< 76c84c3728178b2d38d5604e399dfe8b0752645e; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< cc55dd28c20a6611e30596019b3b2f636819a4c0; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< c4e8a172501e677ebd8ea9d9161d97dc4df56fbd; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< c2aba69d0c36a496ab4f2e81e9c2b271f2693fd7
- Anyone running Linux 2.6.25

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

## Affected and fixed versions

- Linux: \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< 8f1c022541bf5a923c8d6fa483112c15250f30a4; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< 7595de7bc56e0e52b74e56c90f7e247bf626d628; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< fbd8fdc2b218e979cfe422b139b8f74c12419d1f; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< 2a437b86ac5a9893c902f30ef66815bf13587bf6; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< 76c84c3728178b2d38d5604e399dfe8b0752645e; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< cc55dd28c20a6611e30596019b3b2f636819a4c0; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< c4e8a172501e677ebd8ea9d9161d97dc4df56fbd; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< c2aba69d0c36a496ab4f2e81e9c2b271f2693fd7 (cvelist)
- Linux: 2.6.25 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38004. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38004.md
Affected: Linux >= ffd980f976e7fd666c2e61bf8ab35107efd11828, < 8f1c022541bf5a923c8d6fa483112c15250f30a4; >= ffd980f976e7fd666c2e61bf8ab35107efd11828, < 7595de7bc56e0e52b74e56c90f7e247bf626d628; >= ffd980f976e7fd666c2e61bf8ab35107efd11828, < fbd8fdc2b218e979cfe422b139b8f74c12419d1f; >= ffd980f976e7fd666c2e61b…
Fixed in: Linux 8f1c022541bf5a923c8d6fa483112c15250f30a4, Linux 7595de7bc56e0e52b74e56c90f7e247bf626d628, Linux 2a437b86ac5a9893c902f30ef66815bf13587bf6, Linux 76c84c3728178b2d38d5604e399dfe8b0752645e

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-38004 being exploited?

There is no confirmed exploitation: CVE-2025-38004 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-38004?

High: CVSS 7.3 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38004?

Linux \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< 8f1c022541bf5a923c8d6fa483112c15250f30a4; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< 7595de7bc56e0e52b74e56c90f7e247bf626d628; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< fbd8fdc2b218e979cfe422b139b8f74c12419d1f; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< 2a437b86ac5a9893c902f30ef66815bf13587bf6; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< 76c84c3728178b2d38d5604e399dfe8b0752645e; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< cc55dd28c20a6611e30596019b3b2f636819a4c0; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< c4e8a172501e677ebd8ea9d9161d97dc4df56fbd; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< c2aba69d0c36a496ab4f2e81e9c2b271f2693fd7; Linux 2.6.25.

### Is there a fix for CVE-2025-38004?

Yes. Fixed in Linux 8f1c022541bf5a923c8d6fa483112c15250f30a4, Linux 7595de7bc56e0e52b74e56c90f7e247bf626d628, Linux 2a437b86ac5a9893c902f30ef66815bf13587bf6, Linux 76c84c3728178b2d38d5604e399dfe8b0752645e. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-38004?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38004>

HTML: <https://flawdb.com/CVE-2025-38004> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38004>
