CVE-2025-40354

Source
https://cve.org/CVERecord?id=CVE-2025-40354
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40354.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-40354
Downstream
Related
Published
2025-12-16T13:30:27.082Z
Modified
2026-03-20T12:43:16.506092Z
Summary
drm/amd/display: increase max link count and fix link->enc NULL pointer access
Details

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[MAXLINKS] array size smaller than actual requested. maxconnector + max_dpia + 4 virtual = 14. increase from 12 to 14.

2.) hwinit() access null LINKENC for dpia non display_endpoint.

(cherry picked from commit d7f5a61e1b04ed87b008c8d327649d184dc5bb45)

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40354.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c
Fixed
f28092be4e12b7df9e4f415d25bf0d767bc2d9ed
Fixed
a3fc0d36cfb927f8986b83bf5fba47dbedad3c63
Fixed
bec947cbe9a65783adb475a5fb47980d7b4f4796

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40354.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.15.0
Fixed
6.12.56
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.17.6

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40354.json"