# CVE-2025-21985: drm/amd/display: Fix out-of-bound accesses

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `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.20%, higher than 10% of CVEs (2026-12-02)
- Published: 2025-04-01T15:47:12.103Z
- Modified: 2026-08-05T11:55:51.832Z
- Weaknesses: CWE-125
- Assigned by: Linux

## Description

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

drm/amd/display: Fix out-of-bound accesses

[WHAT & HOW]
hpo_stream_to_link_encoder_mapping has size MAX_HPO_DP2_ENCODERS(=4),
but location can have size up to 6. As a result, it is necessary to
check location against MAX_HPO_DP2_ENCODERS.

Similiarly, disp_cfg_stream_location can be used as an array index which
should be 0..5, so the ASSERT's conditions should be less without equal.

(As written by CVE List.)

## Affected

- Linux Linux: from 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c before 36793d90d76f667d26c6dd025571481ee0c96abc; from 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c before 9aedc776b11038f04f4641241bb7e877781e4aa4; from 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c before 8adbb2a98b00926315fd513b5fe2596b5716b82d; 4.15 (not affected: before 4.15; from 6.12.20 up to 6.12.*; from 6.13.8 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 4.15 before 6.12.20; from 6.13 before 6.13.8; 6.14

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/36793d90d76f667d26c6dd025571481ee0c96abc> (patch)
- <https://git.kernel.org/stable/c/9aedc776b11038f04f4641241bb7e877781e4aa4> (patch)
- <https://git.kernel.org/stable/c/8adbb2a98b00926315fd513b5fe2596b5716b82d> (patch)

## Sources

- CVE List: [CVE-2025-21985](https://www.cve.org/CVERecord?id=CVE-2025-21985), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2025-21985](https://nvd.nist.gov/vuln/detail/CVE-2025-21985), Public domain, modified 2026-07-30

---

Page: https://cve.day/CVE-2025-21985 · Whole record: https://cve.day/CVE-2025-21985.json · Rebuilt by cve.day 2026-11-25T22:58:55.924Z
