CVEvulnerability

CVE-2025-38004

7.1 HIGH Published 2025-06-08 Modified 2026-10-15 Official page ↗
Status
Modified
Published
2025-06-08
Last modified
2026-10-15
Assigner
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS 3.1 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)
7.3 HIGH — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H
CVSS 3.1 ([email protected])
7.1 HIGH — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Weaknesses
CWE-125

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 configurations

• linux linux kernel (>= 2.6.25 < 5.4.294) • linux linux kernel (>= 5.5 < 5.10.238) • linux linux kernel (>= 5.11 < 5.15.185) • linux linux kernel (>= 5.16 < 6.1.141) • linux linux kernel (>= 6.2 < 6.6.93) • linux linux kernel (>= 6.7 < 6.12.31) • linux linux kernel (>= 6.13 < 6.14.9) • linux linux kernel 6.15 • debian debian linux 11.0

Related

Weakness · CWE (1)

  • CWE-125 Out-of-bounds Read weakness

References