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)
[
{
"digest": {
"function_hash": "82131336174535674585414664154096579423",
"length": 1023.0
},
"id": "CVE-2024-49918-4473197f",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ac2140449184a26eac99585b7f69814bd3ba8f2d",
"signature_version": "v1",
"deprecated": false,
"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": "Function"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"286711255886415622641737593943428573503",
"326232550318978882123181220084087857334",
"225477698556714399418506533242013476197",
"142066300174129344755101575149491096094",
"249348768307625534682298822831761736196"
]
},
"id": "CVE-2024-49918-4afda7a1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ac2140449184a26eac99585b7f69814bd3ba8f2d",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c"
},
"signature_type": "Line"
},
{
"digest": {
"function_hash": "82131336174535674585414664154096579423",
"length": 1023.0
},
"id": "CVE-2024-49918-7551019b",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@96d4c2ee18d732a248d053aae8c4a27cb1d68d1c",
"signature_version": "v1",
"deprecated": false,
"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": "Function"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"286711255886415622641737593943428573503",
"326232550318978882123181220084087857334",
"225477698556714399418506533242013476197",
"142066300174129344755101575149491096094",
"249348768307625534682298822831761736196"
]
},
"id": "CVE-2024-49918-a041f7ab",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@96d4c2ee18d732a248d053aae8c4a27cb1d68d1c",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c"
},
"signature_type": "Line"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"286711255886415622641737593943428573503",
"326232550318978882123181220084087857334",
"225477698556714399418506533242013476197",
"142066300174129344755101575149491096094",
"249348768307625534682298822831761736196"
]
},
"id": "CVE-2024-49918-adf0e0c8",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4f47292f488fa7041284dca1f1244116c18721f1",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c"
},
"signature_type": "Line"
},
{
"digest": {
"function_hash": "82131336174535674585414664154096579423",
"length": 1023.0
},
"id": "CVE-2024-49918-bd771d70",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4f47292f488fa7041284dca1f1244116c18721f1",
"signature_version": "v1",
"deprecated": false,
"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": "Function"
}
]