CVE-2025-38004
can: bcm: add locking for bcm_op runtime updates
Reported by linux · Published June 8, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-debuginfo | errata.rockylinux.org | 5.14.0-687.45.1.el9 |
| perf | errata.rockylinux.org | 5.14.0-687.45.1.el9 |
| rv | errata.rockylinux.org | 5.14.0-687.45.1.el9 |
| kernel-tools-debuginfo | errata.rockylinux.org | 5.14.0-687.45.1.el9 |
| kernel-core | errata.rockylinux.org | 5.14.0-687.45.1.el9 |
| kernel-modules-extra-matched | errata.rockylinux.org | 6.12.0-211.52.1.el10 |
| kernel-rt-debug-debuginfo | errata.rockylinux.org | 5.14.0-687.45.1.el9 |
| kernel-rt-64k-debug-debuginfo | errata.rockylinux.org | 6.12.0-211.52.1.el10, 5.14.0-687.45.1.el9 |
| kernel-doc | errata.rockylinux.org | 6.12.0-211.52.1.el10, 5.14.0-687.45.1.el9 |
| kernel-zfcpdump-modules-extra | errata.rockylinux.org | 5.14.0-687.45.1.el9 |
| kernel-devel-matched | errata.rockylinux.org | 6.12.0-211.52.1.el10 |
| kernel-64k-debug-modules-core | errata.rockylinux.org | 5.14.0-687.45.1.el9 |
39 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | ffd980f976e7fd666c2e61bf8ab35107efd11828, ffd980f976e7fd666c2e61bf8ab35107efd11828, ffd980f976e7fd666c2e61bf8ab35107efd11828 |
| Linux | Linux | 2.6.25, 0, 5.4.294 |
| amazon:2023 | kernel-livepatch-6.1.141-155.222 | 0 |
| Linux | Linux | 6.12.31, *, * |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-livepatch-6.12.31-35.92 | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel-headers | 0 |
| linux | linux_kernel | 2.6.25, 2.6.25, 2.6.25 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | bpftool | 0 |
…and 3 more
Timeline
- Jun 8, 2025 EPSS Score (30 in total, the first dated here)
- Jun 8, 2025 CVE Published
- Oct 12, 2025 PoC Published (24 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (187 in total, the first dated here)
- Mar 29, 2026 Security Advisory (205 in total, the first dated here)
- Jun 9, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-38004
vulnetix vdb fixes CVE-2025-38004
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-38004/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart