Skip to main content

Linux Kernel CVE-2025-40302

| EUVDEUVD-2025-201643 HIGH
2025-12-08 416baaa9-dc9f-4396-8d5f-8c081fb06d67
7.8
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local access to /dev/video device
  2. Delivery
    Open queue and start legacy read/write fileio
  3. Exploit
    Invoke VIDIOC_REMOVE_BUFS during active fileio
  4. Execution
    Corrupt internal buffer-list pointers
  5. Persist
    Trigger stale-pointer dereference on next read/write
  6. Impact
    Leak kernel memory or escalate privileges

Vulnerability Assessment

Exploitation Conditions

Exploitation requires local access to a V4L2/videobuf2 video device node (e.g. /dev/videoN, normally gated by the 'video' group or equivalent permissions) on an affected kernel (~6.10 up to the fixed 6.12.58/6.17.8/6.18 releases). The specific triggering condition is that the legacy fileio access mode must be ACTIVE - i.e. the attacker has an ongoing read()/write()-based session on the queue - at the moment the VIDIOC_REMOVE_BUFS (vb2_ioctl_remove_bufs) ioctl is invoked; this is exactly the state the patch forbids. Limiting factors: it is local-only (AV:L, no remote reach), requires privileges/membership sufficient to open the device (PR:L, not unauthenticated), needs a driver that both supports dynamic REMOVE_BUFS and permits fileio, and the window depends on an active fileio session rather than a default idle queue.

Impact

The signals are internally consistent for a moderately-serious local kernel bug but do not indicate widespread exploitation. The CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, 7.8 High) reflects a local attacker with some privileges achieving full memory-corruption impact - realistic for a kernel buffer-list corruption. EPSS is 0.03% (6th percentile), the CVE is NOT in CISA KEV, and no POC is referenced, so there is no public exploit identified at time of analysis. There is tension between the input 'Information Disclosure' tag and the CVSS C:H/I:H/A:H rating: corrupting queue pointers plausibly enables both info leak and broader memory corruption, so the high integrity/availability metrics are defensible but the practical primitive (leak vs. full control) is unverified from the available data. Because attack vector is local and privileges are required (access to a video device node), this is a defense-in-depth kernel hardening fix rather than a remotely-wormable emergency - prioritize via normal stable-kernel patch cadence, higher on multi-user or container hosts where untrusted users can reach /dev/video*.

Exploit ScenarioDerived

A local user with access to a video capture device opens /dev/video0, begins a legacy read()/write() fileio session, and then issues the VIDIOC_REMOVE_BUFS ioctl to delete buffers still referenced by the fileio state machine; the subsequent read/write dereferences the now-stale pointers, corrupting kernel memory. Depending on the resulting primitive this can leak kernel data or be groomed toward privilege escalation. No public exploit is identified at time of analysis, and the local attack vector plus required device access limits it to authenticated local users.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Jul 30, 2026

Local privilege escalation via memory corruption in the Linux kernel's videobuf2 (vb2) media framework allows a local user with access to a V4L2 video device to corrupt internal queue state by invoking the VIDIOC_REMOVE_BUFS ioctl while legacy read/write fileio mode is active. The vb2_ioctl_remove_bufs() path manipulates the queue's internal buffer list and can overwrite pointers the fileio access mode still relies on, leading to high-impact confidentiality, integrity, and availability effects (CVSS 7.8, AV:L). No public exploit has been identified at time of analysis; EPSS is negligible (0.03%) and the flaw is not in CISA KEV.

Earlier versions of this analysis (1)
v1 Mar 15, 2026 - 17:54

RemediationAI

Apply the vendor patch by upgrading to a fixed stable kernel: 6.12.58 or later on the 6.12 LTS series, 6.17.8 or later on 6.17, or 6.18, or take your distribution's backported build referencing CVE-2025-40302. The corresponding upstream stable commits are e819b34df0a7030a15c968d619fa8a3ed2455c7a, 27afd6e066cfd80ddbe22a4a11b99174ac89cced, and a6a493b985bfffac097a4e1be09f98b27729dca8 (see the git.kernel.org links above). Where immediate patching is not possible, the practical compensating control is to restrict access to V4L2 device nodes: tighten permissions/ownership on /dev/video* (e.g. remove untrusted accounts from the 'video' group or apply udev rules limiting the nodes to trusted users), which prevents unprivileged local users from reaching the vulnerable ioctl at the cost of breaking legitimate camera/capture access for those users. On container hosts, avoid exposing /dev/video* into untrusted containers, and consider seccomp/LSM policy to block the ioctl path - noting this will disable video functionality for affected workloads.

Affected VersionsENISA

Linux patch: 0
Linux a3293a85381ec9680aa2929547fbc76c5d87a1b2 <27afd6e066cfd80ddbe22a4a11b99174ac89cced
Linux a3293a85381ec9680aa2929547fbc76c5d87a1b2 <e819b34df0a7030a15c968d619fa8a3ed2455c7a
Linux patch: 6.12.58
Linux 6.10
Linux patch: 6.17.8
Linux a3293a85381ec9680aa2929547fbc76c5d87a1b2 <a6a493b985bfffac097a4e1be09f98b27729dca8
Linux patch: 6.18

Affected Packages

euvd linux no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected component is videobuf2 (vb2), the Linux kernel's core buffer-management framework for V4L2 media/streaming drivers (cameras, capture cards, codecs) exposed through /dev/videoN device nodes. vb2 supports two mutually-exclusive access models on the same queue: modern streaming with explicit buffer management, and a legacy 'fileio' emulation that lets applications use plain read()/write() by having the kernel implicitly allocate and cycle buffers. The VIDIOC_REMOVE_BUFS ioctl (backed by vb2_ioctl_remove_bufs()) dynamically removes buffers from the queue's internal list. Because that list is the same state fileio uses across successive read/write calls, removing buffers mid-fileio-session can overwrite or invalidate pointers the fileio path dereferences later - a state-confusion / stale-pointer condition (use-after-free / invalid pointer use class; the CWE was not assigned in the source data). The fix simply forbids the remove_bufs ioctl whenever fileio is active, preserving queue invariants.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.8 HIGH

Local device-node access needed (AV:L, PR:L), triggered by a direct ioctl during an attacker-controlled fileio session (AC:L, UI:N); kernel memory corruption supports high C/I/A within the unchanged kernel scope.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE 6.3 MEDIUM
AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H
Red Hat 6.3 MEDIUM

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
CVSS changed
Jul 30, 2026 - 06:37 NVD
7.8 (HIGH)
Patch available
Apr 16, 2026 - 05:29 EUVD
27afd6e066cfd80ddbe22a4a11b99174ac89cced
CVE Published
Dec 08, 2025 - 01:16 cve.org
HIGH 7.8
CVE Published
Dec 08, 2025 - 01:16 nvd
N/A

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

CVE-2025-40302 is a privilege escalation in Linux kernel video handling (CVSS 7.8) affecting systems with video capture devices. Organizational exposure is limited because exploitation requires local user access to video hardware-a rare configuration in most enterprises-and no public exploit identified at time of analysis. Patches are available and should be deployed during routine maintenance windows.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 94% exploitable
Prevalence
Ubiquitous
Linux kernel; videobuf2 present in essentially all V4L2-enabled builds
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
Container suse/sl-micro/6.0/baremetal-os-container:latest Container suse/sl-micro/6.0/base-os-container:latest Container suse/sl-micro/6.0/kvm-os-container:latest Container suse/sl-micro/6.0/rt-os-container:latest Image SL-Micro Affected
Container suse/sl-micro/6.0/toolbox:latest Affected
Image SLES-Azure-3P Image SLES-Azure-Basic Image SLES-Azure-Standard Image SLES-BYOS-Azure Image SLES-BYOS-EC2 Image SLES-BYOS-GCE Image SLES-CHOST-BYOS-Aliyun Image SLES-CHOST-BYOS-Azure Image SLES-CHOST-BYOS-EC2 Image SLES-CHOST-BYOS-GCE Image SLES-CHOST-BYOS-GDC Image SLES-CHOST-BYOS-SAP-CCloud Image SLES-EC2 Image SLES-EC2-ECS Image SLES-GCE Image SLES-GCE-3P Image SLES-Hardened-BYOS-Azure Image SLES-Hardened-BYOS-EC2 Image SLES-Hardened-BYOS-GCE Image SLES-SAPCAL-Azure Image SLES-SAPCAL-EC2 Image SLES-SAPCAL-GCE Affected
Image SLES-SAP-Azure Image SLES-SAP-Azure-3P Image SLES-SAP-BYOS-Azure Image SLES-SAP-BYOS-EC2 Image SLES-SAP-BYOS-GCE Image SLES-SAP-EC2 Image SLES-SAP-GCE Image SLES-SAP-GCE-3P Affected
Image SLES15-SP7-Azure-3P Image SLES15-SP7-Azure-Basic Image SLES15-SP7-Azure-Standard Image SLES15-SP7-HPC-Azure Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy