In the Linux kernel, the following vulnerability has been resolved:
media: v4l: async: Fix NULL pointer dereference in adding ancillary links
In v4l2asynccreateancillarylinks(), ancillary links are created for lens and flash sub-devices. These are sub-device to sub-device links and if the async notifier is related to a V4L2 device, the source sub-device of the ancillary link is NULL, leading to a NULL pointer dereference. Check the notifier's sd field is non-NULL in v4l2asynccreateancillarylinks().
[Sakari Ailus: Reword the subject and commit messages slightly.]
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fe0f92fd5320b393e44ca210805e653ea90cc982",
"target": {
"function": "v4l2_async_create_ancillary_links",
"file": "drivers/media/v4l2-core/v4l2-async.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2024-43833-2618a6c2",
"signature_type": "Function",
"digest": {
"length": 362.0,
"function_hash": "137471252171683841680995072254084702884"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fe0f92fd5320b393e44ca210805e653ea90cc982",
"target": {
"file": "drivers/media/v4l2-core/v4l2-async.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2024-43833-2726e8a9",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"236534008121251054595213167591771396210",
"158924357557689816183512726828237569061",
"284589501284120632898852674180029141432"
]
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@249212ceb4187783af3801c57b92a5a25d410621",
"target": {
"function": "v4l2_async_create_ancillary_links",
"file": "drivers/media/v4l2-core/v4l2-async.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2024-43833-2bad454e",
"signature_type": "Function",
"digest": {
"length": 362.0,
"function_hash": "137471252171683841680995072254084702884"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9b4667ea67854f0b116fe22ad11ef5628c5b5b5f",
"target": {
"function": "v4l2_async_create_ancillary_links",
"file": "drivers/media/v4l2-core/v4l2-async.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2024-43833-4f1c1079",
"signature_type": "Function",
"digest": {
"length": 373.0,
"function_hash": "260038797209462195969694840591461384170"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@249212ceb4187783af3801c57b92a5a25d410621",
"target": {
"file": "drivers/media/v4l2-core/v4l2-async.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2024-43833-a080b07a",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"236534008121251054595213167591771396210",
"158924357557689816183512726828237569061",
"284589501284120632898852674180029141432"
]
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9b4667ea67854f0b116fe22ad11ef5628c5b5b5f",
"target": {
"file": "drivers/media/v4l2-core/v4l2-async.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2024-43833-dbe46f99",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"236534008121251054595213167591771396210",
"121638348646210686690324149975032188871",
"126595866025783941161141141072371028928"
]
}
}
]