Linux hwe edge: In the Linux kernel, the following vulnerability has been resolved: media: videobuf2: forbid remove_bufs when legacy fileio is active… (CVE-2025-40302)
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.
AI Analysis
Technical Summary
The Linux kernel media subsystem's videobuf2 component contained a vulnerability where the vb2_ioctl_remove_bufs() function could manipulate the internal buffer list in a way that overwrites pointers used by the legacy fileio access mode. This could corrupt the internal queue state between read/write calls. The fix forbids the remove_bufs ioctl when legacy fileio is active, protecting the internal queue state from corruption.
Potential Impact
Successful exploitation could lead to corruption of internal kernel memory structures related to videobuf2 buffers, potentially causing denial of service or privilege escalation due to memory corruption. The CVSS vector indicates local attack vector with low complexity, requiring low privileges but no user interaction, and results in high confidentiality, integrity, and availability impact.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to forbid the remove_bufs ioctl call when legacy fileio mode is active. Users should update to a Linux kernel version that includes this fix. Patch status is not explicitly confirmed in the provided data; therefore, check the vendor or Linux kernel advisories for the exact fixed versions and apply updates accordingly.
Linux hwe edge: In the Linux kernel, the following vulnerability has been resolved: media: videobuf2: forbid remove_bufs when legacy fileio is active… (CVE-2025-40302)
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.
CVSS v3.1
Score 7.8high
Affected software
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel media subsystem's videobuf2 component contained a vulnerability where the vb2_ioctl_remove_bufs() function could manipulate the internal buffer list in a way that overwrites pointers used by the legacy fileio access mode. This could corrupt the internal queue state between read/write calls. The fix forbids the remove_bufs ioctl when legacy fileio is active, protecting the internal queue state from corruption.
Potential Impact
Successful exploitation could lead to corruption of internal kernel memory structures related to videobuf2 buffers, potentially causing denial of service or privilege escalation due to memory corruption. The CVSS vector indicates local attack vector with low complexity, requiring low privileges but no user interaction, and results in high confidentiality, integrity, and availability impact.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to forbid the remove_bufs ioctl call when legacy fileio mode is active. Users should update to a Linux kernel version that includes this fix. Patch status is not explicitly confirmed in the provided data; therefore, check the vendor or Linux kernel advisories for the exact fixed versions and apply updates accordingly.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-wxf8-j2xw-xgh9
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2025-40302"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a6b72d49c2644c7f847924c
Added to database: 07/30/2026, 15:50:44 UTC
Last enriched: 07/30/2026, 17:52:19 UTC
Last updated: 09/10/2026, 19:36:50 UTC
Views: 11
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.