In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: increase max link count and fix link->enc NULL pointer access… (CVE-2025-40354)
A vulnerability in the Linux kernel's AMD display driver (drm/amd/display) was resolved by increasing the maximum link count and fixing a NULL pointer access related to link->enc. The issue involved an array size smaller than required and a null pointer dereference during hardware initialization for certain display endpoints.
AI Analysis
Technical Summary
CVE-2025-40354 addresses a flaw in the Linux kernel's AMD display driver where the dc->links array size was insufficient to handle the actual number of requested links, leading to potential out-of-bounds conditions. Additionally, the hardware initialization function (hw_init) could access a NULL LINK_ENC pointer for dpia non-display endpoints, causing a NULL pointer dereference. The fix involved increasing the maximum link count from 12 to 14 and correcting the pointer access to prevent null dereference.
Potential Impact
The vulnerability has a high severity rating with a CVSS 3.1 vector indicating local attack vector, low attack complexity, low privileges required, no user interaction, and impacts confidentiality, integrity, and availability. Exploitation could lead to system compromise or denial of service due to NULL pointer dereference in kernel space.
Mitigation Recommendations
A fix has been applied in the Linux kernel source code as indicated by the referenced commit. Users should update to the patched kernel version containing this fix. Since this is not a cloud service, remediation depends on applying the official kernel update. Patch status is not explicitly confirmed in the provided data; users should consult the Linux kernel vendor advisory or distribution security updates for the official patch availability and apply it accordingly.
In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: increase max link count and fix link->enc NULL pointer access… (CVE-2025-40354)
Description
A vulnerability in the Linux kernel's AMD display driver (drm/amd/display) was resolved by increasing the maximum link count and fixing a NULL pointer access related to link->enc. The issue involved an array size smaller than required and a null pointer dereference during hardware initialization for certain display endpoints.
CVSS v3.1
Score 7.8high
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2025-40354 addresses a flaw in the Linux kernel's AMD display driver where the dc->links array size was insufficient to handle the actual number of requested links, leading to potential out-of-bounds conditions. Additionally, the hardware initialization function (hw_init) could access a NULL LINK_ENC pointer for dpia non-display endpoints, causing a NULL pointer dereference. The fix involved increasing the maximum link count from 12 to 14 and correcting the pointer access to prevent null dereference.
Potential Impact
The vulnerability has a high severity rating with a CVSS 3.1 vector indicating local attack vector, low attack complexity, low privileges required, no user interaction, and impacts confidentiality, integrity, and availability. Exploitation could lead to system compromise or denial of service due to NULL pointer dereference in kernel space.
Mitigation Recommendations
A fix has been applied in the Linux kernel source code as indicated by the referenced commit. Users should update to the patched kernel version containing this fix. Since this is not a cloud service, remediation depends on applying the official kernel update. Patch status is not explicitly confirmed in the provided data; users should consult the Linux kernel vendor advisory or distribution security updates for the official patch availability and apply it accordingly.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-4hhj-gxrr-2grg
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2025-40354"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a6b72d49c2644c7f8478f28
Added to database: 07/30/2026, 15:50:44 UTC
Last enriched: 07/30/2026, 17:53:36 UTC
Last updated: 09/10/2026, 19:26:52 UTC
Views: 11
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.