CVE-2025-40346
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-40346 is a NULL pointer dereference vulnerability in the Linux kernel's arch_topology subsystem, specifically within the topology_parse_cpu_capacity() function. The flaw stems from incorrect use of PTR_ERR_OR_ZERO() instead of IS_ERR_OR_NULL() when checking the return value of of_clk_get(), allowing the code to proceed with a NULL clock pointer and subsequently call clk_get_rate(NULL). The vulnerability was published on December 16, 2025, and affects Linux kernel versions from the introduction of commit b8fe128dad8f97cc9af7c55a264d1fc5ab677195 up to the respective fix commits across multiple stable branches. No CVSS base score has been assigned at this time (Feedly, CVE Record).

Technical details

The root cause is an incorrect error-checking idiom (CWE-476: NULL Pointer Dereference). The function topology_parse_cpu_capacity() uses !PTR_ERR_OR_ZERO(cpu_clk) to determine whether to proceed with the clock pointer; however, PTR_ERR_OR_ZERO() returns 0 for both valid pointers and NULL pointers, meaning the condition evaluates to true in both cases. When of_clk_get() returns NULL (e.g., when a CPU clock is not defined in the device tree), the code incorrectly proceeds to call clk_get_rate(NULL), which can trigger a NULL pointer dereference. The fix replaces the check with !IS_ERR_OR_NULL(cpu_clk), which correctly distinguishes valid pointers from both error pointers and NULL (Feedly).

Impact

Successful triggering of this vulnerability can cause a kernel NULL pointer dereference, leading to a kernel panic or system crash, which constitutes a denial-of-service condition. The impact is limited to availability — there is no evidence of confidentiality or integrity compromise. The vulnerability is most likely to manifest on systems where CPU clock information is absent or incomplete in the device tree, such as certain ARM/ARM64 embedded or SoC-based platforms (Feedly).

Mitigation and workarounds

The Linux kernel maintainers have released patches across multiple stable branches. Fixed versions include: 5.10.246, 5.15.196, 6.1.158, 6.6.115, 6.12.56, 6.17.6, and 6.18. AWS Amazon Linux 2 kernel packages have also been updated (ALAS2KERNEL-5.15-2025-094 and ALAS2KERNEL-5.10-2026-112). Users should update to the patched kernel version applicable to their distribution as soon as possible. No configuration-based workaround is available; patching is the only remediation (Feedly, AWS ALAS).

Additional resources


SourceThis 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-64557NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-selftests-internal
NoNoJul 29, 2026
CVE-2026-64556NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-devel
NoNoJul 29, 2026
CVE-2026-64555NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-fde-6.14
NoNoJul 27, 2026
CVE-2026-64554NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-gcp-6.14
NoYesJul 27, 2026
CVE-2026-64553NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-64k-debug-modules-internal
NoYesJul 27, 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

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