What’s Vulnerable › Vulnerabilities

CVE-2025-40302: media: videobuf2: forbid remove_bufs when legacy fileio is active

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.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 6.18. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-40302 or the next vulnerability affects your stack