CVE-2025-40207: media: v4l2-subdev: Fix alloc failure check in v4l2_subdev_call_state_try()
Vulnerability summary
CVE-2025-40207 is a medium (CVSS 5.6) vulnerability in linux. EPSS estimates a 0.20% chance of exploitation in the next 30 days, higher than 10.4% of scored vulnerabilities.
Not severe (CVSS 5.6, local access); no exploitation reported by the 5 checked sources
CIRCL last checked 06-12-2026
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 31 · Related 30Timeline
- 12-11-2025PublishedVulnerability first disclosed.
- 11-05-2026Last modifiedVulnerability information updated.
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().
CVSS metrics
1 score · 1 source · 1 versionEPSS trend
Probability
0.20%
Chance of exploitation in the next 30 days
Percentile
10%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.20% on 05-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeNo weakness data has been published for this record.
Affected systems
Known conditions: local access, administrative account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu128 products
- linux< 6.8.0-106.106 | < 6.17.0-14.14
- linux-allwinner-5.19All versions (No fix recorded)
- linux-aws< 6.8.0-1050.53 | < 6.17.0-1007.7
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Debian1 product
- linux< 6.1.158-1 | < 6.12.57-1 | < 6.17.6-1
Linux1 product
- linux≥ 982c0487185bd466059ff618f398a8d074ddb654, < 5b0057459cdc243ffb35617603142dcace09c711 | ≥ 982c0487185bd466059ff618f398a8d074ddb654, < ed30811fbed40751deb952bde534aa2632dc0bf7 | ≥ 982c0487185bd466059ff618f398a8d074ddb654, < 94e6336dc1f06a06f5b4cd04d4a012bba34f2857 | ≥ 982c0487185bd466059ff618f398a8d074ddb654, < a553530b3314a0bdc98cf114cdbe204551a70a00 | ≥ 982c0487185bd466059ff618f398a8d074ddb654, < f37df9a0eb5e43fcfe02cbaef076123dc0d79c7e | 6.0
3 vendors · 130 products