# CVE-2024-49905: drm/amd/display: Add null check for 'afb' in amdgpu_dm_plane_handle_cursor_update (v2)

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2024-10-21T18:01:36.038Z
- Modified: 2026-06-17T08:00:42.450Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

drm/amd/display: Add null check for 'afb' in amdgpu_dm_plane_handle_cursor_update (v2)

This commit adds a null check for the 'afb' variable in the
amdgpu_dm_plane_handle_cursor_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/amdgpu_dm/amdgpu_dm_plane.c:1298 amdgpu_dm_plane_handle_cursor_update() error: we previously assumed 'afb' could be null (see line 1252)

(As written by CVE List.)

## Affected

- Linux Linux: from 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c before bd0e24e5e608ccb9fdda300bb974496d6d8cf57d; from 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c before 75839e2365b666ff4e1b9047e442cab138eac4f6; from 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c before 9132882eaae4d21d2fc5843b3308379a481ebdf0; from 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c before e4e26cbe34d7c1c1db5fb7b3101573c29866439f; from 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c before cd9e9e0852d501f169aa3bb34e4b413d2eb48c37; 4.15 (not affected: before 4.15; from 6.1.113 up to 6.1.*; from 6.6.55 up to 6.6.*; from 6.10.14 up to 6.10.*; from 6.11.3 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: before 6.1.113; from 6.2 before 6.6.55; from 6.7 before 6.10.14; from 6.11 before 6.11.3

## References

- <https://git.kernel.org/stable/c/bd0e24e5e608ccb9fdda300bb974496d6d8cf57d> (patch)
- <https://git.kernel.org/stable/c/75839e2365b666ff4e1b9047e442cab138eac4f6> (patch)
- <https://git.kernel.org/stable/c/9132882eaae4d21d2fc5843b3308379a481ebdf0> (patch)
- <https://git.kernel.org/stable/c/e4e26cbe34d7c1c1db5fb7b3101573c29866439f> (patch)
- <https://git.kernel.org/stable/c/cd9e9e0852d501f169aa3bb34e4b413d2eb48c37> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Sources

- CVE List: [CVE-2024-49905](https://www.cve.org/CVERecord?id=CVE-2024-49905), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-49905](https://nvd.nist.gov/vuln/detail/CVE-2024-49905), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-49905 · Whole record: https://cve.day/CVE-2024-49905.json · Rebuilt by cve.day 2026-11-25T22:58:47.038Z
