CVE-2025-38004

can: bcm: add locking for bcm_op runtime updates

HIGH
7.1
CVSS Score
Published: June 8, 2025 at 10:34 AM UTC
Updated: October 15, 2026 at 10:18 PM UTC
2 products affected across 2 vendorsLinux KernelDebian Linux

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.1
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

2.6.25 ≤ v < 5.4.2945.11 ≤ v < 5.15.1855.16 ≤ v < 6.1.1415.5 ≤ v < 5.10.2386.13 ≤ v < 6.14.96.2 ≤ v < 6.6.936.7 ≤ v < 6.12.316.156.15 rc16.15 rc26.15 rc36.15 rc46.15 rc56.15 rc66.15 rc7ffd980f976e7fd666c2e61bf8ab35107efd11828
Vendor states this is fixed in 2a437b86ac5a9893c902f30ef66815bf13587bf6 (fixed)
Vendor states this is fixed in 7595de7bc56e0e52b74e56c90f7e247bf626d628 (fixed)
Vendor states this is fixed in 76c84c3728178b2d38d5604e399dfe8b0752645e (fixed)
Vendor states this is fixed in 8f1c022541bf5a923c8d6fa483112c15250f30a4 (fixed)
Vendor states this is fixed in c2aba69d0c36a496ab4f2e81e9c2b271f2693fd7 (fixed)
Vendor states this is fixed in c4e8a172501e677ebd8ea9d9161d97dc4df56fbd (fixed)
Vendor states this is fixed in cc55dd28c20a6611e30596019b3b2f636819a4c0 (fixed)
Vendor states this is fixed in fbd8fdc2b218e979cfe422b139b8f74c12419d1f (fixed)
Vendor states this is fixed in 2.6.25 (unaffected)
Vendor states this is fixed in 5.10.238 (unaffected)
Vendor states this is fixed in 5.15.185 (unaffected)
Vendor states this is fixed in 5.4.294 (unaffected)
Vendor states this is fixed in 6.1.141 (unaffected)
Vendor states this is fixed in 6.12.31 (unaffected)
Vendor states this is fixed in 6.14.9 (unaffected)
Vendor states this is fixed in 6.15 (unaffected)
Vendor states this is fixed in 6.6.93 (unaffected)

References (10)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2a437b86ac5a9893c902f30ef66815bf13587bf6
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7595de7bc56e0e52b74e56c90f7e247bf626d628
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/76c84c3728178b2d38d5604e399dfe8b0752645e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8f1c022541bf5a923c8d6fa483112c15250f30a4
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c2aba69d0c36a496ab4f2e81e9c2b271f2693fd7
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c4e8a172501e677ebd8ea9d9161d97dc4df56fbd
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/cc55dd28c20a6611e30596019b3b2f636819a4c0
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/fbd8fdc2b218e979cfe422b139b8f74c12419d1f

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-125

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card