CVE-2025-38004
published high CVSS 3.1 · 7.3can: bcm: add locking for bcm_op runtime updates
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxffd980f976e7fd666c2e61bf8ab35107efd11828 to < 8f1c022541bf5a923c8d6fa483112c15250f30a4 · ffd980f976e7fd666c2e61bf8ab35107efd11828 to < 7595de7bc56e0e52b74e56c90f7e247bf626d628 · ffd980f976e7fd666c2e61bf8ab35107efd11828 to < fbd8fdc2b218e979cfe422b139b8f74c12419d1f · ffd980f976e7fd666c2e61bf8ab35107efd11828 to < 2a437b86ac5a9893c902f30ef66815bf13587bf6 · ffd980f976e7fd666c2e61bf8ab35107efd11828 to < 76c84c3728178b2d38d5604e399dfe8b0752645e · ffd980f976e7fd666c2e61bf8ab35107efd11828 to < cc55dd28c20a6611e30596019b3b2f636819a4c0 · ffd980f976e7fd666c2e61bf8ab35107efd11828 to < c4e8a172501e677ebd8ea9d9161d97dc4df56fbd · ffd980f976e7fd666c2e61bf8ab35107efd11828 to < c2aba69d0c36a496ab4f2e81e9c2b271f2693fd7 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux2.6.25 (affected) · 0 to < 2.6.25 (unaffected · semver) · 5.4.294 through 5.4.* (unaffected · semver) · 5.10.238 through 5.10.* (unaffected · semver) · 5.15.185 through 5.15.* (unaffected · semver) · 6.1.141 through 6.1.* (unaffected · semver) · 6.6.93 through 6.6.* (unaffected · semver) · 6.12.31 through 6.12.* (unaffected · semver) · 6.14.9 through 6.14.* (unaffected · semver) · 6.15 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.10-2025-095 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.15-2025-075 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.4-2025-103 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 9 | kernel | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
Show 100 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-1037 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-1052 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 9 | kernel-64k | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-64k | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-64k-core | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-64k-core | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-64k-debug | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-64k-debug | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-64k-debug-core | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-64k-debug-core | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-64k-debug-devel | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-64k-debug-devel | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-64k-debug-devel-matched | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-64k-debug-devel-matched | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-64k-debug-modules | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-64k-debug-modules | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-64k-debug-modules-core | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-64k-debug-modules-core | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-64k-debug-modules-extra | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-64k-debug-modules-extra | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-64k-devel | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-64k-devel | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-64k-devel-matched | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-64k-devel-matched | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-64k-modules | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-64k-modules | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-64k-modules-core | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-64k-modules-core | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-64k-modules-extra | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-64k-modules-extra | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-abi-stablelists | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-abi-stablelists | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-core | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-core | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-cross-headers | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-cross-headers | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-debug | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-debug | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-debug-core | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-debug-core | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-debug-devel | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-debug-devel | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-debug-devel-matched | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-debug-devel-matched | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-debug-modules | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-debug-modules | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-debug-modules-core | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-debug-modules-core | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-debug-modules-extra | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-debug-modules-extra | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-debug-uki-virt | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-debug-uki-virt | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-devel | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-devel | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-devel-matched | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-devel-matched | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-doc | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-doc | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-headers | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-headers | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-modules | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-modules | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-modules-core | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-modules-core | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-modules-extra | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-modules-extra | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-rt | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-rt | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-rt-64k | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-rt-64k | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-rt-64k-core | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-rt-64k-core | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-rt-64k-debug | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-rt-64k-debug | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-rt-64k-debug-core | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-rt-64k-debug-core | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-rt-64k-debug-devel | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-rt-64k-debug-devel | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-rt-64k-debug-modules | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-rt-64k-debug-modules | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-rt-64k-debug-modules-core | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-rt-64k-debug-modules-core | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-rt-64k-debug-modules-extra | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-rt-64k-debug-modules-extra | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-rt-64k-devel | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-rt-64k-devel | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-rt-64k-modules | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-rt-64k-modules | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-rt-64k-modules-core | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-rt-64k-modules-core | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-rt-64k-modules-extra | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-rt-64k-modules-extra | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-rt-core | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-rt-core | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-rt-debug | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-rt-debug | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-rt-debug-core | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-rt-debug-core | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
| AlmaLinux | 9 | kernel-rt-debug-devel | Advisory build | 5.14.0-687.45.1.el9_8 | ALSA-2026:64808 |
| AlmaLinux | 9 | kernel-rt-debug-devel | Advisory build | 5.14.0-741.20.1.el9_9 | ALSA-2026:97873 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.3 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H
- Scenarios
- en: AV:L - Exploitation requires a local `socket(PF_CAN, SOCK_DGRAM, CAN_BCM)` and concurrent `sendmsg()` calls; the race is between the local socket's user context and the local hrtimer softirq, with no remote input involved. AC:L - The attacker controls both sides of the race — arming the hrtimer with a 1 µs `ival` (allowed by `bcm_is_invalid_tv()`) to spin `bcm_can_tx()` in softirq while looping `TX_SETUP|TX_ANNOUNCE` sendmsg on another CPU; a working PoC was written and tested by the reporter. PR:L - `can_create()` performs no capability check and `can-bcm` is module-autoloaded on socket creation, so any unprivileged local user can reach `bcm_tx_setup()`; the required CAN netdev exists by default on automotive/industrial targets and is otherwise creatable via `unshare -Urn` plus vcan. UI:N - The attacker triggers the entire sequence from its own process — socket creation, timer arming, and the concurrent TX_SETUP updates — with no victim action required. S:U - The out-of-bounds read, the leaked pointers, and the counter underflow are all confined to the kernel's own security authority; no VM, IOMMU, or sandbox boundary is crossed. C:H - The OOB read is not merely detected by KASAN — the stale-heap bytes are copied into an skb and looped back by `can_send(skb, 1)`, so up to 72 bytes of adjacent slab memory per iteration, including the `op->sk` and `op->rx_reg_dev` kernel pointers, are delivered to a userspace `CAN_RAW` socket, giving a repeatable heap/KASLR disclosure primitive. I:L - No out-of-bounds write primitive exists (`currframe` is only a read index), but the unsynchronized `op->count--` from both contexts corrupts kernel state by underflowing the u32 counter, and `op->currframe` itself is left in an invalid out-of-range state, causing the kernel to emit frames it was never instructed to send. A:H - The `op->count` underflow to 0xFFFFFFFF makes `bcm_tx_set_expiry()` re-arm indefinitely at a 1 µs interval, producing a persistent softirq/TX flood that starves the CPU, and the slab-out-of-bounds access panics KASAN/hardened kernels outright.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | ffd980f976e7fd666c2e61bf8ab35107efd11828 to < 8f1c022541bf5a923c8d6fa483112c15250f30a4 (affected · git)ffd980f976e7fd666c2e61bf8ab35107efd11828 to < 7595de7bc56e0e52b74e56c90f7e247bf626d628 (affected · git)ffd980f976e7fd666c2e61bf8ab35107efd11828 to < fbd8fdc2b218e979cfe422b139b8f74c12419d1f (affected · git)ffd980f976e7fd666c2e61bf8ab35107efd11828 to < 2a437b86ac5a9893c902f30ef66815bf13587bf6 (affected · git)ffd980f976e7fd666c2e61bf8ab35107efd11828 to < 76c84c3728178b2d38d5604e399dfe8b0752645e (affected · git)ffd980f976e7fd666c2e61bf8ab35107efd11828 to < cc55dd28c20a6611e30596019b3b2f636819a4c0 (affected · git)ffd980f976e7fd666c2e61bf8ab35107efd11828 to < c4e8a172501e677ebd8ea9d9161d97dc4df56fbd (affected · git)ffd980f976e7fd666c2e61bf8ab35107efd11828 to < c2aba69d0c36a496ab4f2e81e9c2b271f2693fd7 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 2.6.25 (affected)0 to < 2.6.25 (unaffected · semver)5.4.294 through 5.4.* (unaffected · semver)5.10.238 through 5.10.* (unaffected · semver)5.15.185 through 5.15.* (unaffected · semver)6.1.141 through 6.1.* (unaffected · semver)6.6.93 through 6.6.* (unaffected · semver)6.12.31 through 6.12.* (unaffected · semver)6.14.9 through 6.14.* (unaffected · semver)6.15 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
10- https://git.kernel.org/stable/c/2a437b86ac5a9893c902f30ef66815bf13587bf6
- https://git.kernel.org/stable/c/7595de7bc56e0e52b74e56c90f7e247bf626d628
- https://git.kernel.org/stable/c/76c84c3728178b2d38d5604e399dfe8b0752645e
- https://git.kernel.org/stable/c/8f1c022541bf5a923c8d6fa483112c15250f30a4
- https://git.kernel.org/stable/c/c2aba69d0c36a496ab4f2e81e9c2b271f2693fd7
- https://git.kernel.org/stable/c/c4e8a172501e677ebd8ea9d9161d97dc4df56fbd
- https://git.kernel.org/stable/c/cc55dd28c20a6611e30596019b3b2f636819a4c0
- https://git.kernel.org/stable/c/fbd8fdc2b218e979cfe422b139b8f74c12419d1f
- https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html
Provider assertions
3Linux · cna
can: bcm: add locking for bcm_op runtime updates
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 76101fa55d7894305a4dab1af37e7d0ea2444d403f0d44bbab4a810d10733944
- Ingested
- 15 Oct 2026, 23:26:24 UTC
- Source record
- Official CVE record