# CVE-2024-40936: cxl/region: Fix memregion leaks in devm_cxl_add_region()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-02)
- Published: 2024-07-12T12:25:13.155Z
- Modified: 2026-06-17T07:46:54.427Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 6e099264185d05f50400ea494f5029264a4fe995 before d8316838aa0686da63a8be4194b7a17b0103ae4a; from 6e099264185d05f50400ea494f5029264a4fe995 before bbb5d8746381c82f7e0fb6171094d375b492f266; from 6e099264185d05f50400ea494f5029264a4fe995 before 49ba7b515c4c0719b866d16f068e62d16a8a3dd1; 6.3 (not affected: before 6.3; from 6.6.35 up to 6.6.*; from 6.9.6 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: from 6.3 before 6.6.35; from 6.7 before 6.9.6; 6.10

## References

- <https://git.kernel.org/stable/c/d8316838aa0686da63a8be4194b7a17b0103ae4a> (patch)
- <https://git.kernel.org/stable/c/bbb5d8746381c82f7e0fb6171094d375b492f266> (patch)
- <https://git.kernel.org/stable/c/49ba7b515c4c0719b866d16f068e62d16a8a3dd1> (patch)

## Sources

- CVE List: [CVE-2024-40936](https://www.cve.org/CVERecord?id=CVE-2024-40936), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-40936](https://nvd.nist.gov/vuln/detail/CVE-2024-40936), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-40936 · Whole record: https://cve.day/CVE-2024-40936.json · Rebuilt by cve.day 2026-11-25T22:58:42.847Z
