Skip to main content
EPSS 0.1%top 96%

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)

0
Medium
Published: 12/08/2025 (12/08/2025, 01:16:00 UTC)
Source: GCVE Database
Product: linux-hwe-edge

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

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected software

Affected versions
<6.17.0-1007.7~24.04.1<6.17.0-1008.8~24.04.1<6.17.0-1008.8<6.17.0-1011.11

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/30/2026, 17:52:19 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses