CVE-2025-40207

Source
https://cve.org/CVERecord?id=CVE-2025-40207
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40207.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-40207
Downstream
Related
Published
2025-11-12T21:56:35.988Z
Modified
2026-03-20T12:43:13.591578Z
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:

media: v4l2-subdev: Fix alloc failure check in v4l2subdevcallstatetry()

v4l2subdevcallstatetry() macro allocates a subdev state with __v4l2subdevstate_alloc(), but does not check the returned value. If __v4l2subdevstatealloc fails, it returns an ERRPTR, and that would cause v4l2subdevcallstatetry() to crash.

Add proper error handling to v4l2subdevcallstatetry().

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40207.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / 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"

Linux / Kernel

Package

Name
Kernel

Affected 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"