Cloudanix VulnDB

CVE-2025-40302

None

CVSS

—

EPSS

0.1%

Published

Dec 8, 2025

CISA due date

—

Cloudanix analysis

Next patch cycle SSVC: Track

A flaw in Linux video buffer handling can let certain operations interfere with ongoing media access and cause system crashes or instability.

Exploitation
Local Privilege
Attacker needs
Local User
Complexity
Moderate
Impact
Denial Of Service
Component
OS kernel
Class
Race Condition
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

The vulnerability allows vb2_ioctl_remove_bufs to manipulate the videobuf2 queue's internal buffer list while legacy fileio mode is active, overwriting pointers relied upon by subsequent read/write operations and creating a race condition that can corrupt queue state.

Why it matters to the business

Systems performing media capture or streaming may experience kernel instability, crashes, or unpredictable behavior in video pipelines, potentially disrupting workloads on affected Linux distributions until kernels are updated.

How an attack unfolds

An attacker with local access triggers the remove_bufs ioctl concurrently with active legacy fileio operations on a videobuf2 queue, exploiting the missing guard to corrupt internal pointers and induce a crash or memory corruption.

How to fix it

Upgrade to a kernel containing commit a6a493b985bfffac097a4e1be09f98b27729dca8 or apply the equivalent Ubuntu package update 2.4.2-3ubuntu0.1~esm2 for affected releases; rebuild and reboot with the patched kernel.

How to confirm the fix worked

Confirm the running kernel contains the referenced commit or package version; test that vb2_ioctl_remove_bufs returns an error when legacy fileio is active and verify no pointer corruption occurs under concurrent access.

Typical attack path

  1. Locate a process or driver using videobuf2 with legacy fileio active
  2. Issue vb2_ioctl_remove_bufs while fileio operations are in progress
  3. Trigger pointer overwrite between read/write calls to corrupt queue state
  4. Cause denial of service via kernel panic or exploitable memory corruption

How to detect it

Review kernel logs for videobuf2 queue corruption warnings or oops during media ioctl sequences; correlate process activity performing concurrent remove_bufs and fileio calls on video devices.

What your security team should do

  • Prioritize kernel upgrades on all systems using videobuf2 media drivers
  • Disable legacy fileio where possible until patches are deployed
  • Monitor vendor advisories for backported fixes in stable kernels

The record

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 packages

Ecosystem Package Introduced Fixed
Linux Kernel 6.10.0 6.12.58
openSUSE:Leap 16.0 dtb-aarch64 0 6.12.0-160000.9.1
openSUSE:Leap 16.0 kernel-64kb 0 6.12.0-160000.9.1
openSUSE:Leap 16.0 kernel-azure 0 6.12.0-160000.9.1
openSUSE:Leap 16.0 kernel-default 0 6.12.0-160000.9.1
openSUSE:Leap 16.0 kernel-default-base 0 6.12.0-160000.9.1.160000.2.6
openSUSE:Leap 16.0 kernel-docs 0 6.12.0-160000.9.1
openSUSE:Leap 16.0 kernel-kvmsmall 0 6.12.0-160000.9.1
openSUSE:Leap 16.0 kernel-obs-build 0 6.12.0-160000.9.1
openSUSE:Leap 16.0 kernel-obs-qa 0 6.12.0-160000.9.1
openSUSE:Leap 16.0 kernel-rt 0 6.12.0-160000.9.1
openSUSE:Leap 16.0 kernel-source 0 6.12.0-160000.9.1
openSUSE:Leap 16.0 kernel-syms 0 6.12.0-160000.9.1
openSUSE:Leap 16.0 kernel-zfcpdump 0 6.12.0-160000.9.1

Related vulnerabilities