---
id: CVE-2025-40302
title: |-
  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 poi…
summary: |-
  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 poi…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
published: '2025-12-08'
updated: '2026-10-14'
sourceUpdated: '2026-10-14T22:10:00.210'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-40302'
references:
  - url: 'https://git.kernel.org/stable/c/27afd6e066cfd80ddbe22a4a11b99174ac89cced'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/a6a493b985bfffac097a4e1be09f98b27729dca8'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/e819b34df0a7030a15c968d619fa8a3ed2455c7a'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
tags:
  - nvd
epss: 0.00141
epssPercentile: 0.03029
ingestedAt: '2026-10-14T23:00:02.018Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
