# CVE-2024-42122: drm/amd/display: Add NULL pointer check for kzalloc

- 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.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2024-07-30T07:46:13.921Z
- Modified: 2026-06-17T07:48:52.880Z
- 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 pointer check for kzalloc

[Why & How]
Check return pointer of kzalloc before using it.

(As written by CVE List.)

## Affected

- Linux Linux: from 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c before 552e7938b4d7fe548fbf29b9950a14c6149d0470; from 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c before cd1e565a5b7fa60c349ca8a16db1e61715fe8230; from 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c before 062edd612fcd300f0f79a36fca5b8b6a5e2fce70; from 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c before 8e65a1b7118acf6af96449e1e66b7adbc9396912; 4.15 (not affected: before 4.15; from 6.1.129 up to 6.1.*; from 6.6.64 up to 6.6.*; from 6.9.9 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: before 6.9.9

## References

- <https://git.kernel.org/stable/c/552e7938b4d7fe548fbf29b9950a14c6149d0470>
- <https://git.kernel.org/stable/c/cd1e565a5b7fa60c349ca8a16db1e61715fe8230>
- <https://git.kernel.org/stable/c/062edd612fcd300f0f79a36fca5b8b6a5e2fce70> (patch)
- <https://git.kernel.org/stable/c/8e65a1b7118acf6af96449e1e66b7adbc9396912> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html>

## Sources

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

---

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