# CVE-2024-42121: drm/amd/display: Check index msg_id before read or write

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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.064Z
- Modified: 2026-06-17T07:48:52.753Z
- Weaknesses: CWE-129
- 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: Check index msg_id before read or write

[WHAT]
msg_id is used as an array index and it cannot be a negative value, and
therefore cannot be equal to MOD_HDCP_MESSAGE_ID_INVALID (-1).

[HOW]
Check whether msg_id is valid before reading and setting.

This fixes 4 OVERRUN issues reported by Coverity.

(As written by CVE List.)

## Affected

- Linux Linux: from 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c before b5b8837d066cc182ff69fb5629ad32ade5484567; from 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c before fbb0701af9734cff13917a4b98b5ee9da2fde48d; from 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c before ae91ffbc8b8d942e3e7f188728cad557b7ed5ee4; from 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c before 9933eca6ada0cd612e19522e7a319bcef464c0eb; from 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c before a31ea49dc8064a557565725cf045944307476a6e; from 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c before 59d99deb330af206a4541db0c4da8f73880fba03; 4.15 (not affected: before 4.15; from 5.10.222 up to 5.10.*; from 5.15.163 up to 5.15.*; from 6.1.98 up to 6.1.*; from 6.6.39 up to 6.6.*; from 6.9.9 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: from 4.15 before 5.10.222; from 5.11 before 5.15.163; from 5.16 before 6.1.98; from 6.2 before 6.6.39; from 6.7 before 6.9.9

## References

- <https://git.kernel.org/stable/c/b5b8837d066cc182ff69fb5629ad32ade5484567> (patch)
- <https://git.kernel.org/stable/c/fbb0701af9734cff13917a4b98b5ee9da2fde48d> (patch)
- <https://git.kernel.org/stable/c/ae91ffbc8b8d942e3e7f188728cad557b7ed5ee4> (patch)
- <https://git.kernel.org/stable/c/9933eca6ada0cd612e19522e7a319bcef464c0eb> (patch)
- <https://git.kernel.org/stable/c/a31ea49dc8064a557565725cf045944307476a6e> (patch)
- <https://git.kernel.org/stable/c/59d99deb330af206a4541db0c4da8f73880fba03> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Sources

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

---

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