What’s Vulnerable › Vulnerabilities
CVE-2024-40936: cxl/region: Fix memregion leaks in devm_cxl_add_region()
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-07-12 · updated 2026-06-17
- Weakness: CWE-401
Description
In the Linux kernel, the following vulnerability has been resolved: cxl/region: Fix memregion leaks in devm_cxl_add_region() Move the mode verification to __create_region() before allocating the memregion to avoid the memregion leaks.
Affected products
- Linux kernel: from 6.3 before 6.6.35; from 6.7 before 6.9.6; 6.10-rc1, 6.10-rc2 — fixed in 6.6.35, 6.9.6
How to fix
Upgrade to a fixed version: Linux kernel 6.6.35, 6.9.6. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/49ba7b515c4c0719b866d16f068e62d16a8a3dd1
- https://git.kernel.org/stable/c/bbb5d8746381c82f7e0fb6171094d375b492f266
- https://git.kernel.org/stable/c/d8316838aa0686da63a8be4194b7a17b0103ae4a
- https://git.kernel.org/stable/c/49ba7b515c4c0719b866d16f068e62d16a8a3dd1
- https://git.kernel.org/stable/c/bbb5d8746381c82f7e0fb6171094d375b492f266
- https://git.kernel.org/stable/c/d8316838aa0686da63a8be4194b7a17b0103ae4a
Get alerted when CVE-2024-40936 or the next vulnerability affects your stack