CVE-2025-40302
media: videobuf2: forbid remove_bufs when legacy fileio is active
Reported by linux · Published December 8, 2025
In the Linux kernel, the following vulnerability has been resolved: media: videobuf2: forbid remove_bufs when legacy fileio is active vb2_ioctl_remove_bufs() call manipulates queue internal buffer list, potentially overwriting some pointers used by the legacy fileio access mode. Forbid that ioctl when fileio is active to protect internal queue state between subsequent read/write calls.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel6.12-libbpf-devel | Amazon Linux | 1:6.12.58-82.121.amzn2023 |
| kernel6.12-libbpf-static | Amazon Linux | 1:6.12.58-82.121.amzn2023 |
| Linux | Linux | e819b34df0a7030a15c968d619fa8a3ed2455c7a, a6a493b985bfffac097a4e1be09f98b27729dca8, 6.10, 27afd6e066cfd80ddbe22a4a11b99174ac89cced |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | a3293a85381ec9680aa2929547fbc76c5d87a1b2, a3293a85381ec9680aa2929547fbc76c5d87a1b2, a3293a85381ec9680aa2929547fbc76c5d87a1b2 |
| Linux | Linux | 6.10, 0, 6.12.58 |
| amazon:2023 | kernel6.12-libbpf-devel | 0 |
| amazon:2023 | kernel6.12-libbpf-static | 0 |
| Linux | Linux | 6.18, 6.17.8, 6.12.58 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel6.12-libbpf | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel-livepatch-6.12.58-82.121 | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel6.12-tools | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| linux | linux_kernel | 6.10, 6.10, 6.10 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | perf6.12 | 0 |
Timeline
- Dec 7, 2025 CVE Published
- Dec 8, 2025 EPSS Score (30 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (147 in total, the first dated here)
- Mar 29, 2026 Security Advisory (150 in total, the first dated here)
- Jun 8, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-40302
vulnetix vdb fixes CVE-2025-40302
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-40302/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart