# CVE-2024-49908: drm/amd/display: Add null check for 'afb' in amdgpu_dm_update_cursor (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.27%, higher than 11% of CVEs (2026-11-30)
- Published: 2024-10-21T18:01:38.149Z
- Modified: 2026-06-17T08:00:42.810Z
- 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_update_cursor (v2)

This commit adds a null check for the 'afb' variable in the
amdgpu_dm_update_cursor function. Previously, 'afb' was assumed to be
null at line 8388, 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.c:8433 amdgpu_dm_update_cursor()
	error: we previously assumed 'afb' could be null (see line 8388)

(As written by CVE List.)

## Affected

- Linux Linux: from 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c before a742168b6a39ead257da53bcbe472384d6e14a1b; from 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c before 0fe20258b4989b9112b5e9470df33a0939403fd4; 4.15 (not affected: before 4.15; from 6.11.3 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: before 6.11.3

## References

- <https://git.kernel.org/stable/c/a742168b6a39ead257da53bcbe472384d6e14a1b> (patch)
- <https://git.kernel.org/stable/c/0fe20258b4989b9112b5e9470df33a0939403fd4> (patch)

## Sources

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

---

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