CVE-2025-40207

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

No CVSS score yet EPSS 0.20%

Published 12 Nov 2025 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2025-40207

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-40207 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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().

Exploitation

EPSS 0.20%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 10.5% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 982c0487185bd466059ff618f398a8d074ddb654, before 5b0057459cdc243ffb35617603142dcace09c711
affected from 982c0487185bd466059ff618f398a8d074ddb654, before ed30811fbed40751deb952bde534aa2632dc0bf7
affected from 982c0487185bd466059ff618f398a8d074ddb654, before 94e6336dc1f06a06f5b4cd04d4a012bba34f2857
affected from 982c0487185bd466059ff618f398a8d074ddb654, before a553530b3314a0bdc98cf114cdbe204551a70a00
affected from 982c0487185bd466059ff618f398a8d074ddb654, before f37df9a0eb5e43fcfe02cbaef076123dc0d79c7e
Other versions: unaffected
Linux
affected 6.0
unaffected before 6.0
unaffected from 6.1.157 up to and including 6.1.*
unaffected from 6.6.113 up to and including 6.6.*
unaffected from 6.12.54 up to and including 6.12.*
unaffected from 6.17.4 up to and including 6.17.*
unaffected 6.18 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-40207 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-40207

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-40207
trivy image --scanners vuln IMAGE | grep CVE-2025-40207

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-40207 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.