CVE-2025-40302
published high CVSS 3.1 · 7.8media: videobuf2: forbid remove_bufs when legacy fileio is active
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxa3293a85381ec9680aa2929547fbc76c5d87a1b2 to < a6a493b985bfffac097a4e1be09f98b27729dca8 · a3293a85381ec9680aa2929547fbc76c5d87a1b2 to < e819b34df0a7030a15c968d619fa8a3ed2455c7a · a3293a85381ec9680aa2929547fbc76c5d87a1b2 to < 27afd6e066cfd80ddbe22a4a11b99174ac89cced · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.10 (affected) · 0 to < 6.10 (unaffected · semver) · 6.12.58 through 6.12.* (unaffected · semver) · 6.17.8 through 6.17.* (unaffected · semver) · 6.18 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 | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1495 | Fixed | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | SLE-15-SP7 | cluster-md-kmp-defaultaarch64 | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | cluster-md-kmp-defaultppc64le | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | cluster-md-kmp-defaults390x | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
Show 97 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP7 | cluster-md-kmp-defaultx86_64 | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | cluster-md-kmp-rtx86_64 | Advisory build | 6.4.0-150700.7.28.1 | SUSE-SU-2026:0278-1 |
| SUSE / openSUSE | SLE-15-SP7 | dlm-kmp-defaultaarch64 | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | dlm-kmp-defaultppc64le | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | dlm-kmp-defaults390x | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | dlm-kmp-defaultx86_64 | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | dlm-kmp-rtx86_64 | Advisory build | 6.4.0-150700.7.28.1 | SUSE-SU-2026:0278-1 |
| SUSE / openSUSE | SLE-15-SP7 | gfs2-kmp-defaultaarch64 | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | gfs2-kmp-defaultppc64le | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | gfs2-kmp-defaults390x | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | gfs2-kmp-defaultx86_64 | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | gfs2-kmp-rtx86_64 | Advisory build | 6.4.0-150700.7.28.1 | SUSE-SU-2026:0278-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-64kbaarch64 | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-64kb-develaarch64 | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-azureaarch64 | Advisory build | 6.4.0-150700.20.24.1 | SUSE-SU-2026:0281-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-azurex86_64 | Advisory build | 6.4.0-150700.20.24.1 | SUSE-SU-2026:0281-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-azure-develaarch64 | Advisory build | 6.4.0-150700.20.24.1 | SUSE-SU-2026:0281-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-azure-develx86_64 | Advisory build | 6.4.0-150700.20.24.1 | SUSE-SU-2026:0281-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-defaultaarch64 | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-defaultppc64le | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-defaults390x | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-defaultx86_64 | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-default-baseaarch64 | Advisory build | 6.4.0-150700.53.28.1.150700.17.19.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-default-baseppc64le | Advisory build | 6.4.0-150700.53.28.1.150700.17.19.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-default-basex86_64 | Advisory build | 6.4.0-150700.53.28.1.150700.17.19.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-default-develaarch64 | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-default-develppc64le | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-default-devels390x | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-default-develx86_64 | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-default-extrax86_64 | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-default-livepatchppc64le | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-default-livepatchs390x | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-default-livepatchx86_64 | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-default-livepatch-develppc64le | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-default-livepatch-devels390x | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-default-livepatch-develx86_64 | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-develnoarch | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-devel-azurenoarch | Advisory build | 6.4.0-150700.20.24.1 | SUSE-SU-2026:0281-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-devel-rtnoarch | Advisory build | 6.4.0-150700.7.28.1 | SUSE-SU-2026:0278-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-docsnoarch | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-livepatch-6_4_0-150700_53_28-defaultppc64le | Advisory build | 1-150700.15.3.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-livepatch-6_4_0-150700_53_28-defaults390x | Advisory build | 1-150700.15.3.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-livepatch-6_4_0-150700_53_28-defaultx86_64 | Advisory build | 1-150700.15.3.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-livepatch-6_4_0-150700_7_28-rtx86_64 | Advisory build | 1-150700.1.3.1 | SUSE-SU-2026:0278-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-macrosnoarch | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-obs-buildaarch64 | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-obs-buildppc64le | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-obs-builds390x | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-obs-buildx86_64 | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-rtx86_64 | Advisory build | 6.4.0-150700.7.28.1 | SUSE-SU-2026:0278-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-rt-develx86_64 | Advisory build | 6.4.0-150700.7.28.1 | SUSE-SU-2026:0278-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-sourcenoarch | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-source-azurenoarch | Advisory build | 6.4.0-150700.20.24.1 | SUSE-SU-2026:0281-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-source-rtnoarch | Advisory build | 6.4.0-150700.7.28.1 | SUSE-SU-2026:0278-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-symsaarch64 | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-symsppc64le | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-symss390x | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-symsx86_64 | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-syms-azureaarch64 | Advisory build | 6.4.0-150700.20.24.1 | SUSE-SU-2026:0281-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-syms-azurex86_64 | Advisory build | 6.4.0-150700.20.24.1 | SUSE-SU-2026:0281-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-syms-rtx86_64 | Advisory build | 6.4.0-150700.7.28.1 | SUSE-SU-2026:0278-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-zfcpdumps390x | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | ocfs2-kmp-defaultaarch64 | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | ocfs2-kmp-defaultppc64le | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | ocfs2-kmp-defaults390x | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | ocfs2-kmp-defaultx86_64 | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | ocfs2-kmp-rtx86_64 | Advisory build | 6.4.0-150700.7.28.1 | SUSE-SU-2026:0278-1 |
| SUSE / openSUSE | SLE-15-SP7 | reiserfs-kmp-defaultaarch64 | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | reiserfs-kmp-defaultppc64le | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | reiserfs-kmp-defaults390x | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-15-SP7 | reiserfs-kmp-defaultx86_64 | Advisory build | 6.4.0-150700.53.28.1 | SUSE-SU-2026:0315-1 |
| SUSE / openSUSE | SLE-16 | cluster-md-kmp-defaultppc64le | Advisory build | 6.12.0-160000.9.1 | SUSE-SU-2026:20220-1 |
| SUSE / openSUSE | SLE-16 | cluster-md-kmp-defaultppc64le | Advisory build | 6.12.0-160000.9.1 | SUSE-SU-2026:20228-1 |
| SUSE / openSUSE | SLE-16 | cluster-md-kmp-defaults390x | Advisory build | 6.12.0-160000.9.1 | SUSE-SU-2026:20228-1 |
| SUSE / openSUSE | SLE-16 | cluster-md-kmp-defaultx86_64 | Advisory build | 6.12.0-160000.9.1 | SUSE-SU-2026:20220-1 |
| SUSE / openSUSE | SLE-16 | cluster-md-kmp-defaultx86_64 | Advisory build | 6.12.0-160000.9.1 | SUSE-SU-2026:20228-1 |
| SUSE / openSUSE | SLE-16 | dlm-kmp-defaultppc64le | Advisory build | 6.12.0-160000.9.1 | SUSE-SU-2026:20220-1 |
| SUSE / openSUSE | SLE-16 | dlm-kmp-defaultppc64le | Advisory build | 6.12.0-160000.9.1 | SUSE-SU-2026:20228-1 |
| SUSE / openSUSE | SLE-16 | dlm-kmp-defaults390x | Advisory build | 6.12.0-160000.9.1 | SUSE-SU-2026:20228-1 |
| SUSE / openSUSE | SLE-16 | dlm-kmp-defaultx86_64 | Advisory build | 6.12.0-160000.9.1 | SUSE-SU-2026:20220-1 |
| SUSE / openSUSE | SLE-16 | dlm-kmp-defaultx86_64 | Advisory build | 6.12.0-160000.9.1 | SUSE-SU-2026:20228-1 |
| SUSE / openSUSE | SLE-16 | gfs2-kmp-defaultppc64le | Advisory build | 6.12.0-160000.9.1 | SUSE-SU-2026:20220-1 |
| SUSE / openSUSE | SLE-16 | gfs2-kmp-defaultppc64le | Advisory build | 6.12.0-160000.9.1 | SUSE-SU-2026:20228-1 |
| SUSE / openSUSE | SLE-16 | gfs2-kmp-defaults390x | Advisory build | 6.12.0-160000.9.1 | SUSE-SU-2026:20228-1 |
| SUSE / openSUSE | SLE-16 | gfs2-kmp-defaultx86_64 | Advisory build | 6.12.0-160000.9.1 | SUSE-SU-2026:20220-1 |
| SUSE / openSUSE | SLE-16 | gfs2-kmp-defaultx86_64 | Advisory build | 6.12.0-160000.9.1 | SUSE-SU-2026:20228-1 |
| SUSE / openSUSE | SLE-16 | kernel-64kbaarch64 | Advisory build | 6.12.0-160000.9.1 | SUSE-SU-2026:20220-1 |
| SUSE / openSUSE | SLE-16 | kernel-64kb-develaarch64 | Advisory build | 6.12.0-160000.9.1 | SUSE-SU-2026:20220-1 |
| SUSE / openSUSE | SLE-16 | kernel-64kb-extraaarch64 | Advisory build | 6.12.0-160000.9.1 | SUSE-SU-2026:20220-1 |
| SUSE / openSUSE | SLE-16 | kernel-azureaarch64 | Advisory build | 6.12.0-160000.9.1 | SUSE-SU-2026:20220-1 |
| SUSE / openSUSE | SLE-16 | kernel-azurex86_64 | Advisory build | 6.12.0-160000.9.1 | SUSE-SU-2026:20220-1 |
| SUSE / openSUSE | SLE-16 | kernel-azure-develaarch64 | Advisory build | 6.12.0-160000.9.1 | SUSE-SU-2026:20220-1 |
| SUSE / openSUSE | SLE-16 | kernel-azure-develx86_64 | Advisory build | 6.12.0-160000.9.1 | SUSE-SU-2026:20220-1 |
| SUSE / openSUSE | SLE-16 | kernel-azure-extraaarch64 | Advisory build | 6.12.0-160000.9.1 | SUSE-SU-2026:20220-1 |
| SUSE / openSUSE | SLE-16 | kernel-azure-extrax86_64 | Advisory build | 6.12.0-160000.9.1 | SUSE-SU-2026:20220-1 |
| SUSE / openSUSE | SLE-16 | kernel-azure-vdsox86_64 | Advisory build | 6.12.0-160000.9.1 | SUSE-SU-2026:20220-1 |
| SUSE / openSUSE | SLE-16 | kernel-defaultaarch64 | Advisory build | 6.12.0-160000.9.1 | SUSE-SU-2026:20220-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
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.
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.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - Exploitation requires opening a V4L2 device node (/dev/videoN) and issuing read()/write() plus the VIDIOC_REMOVE_BUFS ioctl from a local process. There is no network-reachable path into videobuf2's legacy fileio emulator. AC:L - The attack is a purely sequential, deterministic three-step sequence on a single file descriptor (read/write → REMOVE_BUFS → read/write) with no race window; the same fd owns the queue so vb2_queue_is_busy() never blocks it. No special memory layout or timing beyond attacker control is required. PR:L - Any local unprivileged user with access to the video device node can trigger this — desktop distros grant the active session user access via logind uaccess ACLs/the video group, and Android/embedded camera sandboxes expose these nodes directly. No CAP_SYS_ADMIN or other capability is checked on the ioctl path. UI:N - The attacking process performs every step itself on its own file descriptor; no victim action, mount, or plug-in event is needed. S:U - The corruption is confined to kernel memory within the same security authority; there is no VM, IOMMU, or sandbox boundary crossed. C:H - After the buffers are freed, __vb2_perform_fileio() still does copy_to_user(data, buf->vaddr + buf->pos, count) using the stale cached kernel address, disclosing up to a full frame (potentially megabytes) of freed kernel memory — reusable by kernel stacks, slab objects, or page tables — directly to userspace. I:H - On output/write queues the same stale pointer is used in copy_from_user(buf->vaddr + buf->pos, data, count), giving an attacker-controlled write of arbitrary length into freed kernel memory (vfree'd vmalloc region reusable by VMAP kernel stacks, or page-allocator pages with dma-contig), a classic UAF write primitive for privilege escalation; a NULL-pointer write via b->planes[0].bytesused also occurs. A:H - vb2_get_buffer() returns NULL for the removed index despite the code asserting it "can never be NULL when using fileio", producing a NULL-pointer dereference oops, and the use-after-free of vfree'd vmalloc addresses causes unrecoverable kernel faults.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | a3293a85381ec9680aa2929547fbc76c5d87a1b2 to < a6a493b985bfffac097a4e1be09f98b27729dca8 (affected · git)a3293a85381ec9680aa2929547fbc76c5d87a1b2 to < e819b34df0a7030a15c968d619fa8a3ed2455c7a (affected · git)a3293a85381ec9680aa2929547fbc76c5d87a1b2 to < 27afd6e066cfd80ddbe22a4a11b99174ac89cced (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.10 (affected)0 to < 6.10 (unaffected · semver)6.12.58 through 6.12.* (unaffected · semver)6.17.8 through 6.17.* (unaffected · semver)6.18 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
2Linux · cna
media: videobuf2: forbid remove_bufs when legacy fileio is active
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 9387ed6dafc826f4d826062fcc1bba3dbb368f2f2275eaf6837cd33ae855cd9b
- Ingested
- 15 Oct 2026, 23:29:36 UTC
- Source record
- Official CVE record