CVE-2024-49905

Source
https://cve.org/CVERecord?id=CVE-2024-49905
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-49905.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-49905
Downstream
Related
Published
2024-10-21T18:01:36.038Z
Modified
2026-03-11T07:53:30.602513902Z
Summary
drm/amd/display: Add null check for 'afb' in amdgpu_dm_plane_handle_cursor_update (v2)
Details

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)

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49905.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c
Fixed
bd0e24e5e608ccb9fdda300bb974496d6d8cf57d
Fixed
75839e2365b666ff4e1b9047e442cab138eac4f6
Fixed
9132882eaae4d21d2fc5843b3308379a481ebdf0
Fixed
e4e26cbe34d7c1c1db5fb7b3101573c29866439f
Fixed
cd9e9e0852d501f169aa3bb34e4b413d2eb48c37

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-49905.json"