CVE-2024-40936
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-40936 affects the Linux kernel's CXL (Compute Express Link) region handling functionality. The vulnerability was discovered in the devm_cxl_add_region() function where memory region leaks could occur due to improper mode verification timing. The issue affects Linux kernel versions from 6.3 up to versions before 6.6.35, from 6.7 up to versions before 6.9.6, and release candidates 6.10-rc1 and 6.10-rc2 (NVD).

Technical details

The vulnerability stems from a memory leak in the CXL subsystem's region handling code. Specifically, the mode verification in devm_cxl_add_region() was performed after allocating memory regions, which could lead to resource leaks when invalid modes were detected. The issue has a CVSS v3.1 base score of 5.5 (Medium) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H, indicating local access requirements and potential high impact on availability (NVD).

Impact

The vulnerability can result in memory leaks in the Linux kernel's CXL subsystem when handling region allocations. This could lead to resource exhaustion and potential system instability over time. The impact is primarily focused on availability, with no direct impact on confidentiality or integrity (NVD).

Exploitability

The vulnerability requires local access with low complexity and low privileges to exploit. No user interaction is needed for exploitation. There are no known reports of this vulnerability being exploited in the wild (NVD).

Mitigation and workarounds

The vulnerability has been fixed by moving the mode verification to __create_region() before allocating the memregion. The fix is available in the Linux kernel through commit 49ba7b515c4c. Users should upgrade to Linux kernel versions 6.6.35 or later, 6.9.6 or later, or apply the available patches (Kernel Patch).

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-80913NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel6.12
NoYesSep 04, 2026
CVE-2026-80905NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel
NoYesSep 04, 2026
CVE-2026-80898NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel6.18
NoYesSep 04, 2026
CVE-2026-80897NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux
NoYesSep 04, 2026
CVE-2026-80892NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux
NoYesSep 04, 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