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

Published Dec 8, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

media: videobuf2: forbid removebufs when legacy fileio is active

vb2ioctlremovebufs() 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 Software

1 affected component
Linux Linux kernel

Event History

Dec 8, 2025
CVE Published
via MITRE·12:46 AM
Data Sourced
via MITRE·12:46 AM
DescriptionSeverity
Data Sourced
via NVD·01:16 AM
DescriptionSeverity

Frequently Asked Questions

1

What is the severity of CVE-2025-40302?

The severity of CVE-2025-40302 is considered high due to its impact on the management of buffer memory in the Linux kernel.

2

What software is affected by CVE-2025-40302?

CVE-2025-40302 affects the Linux Kernel, impacting systems where videobuf2 is used.

3

How do I fix CVE-2025-40302?

To fix CVE-2025-40302, you need to update the Linux kernel to the latest version that includes the patch for this vulnerability.

4

What is the impact of CVE-2025-40302 on legacy fileio access mode?

CVE-2025-40302 can potentially lead to pointer overwrites, compromising the stability and security of systems using legacy fileio access mode.

5

Is there a workaround for CVE-2025-40302 if immediate patching is not possible?

Currently, there are no known workarounds for CVE-2025-40302; updating the kernel is recommended.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203