CVE-2025-40207
media: v4l2-subdev: Fix alloc failure check in v4l2_subdev_call_state_try()
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= 982c0487185bd466059ff618f398a8d074ddb654, < 5b0057459cdc243ffb35617603142dcace09c711; >= 982c0487185bd466059ff618f398a8d074ddb654, < ed30811fbed40751deb952bde534aa2632dc0bf7; >= 982c0487185bd466059ff618f398a8d074ddb654, < 94e6336dc1f06a06f5b4cd04d4a012bba34f2857; >= 982c0487185bd466059ff618f398a8d074ddb654, < a553530b3314a0bdc98cf114cdbe204551a70a00; >= 982c0487185bd466059ff618f398a8d074ddb654, < f37df9a0eb5e43fcfe02cbaef076123dc0d79c7e
- Anyone running Linux 6.0
Vulnerability facts
- Affected
- Linux >= 982c0487185bd466059ff618f398a8d074ddb654, < 5b0057459cdc243ffb35617603142dcace09c711; >= 982c0487185bd466059ff618f398a8d074ddb654, < ed30811fbed40751deb952bde534aa2632dc0bf7; >= 982c0487185bd466059ff618f398a8d074ddb654, < 94e6336dc1f06a06f5b4cd04d4a012bba34f2857; >= 982c0487185bd466059ff618f398a8d074ddb654, < a553530b3314a0bdc98cf114cdbe204551a70a00; >= 982c0487185bd466059ff618f398a8d074ddb654, < f37df9a0eb5e43fcfe02cbaef076123dc0d79c7e; Linux 6.0
- Fixed in
- Linux 5b0057459cdc243ffb35617603142dcace09c711, Linux 94e6336dc1f06a06f5b4cd04d4a012bba34f2857
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- EPSS
- 0.28% chance of exploitation in 30 days (percentile 13, 2026-11-26)
- Modified
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().
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 982c0487185bd466059ff618f398a8d074ddb654, < 5b0057459cdc243ffb35617603142dcace09c711; >= 982c0487185bd466059ff618f398a8d074ddb654, < ed30811fbed40751deb952bde534aa2632dc0bf7; >= 982c0487185bd466059ff618f398a8d074ddb654, < 94e6336dc1f06a06f5b4cd04d4a012bba34f2857; >= 982c0487185bd466059ff618f398a8d074ddb654, < a553530b3314a0bdc98cf114cdbe204551a70a00; >= 982c0487185bd466059ff618f398a8d074ddb654, < f37df9a0eb5e43fcfe02cbaef076123dc0d79c7e | — | cvelist |
| Linux | 6.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-40207. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-40207.md Affected: Linux >= 982c0487185bd466059ff618f398a8d074ddb654, < 5b0057459cdc243ffb35617603142dcace09c711; >= 982c0487185bd466059ff618f398a8d074ddb654, < ed30811fbed40751deb952bde534aa2632dc0bf7; >= 982c0487185bd466059ff618f398a8d074ddb654, < 94e6336dc1f06a06f5b4cd04d4a012bba34f2857; >= 982c0487185bd466059ff61… Fixed in: Linux 5b0057459cdc243ffb35617603142dcace09c711, Linux 94e6336dc1f06a06f5b4cd04d4a012bba34f2857 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Other
- 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
FAQ
Is CVE-2025-40207 being exploited?
There is no confirmed exploitation: CVE-2025-40207 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-40207?
It has no CVSS score yet. Unknown.
Which versions are affected by CVE-2025-40207?
Linux >= 982c0487185bd466059ff618f398a8d074ddb654, < 5b0057459cdc243ffb35617603142dcace09c711; >= 982c0487185bd466059ff618f398a8d074ddb654, < ed30811fbed40751deb952bde534aa2632dc0bf7; >= 982c0487185bd466059ff618f398a8d074ddb654, < 94e6336dc1f06a06f5b4cd04d4a012bba34f2857; >= 982c0487185bd466059ff618f398a8d074ddb654, < a553530b3314a0bdc98cf114cdbe204551a70a00; >= 982c0487185bd466059ff618f398a8d074ddb654, < f37df9a0eb5e43fcfe02cbaef076123dc0d79c7e; Linux 6.0.
Is there a fix for CVE-2025-40207?
Yes. Fixed in Linux 5b0057459cdc243ffb35617603142dcace09c711, Linux 94e6336dc1f06a06f5b4cd04d4a012bba34f2857. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2025-40207?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.