CVE-2024-40917
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-40917 affects the Linux kernel's memory block management system. The vulnerability was discovered and disclosed on July 12, 2024, specifically related to the memblock_set_node() function's handling of MAX_NUMNODES. The issue affects systems running the Linux kernel with NUMA configuration, particularly on x86 systems with SRAT covering space above 4GB (NVD).

Technical details

The vulnerability occurs when the NUMA configuration is not properly refused by a CONFIG_NUMA=y kernel. This happens because memblock_validate_numa_coverage() only checks for NUMA_NO_NODE, which leads to memblock_alloc_range_nid()'s warning about MAX_NUMNODES triggering. The issue ultimately results in a NULL dereference in memmap_init() when attempting to access node 64's node data (NODE_SHIFT=6) (Kernel Commit).

Impact

The vulnerability can lead to a system crash through NULL pointer dereference when the system attempts to access invalid node data. This occurs specifically on systems with certain NUMA configurations where memory nodes are not properly handled (NVD).

Exploitability

The vulnerability requires specific conditions to be exploited, particularly on x86 systems with SRAT configurations covering space above 4GB. The issue manifests when the system has a particular NUMA configuration that triggers the improper handling of MAX_NUMNODES (Kernel Commit).

Mitigation and workarounds

The issue has been patched by modifying memblock_set_node() to warn about and adjust the usage of MAX_NUMNODES, similar to other functions. The fix includes adding a warning message when MAX_NUMNODES is used and automatically converting it to NUMA_NO_NODE (Kernel Commit).

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-68454HIGH8.8
  • Linux Kernel logoLinux Kernel
  • linux-xilinx-zynqmp
NoYesAug 13, 2026
CVE-2026-68452HIGH7.8
  • Linux Kernel logoLinux Kernel
  • kernel-zfcpdump-modules-core
NoYesAug 13, 2026
CVE-2026-68451HIGH7.8
  • Linux Kernel logoLinux Kernel
  • linux-aws
NoYesAug 13, 2026
CVE-2026-68453HIGH7.1
  • Linux Kernel logoLinux Kernel
  • kernel-64k-debug-modules-partner
NoYesAug 13, 2026
CVE-2026-68450NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-aws-fips
NoYesAug 12, 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