In the Linux kernel, the following vulnerability has been resolved:
drm/amd/display: Add null check for headpipe in dcn32acquireidlepipeforheadpipein_layer
This commit addresses a potential null pointer dereference issue in the
dcn32_acquire_idle_pipe_for_head_pipe_in_layer function. The issue
could occur when head_pipe is null.
The fix adds a check to ensure head_pipe is not null before asserting
it. If head_pipe is null, the function returns NULL to prevent a
potential null pointer dereference.
Reported by smatch: drivers/gpu/drm/amd/amdgpu/../display/dc/resource/dcn32/dcn32resource.c:2690 dcn32acquireidlepipeforheadpipeinlayer() error: we previously assumed 'headpipe' could be null (see line 2681)
[
{
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2024-49918-4473197f",
"digest": {
"length": 1023.0,
"function_hash": "82131336174535674585414664154096579423"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ac2140449184a26eac99585b7f69814bd3ba8f2d",
"signature_version": "v1",
"target": {
"function": "dcn32_acquire_idle_pipe_for_head_pipe_in_layer",
"file": "drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c"
}
},
{
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2024-49918-4afda7a1",
"digest": {
"line_hashes": [
"286711255886415622641737593943428573503",
"326232550318978882123181220084087857334",
"225477698556714399418506533242013476197",
"142066300174129344755101575149491096094",
"249348768307625534682298822831761736196"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ac2140449184a26eac99585b7f69814bd3ba8f2d",
"signature_version": "v1",
"target": {
"file": "drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c"
}
},
{
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2024-49918-adf0e0c8",
"digest": {
"line_hashes": [
"286711255886415622641737593943428573503",
"326232550318978882123181220084087857334",
"225477698556714399418506533242013476197",
"142066300174129344755101575149491096094",
"249348768307625534682298822831761736196"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4f47292f488fa7041284dca1f1244116c18721f1",
"signature_version": "v1",
"target": {
"file": "drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c"
}
},
{
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2024-49918-bd771d70",
"digest": {
"length": 1023.0,
"function_hash": "82131336174535674585414664154096579423"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4f47292f488fa7041284dca1f1244116c18721f1",
"signature_version": "v1",
"target": {
"function": "dcn32_acquire_idle_pipe_for_head_pipe_in_layer",
"file": "drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c"
}
}
]