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 _v4l2subdevstatealloc(), but does not check the returned value. If _v4l2subdevstatealloc fails, it returns an ERRPTR, and that would cause v4l2subdevcallstate_try() to crash.
Add proper error handling to v4l2subdevcallstatetry().
[
{
"id": "CVE-2025-40207-139fc1bf",
"target": {
"file": "include/media/v4l2-subdev.h"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f37df9a0eb5e43fcfe02cbaef076123dc0d79c7e",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"67848120034034751061199377624728573957",
"286651731511535373490926462359651239161",
"315643079425288521822998948374328583667",
"120952871535732310727201211295039477825",
"52397692760856348340788336722857099677",
"85557283562516437130813804812990220702",
"335154259882899120156714671272660631213",
"15064881397755042973045808357733866966",
"168441935875947413423423712940403475385",
"63366485801464290280258589515735625901",
"38939291895773114666935853235050273364",
"134630030573917119185639435088577333145",
"170225917983315156319609577080299213187",
"218520837191962708252737602728161062302",
"82569947194068045391911144612087238082"
]
},
"deprecated": false,
"signature_version": "v1"
},
{
"id": "CVE-2025-40207-3b8d925f",
"target": {
"file": "include/media/v4l2-subdev.h"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ed30811fbed40751deb952bde534aa2632dc0bf7",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"67848120034034751061199377624728573957",
"286651731511535373490926462359651239161",
"315643079425288521822998948374328583667",
"120952871535732310727201211295039477825",
"52397692760856348340788336722857099677",
"85557283562516437130813804812990220702",
"335154259882899120156714671272660631213",
"15064881397755042973045808357733866966",
"168441935875947413423423712940403475385",
"63366485801464290280258589515735625901",
"38939291895773114666935853235050273364",
"134630030573917119185639435088577333145",
"170225917983315156319609577080299213187",
"218520837191962708252737602728161062302",
"82569947194068045391911144612087238082"
]
},
"deprecated": false,
"signature_version": "v1"
},
{
"id": "CVE-2025-40207-97bbff1d",
"target": {
"file": "include/media/v4l2-subdev.h"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5b0057459cdc243ffb35617603142dcace09c711",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"67848120034034751061199377624728573957",
"286651731511535373490926462359651239161",
"315643079425288521822998948374328583667",
"120952871535732310727201211295039477825",
"52397692760856348340788336722857099677",
"85557283562516437130813804812990220702",
"335154259882899120156714671272660631213",
"15064881397755042973045808357733866966",
"168441935875947413423423712940403475385",
"63366485801464290280258589515735625901",
"38939291895773114666935853235050273364",
"134630030573917119185639435088577333145",
"170225917983315156319609577080299213187",
"218520837191962708252737602728161062302",
"82569947194068045391911144612087238082"
]
},
"deprecated": false,
"signature_version": "v1"
},
{
"id": "CVE-2025-40207-98e2767c",
"target": {
"file": "include/media/v4l2-subdev.h"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@94e6336dc1f06a06f5b4cd04d4a012bba34f2857",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"67848120034034751061199377624728573957",
"286651731511535373490926462359651239161",
"315643079425288521822998948374328583667",
"120952871535732310727201211295039477825",
"52397692760856348340788336722857099677",
"85557283562516437130813804812990220702",
"335154259882899120156714671272660631213",
"15064881397755042973045808357733866966",
"168441935875947413423423712940403475385",
"63366485801464290280258589515735625901",
"38939291895773114666935853235050273364",
"134630030573917119185639435088577333145",
"170225917983315156319609577080299213187",
"218520837191962708252737602728161062302",
"82569947194068045391911144612087238082"
]
},
"deprecated": false,
"signature_version": "v1"
},
{
"id": "CVE-2025-40207-ae9c2985",
"target": {
"file": "include/media/v4l2-subdev.h"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a553530b3314a0bdc98cf114cdbe204551a70a00",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"67848120034034751061199377624728573957",
"286651731511535373490926462359651239161",
"315643079425288521822998948374328583667",
"120952871535732310727201211295039477825",
"52397692760856348340788336722857099677",
"85557283562516437130813804812990220702",
"335154259882899120156714671272660631213",
"15064881397755042973045808357733866966",
"168441935875947413423423712940403475385",
"63366485801464290280258589515735625901",
"38939291895773114666935853235050273364",
"134630030573917119185639435088577333145",
"170225917983315156319609577080299213187",
"218520837191962708252737602728161062302",
"82569947194068045391911144612087238082"
]
},
"deprecated": false,
"signature_version": "v1"
}
]