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.]
[
{
"id": "CVE-2024-43833-2618a6c2",
"target": {
"file": "drivers/media/v4l2-core/v4l2-async.c",
"function": "v4l2_async_create_ancillary_links"
},
"digest": {
"function_hash": "137471252171683841680995072254084702884",
"length": 362.0
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fe0f92fd5320b393e44ca210805e653ea90cc982",
"signature_version": "v1"
},
{
"id": "CVE-2024-43833-2726e8a9",
"target": {
"file": "drivers/media/v4l2-core/v4l2-async.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"236534008121251054595213167591771396210",
"158924357557689816183512726828237569061",
"284589501284120632898852674180029141432"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fe0f92fd5320b393e44ca210805e653ea90cc982",
"signature_version": "v1"
},
{
"id": "CVE-2024-43833-2bad454e",
"target": {
"file": "drivers/media/v4l2-core/v4l2-async.c",
"function": "v4l2_async_create_ancillary_links"
},
"digest": {
"function_hash": "137471252171683841680995072254084702884",
"length": 362.0
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@249212ceb4187783af3801c57b92a5a25d410621",
"signature_version": "v1"
},
{
"id": "CVE-2024-43833-4bf5d6d4",
"target": {
"file": "drivers/media/v4l2-core/v4l2-async.c",
"function": "v4l2_async_create_ancillary_links"
},
"digest": {
"function_hash": "260038797209462195969694840591461384170",
"length": 373.0
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b87e28050d9b0959de24574d587825cfab2f13fb",
"signature_version": "v1"
},
{
"id": "CVE-2024-43833-4f1c1079",
"target": {
"file": "drivers/media/v4l2-core/v4l2-async.c",
"function": "v4l2_async_create_ancillary_links"
},
"digest": {
"function_hash": "260038797209462195969694840591461384170",
"length": 373.0
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9b4667ea67854f0b116fe22ad11ef5628c5b5b5f",
"signature_version": "v1"
},
{
"id": "CVE-2024-43833-a080b07a",
"target": {
"file": "drivers/media/v4l2-core/v4l2-async.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"236534008121251054595213167591771396210",
"158924357557689816183512726828237569061",
"284589501284120632898852674180029141432"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@249212ceb4187783af3801c57b92a5a25d410621",
"signature_version": "v1"
},
{
"id": "CVE-2024-43833-d6bba6a1",
"target": {
"file": "drivers/media/v4l2-core/v4l2-async.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"236534008121251054595213167591771396210",
"121638348646210686690324149975032188871",
"126595866025783941161141141072371028928"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b87e28050d9b0959de24574d587825cfab2f13fb",
"signature_version": "v1"
},
{
"id": "CVE-2024-43833-dbe46f99",
"target": {
"file": "drivers/media/v4l2-core/v4l2-async.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"236534008121251054595213167591771396210",
"121638348646210686690324149975032188871",
"126595866025783941161141141072371028928"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9b4667ea67854f0b116fe22ad11ef5628c5b5b5f",
"signature_version": "v1"
}
]