Bug 1227833 (CVE-2024-40936) - VUL-0: CVE-2024-40936: kernel: cxl/region: fix memregion leaks in devm_cxl_add_region()
Summary: VUL-0: CVE-2024-40936: kernel: cxl/region: fix memregion leaks in devm_cxl_ad...
Status: RESOLVED FIXED
Alias: CVE-2024-40936
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/413863/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-40936:4.4:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-15 13:47 UTC by SMASH SMASH
Modified: 2024-07-18 11:18 UTC (History)
2 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SMASH SMASH 2024-07-15 13:47:25 UTC
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.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-40936
https://www.cve.org/CVERecord?id=CVE-2024-40936
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/pub/scm/linux/security/vulns.git/plain/cve/published/2024/CVE-2024-40936.mbox