{"id":"CVE-2025-40302","summary":"media: videobuf2: forbid remove_bufs when legacy fileio is active","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: videobuf2: forbid remove_bufs when legacy fileio is active\n\nvb2_ioctl_remove_bufs() call manipulates queue internal buffer list,\npotentially overwriting some pointers used by the legacy fileio access\nmode. Forbid that ioctl when fileio is active to protect internal queue\nstate between subsequent read/write calls.","modified":"2026-03-20T12:43:15.488508Z","published":"2025-12-08T00:46:26.293Z","related":["SUSE-SU-2026:0278-1","SUSE-SU-2026:0281-1","SUSE-SU-2026:0315-1","SUSE-SU-2026:20207-1","SUSE-SU-2026:20220-1","SUSE-SU-2026:20228-1","openSUSE-SU-2026:20145-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40302.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/27afd6e066cfd80ddbe22a4a11b99174ac89cced"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a6a493b985bfffac097a4e1be09f98b27729dca8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e819b34df0a7030a15c968d619fa8a3ed2455c7a"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40302.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40302"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"a3293a85381ec9680aa2929547fbc76c5d87a1b2"},{"fixed":"a6a493b985bfffac097a4e1be09f98b27729dca8"},{"fixed":"e819b34df0a7030a15c968d619fa8a3ed2455c7a"},{"fixed":"27afd6e066cfd80ddbe22a4a11b99174ac89cced"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40302.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.10.0"},{"fixed":"6.12.58"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.17.8"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40302.json"}}],"schema_version":"1.7.5"}