CVE-2024-40936

cxl/region: Fix memregion leaks in devm_cxl_add_region()

MEDIUM
5.5
CVSS Score
Published: July 12, 2024 at 12:25 PM UTC
Updated: June 17, 2026 at 07:46 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

6.3 ≤ v < 6.106.3 ≤ v < 6.6.356.3 ≤ v < 6.9.66.7 ≤ v < 6.9.66.10 rc16.10 rc26e099264185d05f50400ea494f5029264a4fe995
Vendor states this is fixed in 49ba7b515c4c0719b866d16f068e62d16a8a3dd1 (fixed)
Vendor states this is fixed in bbb5d8746381c82f7e0fb6171094d375b492f266 (fixed)
Vendor states this is fixed in d8316838aa0686da63a8be4194b7a17b0103ae4a (fixed)
Vendor states this is fixed in 6.10 (unaffected)
Vendor states this is fixed in 6.3 (unaffected)
Vendor states this is fixed in 6.6.35 (unaffected)
Vendor states this is fixed in 6.9.6 (unaffected)

References (3)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/49ba7b515c4c0719b866d16f068e62d16a8a3dd1
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/bbb5d8746381c82f7e0fb6171094d375b492f266
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d8316838aa0686da63a8be4194b7a17b0103ae4a

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card