{"id":"CVE-2025-40207","aliases":["CVE-2025-40207"],"related":[],"kind":"vulnerability","state":"published","title":"media: v4l2-subdev: Fix alloc failure check in v4l2_subdev_call_state_try()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: v4l2-subdev: Fix alloc failure check in v4l2_subdev_call_state_try()\n\nv4l2_subdev_call_state_try() macro allocates a subdev state with\n__v4l2_subdev_state_alloc(), but does not check the returned value. If\n__v4l2_subdev_state_alloc fails, it returns an ERR_PTR, and that would\ncause v4l2_subdev_call_state_try() to crash.\n\nAdd proper error handling to v4l2_subdev_call_state_try().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: v4l2-subdev: Fix alloc failure check in v4l2_subdev_call_state_try()\n\nv4l2_subdev_call_state_try() macro allocates a subdev state with\n__v4l2_subdev_state_alloc(), but does not check the returned value. If\n__v4l2_subdev_state_alloc fails, it returns an ERR_PTR, and that would\ncause v4l2_subdev_call_state_try() to crash.\n\nAdd proper error handling to v4l2_subdev_call_state_try().","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nmedia: v4l2-subdev: Corrección de la comprobación de fallo de asignación en v4l2_subdev_call_state_try()\n\nLa 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.\n\nAñadir manejo de errores adecuado a v4l2_subdev_call_state_try().","source":"nvd"}],"published":"2025-11-12T21:56:35.988Z","modified":"2026-10-19T21:10:00.160Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"982c0487185bd466059ff618f398a8d074ddb654","fixed":"5b0057459cdc243ffb35617603142dcace09c711","status":"affected"},{"type":"git","introduced":"982c0487185bd466059ff618f398a8d074ddb654","fixed":"ed30811fbed40751deb952bde534aa2632dc0bf7","status":"affected"},{"type":"git","introduced":"982c0487185bd466059ff618f398a8d074ddb654","fixed":"94e6336dc1f06a06f5b4cd04d4a012bba34f2857","status":"affected"},{"type":"git","introduced":"982c0487185bd466059ff618f398a8d074ddb654","fixed":"a553530b3314a0bdc98cf114cdbe204551a70a00","status":"affected"},{"type":"git","introduced":"982c0487185bd466059ff618f398a8d074ddb654","fixed":"f37df9a0eb5e43fcfe02cbaef076123dc0d79c7e","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.0","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.0","status":"unaffected"},{"type":"semver","introduced":"6.1.157","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.113","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.54","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.4","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/5b0057459cdc243ffb35617603142dcace09c711","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ed30811fbed40751deb952bde534aa2632dc0bf7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/94e6336dc1f06a06f5b4cd04d4a012bba34f2857","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a553530b3314a0bdc98cf114cdbe204551a70a00","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f37df9a0eb5e43fcfe02cbaef076123dc0d79c7e","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40207","url":"https://www.cve.org/CVERecord?id=CVE-2025-40207","licence":"CVE Terms of Use","modified":"2026-05-11T21:44:50.064Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40207","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40207","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:07.602Z","epss":{"score":0.00277,"percentile":0.12755,"date":"2026-11-30T12:00:22.000Z"}}