In the Linux kernel, the following vulnerability has been resolved:
drm/amd/display: Add null check for headpipe in dcn201acquirefreepipeforlayer
This commit addresses a potential null pointer dereference issue in the
dcn201_acquire_free_pipe_for_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/dcn201/dcn201resource.c:1016 dcn201acquirefreepipeforlayer() error: we previously assumed 'head_pipe' could be null (see line 1010)
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49919.json"
}[
{
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2024-49919-478337a4",
"target": {
"file": "drivers/gpu/drm/amd/display/dc/dcn201/dcn201_resource.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"29323990217642834592905021571718268283",
"2743315352317287411492861960396432476",
"138419871910785730208085893404291352823",
"184618440880008978390168994402330255719",
"85675390656035857218693740187700889279"
]
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@16ce8fd94da8599bb6f0496895d392a69aead1c0"
},
{
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2024-49919-f8d0b7d7",
"target": {
"file": "drivers/gpu/drm/amd/display/dc/dcn201/dcn201_resource.c",
"function": "dcn201_acquire_free_pipe_for_layer"
},
"digest": {
"length": 704.0,
"function_hash": "10187862511791477897215832730030315338"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@16ce8fd94da8599bb6f0496895d392a69aead1c0"
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-49919.json"