# CVE-2025-40354: drm/amd/display: increase max link count and fix link->enc NULL pointer access

- 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.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2025-12-16T13:30:27.082Z
- Modified: 2026-10-14T13:10:00.187Z
- Assigned by: Linux

## Description

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

drm/amd/display: increase max link count and fix link->enc NULL pointer access

[why]
1.) dc->links[MAX_LINKS] array size smaller than actual requested.
max_connector + max_dpia + 4 virtual = 14.
increase from 12 to 14.

2.) hw_init() access null LINK_ENC for dpia non display_endpoint.

(cherry picked from commit d7f5a61e1b04ed87b008c8d327649d184dc5bb45)

(As written by CVE List.)

## Affected

- Linux Linux: from 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c before f28092be4e12b7df9e4f415d25bf0d767bc2d9ed; from 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c before a3fc0d36cfb927f8986b83bf5fba47dbedad3c63; from 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c before bec947cbe9a65783adb475a5fb47980d7b4f4796; 4.15 (not affected: before 4.15; from 6.12.56 up to 6.12.*; from 6.17.6 up to 6.17.*; from 6.18 up to *)

## References

- <https://git.kernel.org/stable/c/f28092be4e12b7df9e4f415d25bf0d767bc2d9ed>
- <https://git.kernel.org/stable/c/a3fc0d36cfb927f8986b83bf5fba47dbedad3c63>
- <https://git.kernel.org/stable/c/bec947cbe9a65783adb475a5fb47980d7b4f4796>

## Sources

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

---

Page: https://cve.day/CVE-2025-40354 · Whole record: https://cve.day/CVE-2025-40354.json · Rebuilt by cve.day 2026-11-25T22:59:09.471Z
