CVE-2025-40302

published 8 Dec 2025 · updated 15 Oct 2026

media: videobuf2: forbid remove_bufs when legacy fileio is active

7.8HighCVSS 7.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 27afd6e066cfd80ddbe22a4a11b99174ac89cced, Kernel a6a493b985bfffac097a4e1be09f98b27729dca8 and Kernel e819b34df0a7030a15c968d619fa8a3ed2455c7a.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=6.10, >=a3293a85381ec9680aa2929547fbc76c5d87a1b2 <27afd6e066cfd80ddbe22a4a11b99174ac89cced, >=a3293a85381ec9680aa2929547fbc76c5d87a1b2 <a6a493b985bfffac097a4e1be09f98b27729dca8, >=a3293a85381ec9680aa2929547fbc76c5d87a1b2 <e819b34df0a7030a15c968d619fa8a3ed2455c7a27afd6e066cfd80ddbe22a4a11b99174ac89cced, a6a493b985bfffac097a4e1be09f98b27729dca8, e819b34df0a7030a15c968d619fa8a3ed2455c7a

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-40302 severity on Zeptric[![CVE-2025-40302](https://zeptric.io/badge/cve/CVE-2025-40302.svg)](https://zeptric.io/cve/CVE-2025-40302)