Not scored
media: v4l2-subdev: Fix alloc failure check in v4l2_subdev_call_state_try()
- Severity
- Not scored
- Exploit likelihood
- 0.28% (higher than 13% of CVEs)
- Published
- Last changed
- Assigned by
- Linux
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
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 982c0487185bd466059ff618f398a8d074ddb654 before 5b0057459cdc243ffb35617603142dcace09c711, from 982c0487185bd466059ff618f398a8d074ddb654 before ed30811fbed40751deb952bde534aa2632dc0bf7, from 982c0487185bd466059ff618f398a8d074ddb654 before 94e6336dc1f06a06f5b4cd04d4a012bba34f2857, from 982c0487185bd466059ff618f398a8d074ddb654 before a553530b3314a0bdc98cf114cdbe204551a70a00, from 982c0487185bd466059ff618f398a8d074ddb654 before f37df9a0eb5e43fcfe02cbaef076123dc0d79c7e, 6.0 Not affected: before 6.0, from 6.1.157 up to 6.1.*, from 6.6.113 up to 6.6.*, from 6.12.54 up to 6.12.*, from 6.17.4 up to 6.17.*, from 6.18 up to * | CVE List |
What each source says
CVE List
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().
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: media: v4l2-subdev: Corrección de la comprobación de fallo de asignación en v4l2_subdev_call_state_try() La macro v4l2_subdev_call_state_try() asigna un estado de subdev con __v4l2_subdev_state_alloc(), pero no comprueba el valor devuelto. Si __v4l2_subdev_state_alloc falla, devuelve un ERR_PTR, y eso causaría que v4l2_subdev_call_state_try() se bloqueara. Añadir manejo de errores adecuado a v4l2_subdev_call_state_try().
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-40207 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2025-40207 changed 2026-10-19 | Public domain |