| lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
|
Open Source and information security mailing list archives
| ||
|
Message-ID: <2025111247-CVE-2025-40207-3528@gregkh> Date: Wed, 12 Nov 2025 17:01:10 -0500 From: Greg Kroah-Hartman <gregkh@...uxfoundation.org> To: linux-cve-announce@...r.kernel.org Cc: Greg Kroah-Hartman <gregkh@...nel.org> Subject: CVE-2025-40207: media: v4l2-subdev: Fix alloc failure check in v4l2_subdev_call_state_try() From: Greg Kroah-Hartman <gregkh@...nel.org> Description =========== In the Linux kernel, the following vulnerability has been resolved: media: v4l2-subdev: Fix alloc failure check in v4l2_subdev_call_state_try() v4l2_subdev_call_state_try() macro allocates a subdev state with __v4l2_subdev_state_alloc(), but does not check the returned value. If __v4l2_subdev_state_alloc fails, it returns an ERR_PTR, and that would cause v4l2_subdev_call_state_try() to crash. Add proper error handling to v4l2_subdev_call_state_try(). The Linux kernel CVE team has assigned CVE-2025-40207 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit 982c0487185bd466059ff618f398a8d074ddb654 and fixed in 6.1.157 with commit 5b0057459cdc243ffb35617603142dcace09c711 Issue introduced in 6.0 with commit 982c0487185bd466059ff618f398a8d074ddb654 and fixed in 6.6.113 with commit ed30811fbed40751deb952bde534aa2632dc0bf7 Issue introduced in 6.0 with commit 982c0487185bd466059ff618f398a8d074ddb654 and fixed in 6.12.54 with commit 94e6336dc1f06a06f5b4cd04d4a012bba34f2857 Issue introduced in 6.0 with commit 982c0487185bd466059ff618f398a8d074ddb654 and fixed in 6.17.4 with commit a553530b3314a0bdc98cf114cdbe204551a70a00 Issue introduced in 6.0 with commit 982c0487185bd466059ff618f398a8d074ddb654 and fixed in 6.18-rc1 with commit f37df9a0eb5e43fcfe02cbaef076123dc0d79c7e Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2025-40207 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: include/media/v4l2-subdev.h Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/5b0057459cdc243ffb35617603142dcace09c711 https://git.kernel.org/stable/c/ed30811fbed40751deb952bde534aa2632dc0bf7 https://git.kernel.org/stable/c/94e6336dc1f06a06f5b4cd04d4a012bba34f2857 https://git.kernel.org/stable/c/a553530b3314a0bdc98cf114cdbe204551a70a00 https://git.kernel.org/stable/c/f37df9a0eb5e43fcfe02cbaef076123dc0d79c7e
Powered by blists - more mailing lists