In the Linux kernel, the following vulnerability has been resolved:
drm/amd/display: Add null check for pipectx->planestate in dcn20programpipe
This commit addresses a null pointer dereference issue in the
dcn20_program_pipe function. The issue could occur when
pipe_ctx->plane_state is null.
The fix adds a check to ensure pipe_ctx->plane_state is not null
before accessing. This prevents a null pointer dereference.
Reported by smatch: drivers/gpu/drm/amd/amdgpu/../display/dc/hwss/dcn20/dcn20hwseq.c:1925 dcn20programpipe() error: we previously assumed 'pipectx->plane_state' could be null (see line 1877)
[
{
"deprecated": false,
"target": {
"file": "drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c",
"function": "dcn20_program_pipe"
},
"digest": {
"length": 4588.0,
"function_hash": "163568006818879220249674897329428651507"
},
"id": "CVE-2024-49914-020e443c",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8e4ed3cf1642df0c4456443d865cff61a9598aa8",
"signature_version": "v1"
},
{
"deprecated": false,
"target": {
"file": "drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"180166028383424644984861496558541111802",
"226149435981968214087853254063753258972",
"182629882665144979971128077560292253961",
"146190960100417741690303200860707058856",
"328940576432533817570366175438789644863",
"241346847253050184793655437663355758127",
"229790823784943582972192205742636695121",
"276516092832025429036193227893047421853",
"266042297971743680264490245767115497375",
"13278113116247974083065515246817825829",
"279789168380571338600504740558358747055",
"256084401319490014540447584146728848535",
"46817018742752804075941797561789426354",
"83728279854736959472518018480339587666",
"236333454834835223124370766178310751667",
"159302005575023305071849826488453376812",
"158590015065149972601521107337432312961",
"141878646956916386721454958351385501803",
"159785918829056684582700228297328010344",
"125708123889034201377575291155629432923",
"150788241173146667612095136841068471882",
"103361399853781903814529802275933805897",
"199563204064973262287716616238031218632",
"143277043828755911388645553392305374925",
"171000252069245373674288272555434221408"
]
},
"id": "CVE-2024-49914-4379e96f",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8e4ed3cf1642df0c4456443d865cff61a9598aa8",
"signature_version": "v1"
},
{
"deprecated": false,
"target": {
"file": "drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c",
"function": "dcn20_program_pipe"
},
"digest": {
"length": 3355.0,
"function_hash": "185285428956178481683444252061470134952"
},
"id": "CVE-2024-49914-63e50fe2",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@68f75e6f08aad66069a629db8d7840919156c761",
"signature_version": "v1"
},
{
"deprecated": false,
"target": {
"file": "drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"170382165995074639019779183225239484440",
"105198994672409400433099150930469983737",
"115514883442987208395773747503575988039",
"146190960100417741690303200860707058856",
"328940576432533817570366175438789644863",
"261104440524448826210063254396933253317",
"46597788165571899962584689797581001258",
"276055607989026623186919397366499543052",
"83728279854736959472518018480339587666",
"236333454834835223124370766178310751667",
"159302005575023305071849826488453376812",
"158590015065149972601521107337432312961",
"141878646956916386721454958351385501803",
"159785918829056684582700228297328010344",
"125708123889034201377575291155629432923",
"150788241173146667612095136841068471882",
"103361399853781903814529802275933805897",
"199563204064973262287716616238031218632",
"143277043828755911388645553392305374925",
"171000252069245373674288272555434221408"
]
},
"id": "CVE-2024-49914-6b7e5db3",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@68f75e6f08aad66069a629db8d7840919156c761",
"signature_version": "v1"
},
{
"deprecated": false,
"target": {
"file": "drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"180166028383424644984861496558541111802",
"226149435981968214087853254063753258972",
"182629882665144979971128077560292253961",
"146190960100417741690303200860707058856",
"328940576432533817570366175438789644863",
"241346847253050184793655437663355758127",
"229790823784943582972192205742636695121",
"276516092832025429036193227893047421853",
"266042297971743680264490245767115497375",
"13278113116247974083065515246817825829",
"279789168380571338600504740558358747055",
"256084401319490014540447584146728848535",
"46817018742752804075941797561789426354",
"83728279854736959472518018480339587666",
"236333454834835223124370766178310751667",
"159302005575023305071849826488453376812",
"158590015065149972601521107337432312961",
"141878646956916386721454958351385501803",
"159785918829056684582700228297328010344",
"125708123889034201377575291155629432923",
"150788241173146667612095136841068471882",
"103361399853781903814529802275933805897",
"199563204064973262287716616238031218632",
"143277043828755911388645553392305374925",
"171000252069245373674288272555434221408"
]
},
"id": "CVE-2024-49914-9ac9e487",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@65a6fee22d5cfa645cb05489892dc9cd3d142fc2",
"signature_version": "v1"
},
{
"deprecated": false,
"target": {
"file": "drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c",
"function": "dcn20_program_pipe"
},
"digest": {
"length": 4545.0,
"function_hash": "133288883503347471926714638417468125162"
},
"id": "CVE-2024-49914-c78a4b75",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@65a6fee22d5cfa645cb05489892dc9cd3d142fc2",
"signature_version": "v1"
}
]