CVE-2025-40302 Details
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.
A vulnerability in the Linux kernel's videobuf2 component has been addressed. The issue arose because the vb2_ioctl_remove_bufs() function could interfere with the internal buffer management of queues, potentially corrupting pointers used by the legacy file I/O access mode. To safeguard the internal queue state during consecutive read and write operations, the removal of buffers via this ioctl is now prohibited when legacy file I/O is active.
Users can update to the latest version of the Linux kernel where this vulnerability has been fixed. Instructions for updating the kernel can be found in the official Linux kernel documentation.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Dec 8, 2025CISA-ADP
Assessed Oct 15, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/27afd6e066cfd80ddbe22a4a11b99174ac89cced | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/a6a493b985bfffac097a4e1be09f98b27729dca8 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/e819b34df0a7030a15c968d619fa8a3ed2455c7a | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 15, 2026 | CVE Modified | kernel.org |
| Oct 15, 2026 | CVE Modified | CISA-ADP |
| Oct 14, 2026 | CVE Translated | [email protected] |
| Jul 30, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 8, 2025 | New CVE Received | kernel.org |
Volerion