CVE-2025-40302

media: videobuf2: forbid remove_bufs when legacy fileio is active

State
Published
Severity
7.8 High
Published
Dec 8, 2025
Updated
Oct 15, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • a3293a85381ec9680aa2929547fbc76c5d87a1b2 to before a6a493b985bfffac097a4e1be09f98b27729dca8Affected
  • a3293a85381ec9680aa2929547fbc76c5d87a1b2 to before e819b34df0a7030a15c968d619fa8a3ed2455c7aAffected
  • a3293a85381ec9680aa2929547fbc76c5d87a1b2 to before 27afd6e066cfd80ddbe22a4a11b99174ac89ccedAffected
LinuxLinux
  • 6.10Affected
  • before 6.10Not affected
  • 6.12.58 through 6.12.*Not affected
  • 6.17.8 through 6.17.*Not affected
  • 6.18 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.