In the Linux kernel, the following vulnerability has been resolved:
drm/amd/display: Add null check for 'afb' in amdgpudmplanehandlecursor_update (v2)
This commit adds a null check for the 'afb' variable in the amdgpudmplanehandlecursor_update function. Previously, 'afb' was assumed to be null, but was used later in the code without a null check. This could potentially lead to a null pointer dereference.
Changes since v1: - Moved the null check for 'afb' to the line where 'afb' is used. (Alex)
Fixes the below: drivers/gpu/drm/amd/amdgpu/../display/amdgpudm/amdgpudmplane.c:1298 amdgpudmplanehandlecursorupdate() error: we previously assumed 'afb' could be null (see line 1252)
[
{
"id": "CVE-2024-49905-1f61e3b8",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e4e26cbe34d7c1c1db5fb7b3101573c29866439f",
"target": {
"function": "amdgpu_dm_plane_handle_cursor_update",
"file": "drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c"
},
"digest": {
"length": 1752.0,
"function_hash": "323981821250589117814402891784426331508"
},
"signature_type": "Function"
},
{
"id": "CVE-2024-49905-426301bd",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@75839e2365b666ff4e1b9047e442cab138eac4f6",
"target": {
"file": "drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c"
},
"digest": {
"line_hashes": [
"194452264693501073831217654834595859420",
"187136090532804663631221576794943971704",
"68543359973276237252596902650169172972",
"59544190507047961214862963652644061771"
],
"threshold": 0.9
},
"signature_type": "Line"
},
{
"id": "CVE-2024-49905-6a1f217d",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cd9e9e0852d501f169aa3bb34e4b413d2eb48c37",
"target": {
"file": "drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c"
},
"digest": {
"line_hashes": [
"194452264693501073831217654834595859420",
"187136090532804663631221576794943971704",
"68543359973276237252596902650169172972",
"173498219901566644624816602738359750029"
],
"threshold": 0.9
},
"signature_type": "Line"
},
{
"id": "CVE-2024-49905-8c545d5e",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e4e26cbe34d7c1c1db5fb7b3101573c29866439f",
"target": {
"file": "drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c"
},
"digest": {
"line_hashes": [
"194452264693501073831217654834595859420",
"187136090532804663631221576794943971704",
"68543359973276237252596902650169172972",
"173498219901566644624816602738359750029"
],
"threshold": 0.9
},
"signature_type": "Line"
},
{
"id": "CVE-2024-49905-d2b37758",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@75839e2365b666ff4e1b9047e442cab138eac4f6",
"target": {
"function": "amdgpu_dm_plane_handle_cursor_update",
"file": "drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c"
},
"digest": {
"length": 1752.0,
"function_hash": "301896009561850535695004790210244214539"
},
"signature_type": "Function"
},
{
"id": "CVE-2024-49905-ea028ae9",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cd9e9e0852d501f169aa3bb34e4b413d2eb48c37",
"target": {
"function": "amdgpu_dm_plane_handle_cursor_update",
"file": "drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c"
},
"digest": {
"length": 1752.0,
"function_hash": "323981821250589117814402891784426331508"
},
"signature_type": "Function"
}
]