CVE-2025-40354: 
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-40354 is a NULL pointer dereference vulnerability in the Linux kernel's DRM/AMD display subsystem (drm/amd/display). It involves two related issues: an undersized dc->links[MAX_LINKS] array (12 entries instead of the required 14) and a NULL pointer dereference in hw_init() when accessing LINK_ENC for DPIA non-display endpoints. The vulnerability was published on December 16, 2025, and affects the Linux kernel across multiple stable branches. The EPSS score is approximately 0.00017 (very low), and no CVSS score has been formally assigned (Feedly, EUVD).

Technical details

The root cause is a combination of an out-of-bounds array sizing error (CWE-131: Incorrect Calculation of Buffer Size) and a NULL pointer dereference (CWE-476). The dc->links array was allocated with MAX_LINKS = 12, but the actual maximum required is max_connector + max_dpia + 4 virtual = 14, meaning array accesses beyond index 11 could corrupt adjacent memory. Additionally, hw_init() unconditionally accesses link->enc for DPIA links that are not display endpoints, where link->enc is NULL, triggering a kernel NULL pointer dereference. The fix increases MAX_LINKS to 14 and adds a guard to skip NULL LINK_ENC access for non-display DPIA endpoints, cherry-picked from upstream commit d7f5a61e1b04ed87b008c8d327649d184dc5bb45 (Feedly, EUVD).

Impact

Exploitation of this vulnerability can cause a kernel NULL pointer dereference, resulting in a kernel panic (system crash) and denial of service on affected Linux systems with AMD GPUs that use DPIA (DisplayPort Input Adapter) links. The array undersizing could also lead to out-of-bounds memory access, potentially corrupting kernel memory structures. The impact is primarily an availability concern (system crash), with limited confidentiality or integrity risk in typical exploitation scenarios (Feedly).

Exploitability

There is no known public exploit code, active in-the-wild exploitation, or threat actor attribution for CVE-2025-40354. The EPSS score is approximately 0.00017, indicating a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation would require local access to a system with an affected AMD GPU configuration, further limiting practical risk (Feedly).

Mitigation and workarounds

The Linux kernel maintainers have released patches addressing this vulnerability in the following stable versions: 6.12.56, 6.17.6, and 6.18 (mainline). The fixes are available via the stable kernel git repository at the referenced commits. Users running affected kernel versions with AMD GPUs should update to a patched kernel release. No configuration-based workaround is available; upgrading is the recommended remediation (EUVD, Kernel Stable).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

linux

Affected

sid

linux: 6.17.6-1

Fixed

trixie

linux: 6.12.57-1

Fixed

Ubuntu

Fixed

bionic (esm-infra)

linux

Affected

bionic (fips-updates)

linux-fips

Affected

bionic (fips)

linux-fips

Affected

devel

linux

Not Affected

focal

linux-azure-fde-5.15

Not Affected

focal (esm-infra)

linux

Affected

focal (fips-updates)

linux-fips

Affected

focal (fips)

linux-fips

Affected

RHEL / CentOS

Affected

RHEL 8

Not Affected

RHEL 9

Not Affected

RHEL 10

Not Affected

Source: This report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-99099NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-modules
NoYesOct 26, 2026
CVE-2026-99098NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-debug
NoYesOct 26, 2026
CVE-2026-99097NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-core
NoYesOct 26, 2026
CVE-2026-99096NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug
NoYesOct 26, 2026
CVE-2026-99094NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-64k-core
NoYesOct 26, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management