{"id":"CVE-2024-40936","summary":"cxl/region: Fix memregion leaks in devm_cxl_add_region()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ncxl/region: Fix memregion leaks in devm_cxl_add_region()\n\nMove the mode verification to __create_region() before allocating the\nmemregion to avoid the memregion leaks.","modified":"2026-03-20T12:37:24.763566Z","published":"2024-07-12T12:25:13.155Z","related":["ALSA-2024:6567","SUSE-SU-2024:3194-1","SUSE-SU-2024:3195-1","SUSE-SU-2024:3383-1","SUSE-SU-2025:20044-1","SUSE-SU-2025:20047-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/40xxx/CVE-2024-40936.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/49ba7b515c4c0719b866d16f068e62d16a8a3dd1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bbb5d8746381c82f7e0fb6171094d375b492f266"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d8316838aa0686da63a8be4194b7a17b0103ae4a"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/40xxx/CVE-2024-40936.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-40936"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"6e099264185d05f50400ea494f5029264a4fe995"},{"fixed":"d8316838aa0686da63a8be4194b7a17b0103ae4a"},{"fixed":"bbb5d8746381c82f7e0fb6171094d375b492f266"},{"fixed":"49ba7b515c4c0719b866d16f068e62d16a8a3dd1"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-40936.json"}}],"schema_version":"1.7.5"}