{"id":"CVE-2025-40207","summary":"media: v4l2-subdev: Fix alloc failure check in v4l2_subdev_call_state_try()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: v4l2-subdev: Fix alloc failure check in v4l2_subdev_call_state_try()\n\nv4l2_subdev_call_state_try() macro allocates a subdev state with\n__v4l2_subdev_state_alloc(), but does not check the returned value. If\n__v4l2_subdev_state_alloc fails, it returns an ERR_PTR, and that would\ncause v4l2_subdev_call_state_try() to crash.\n\nAdd proper error handling to v4l2_subdev_call_state_try().","modified":"2026-03-20T12:43:13.591578Z","published":"2025-11-12T21:56:35.988Z","related":["SUSE-SU-2025:4393-1","SUSE-SU-2025:4422-1","SUSE-SU-2025:4505-1","SUSE-SU-2025:4516-1","SUSE-SU-2025:4517-1","SUSE-SU-2025:4521-1","SUSE-SU-2026:20012-1","SUSE-SU-2026:20015-1","SUSE-SU-2026:20021-1","SUSE-SU-2026:20039-1","SUSE-SU-2026:20059-1","SUSE-SU-2026:20473-1","SUSE-SU-2026:20496-1","openSUSE-SU-2025:20172-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40207.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/5b0057459cdc243ffb35617603142dcace09c711"},{"type":"WEB","url":"https://git.kernel.org/stable/c/94e6336dc1f06a06f5b4cd04d4a012bba34f2857"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a553530b3314a0bdc98cf114cdbe204551a70a00"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ed30811fbed40751deb952bde534aa2632dc0bf7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f37df9a0eb5e43fcfe02cbaef076123dc0d79c7e"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40207.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40207"},{"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":"982c0487185bd466059ff618f398a8d074ddb654"},{"fixed":"5b0057459cdc243ffb35617603142dcace09c711"},{"fixed":"ed30811fbed40751deb952bde534aa2632dc0bf7"},{"fixed":"94e6336dc1f06a06f5b4cd04d4a012bba34f2857"},{"fixed":"a553530b3314a0bdc98cf114cdbe204551a70a00"},{"fixed":"f37df9a0eb5e43fcfe02cbaef076123dc0d79c7e"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40207.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.0.0"},{"fixed":"6.1.157"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.113"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.54"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.17.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40207.json"}}],"schema_version":"1.7.5"}