CVE-2024-40936

cxl/region: Fix memregion leaks in devm_cxl_add_region()

State
Published
Severity
Not scored
Published
Jul 12, 2024
Updated
May 11, 2026
Reserved
Jul 12, 2024

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 6e099264185d05f50400ea494f5029264a4fe995 to before d8316838aa0686da63a8be4194b7a17b0103ae4aAffected
  • 6e099264185d05f50400ea494f5029264a4fe995 to before bbb5d8746381c82f7e0fb6171094d375b492f266Affected
  • 6e099264185d05f50400ea494f5029264a4fe995 to before 49ba7b515c4c0719b866d16f068e62d16a8a3dd1Affected
LinuxLinux
  • 6.3Affected
  • before 6.3Not affected
  • 6.6.35 through 6.6.*Not affected
  • 6.9.6 through 6.9.*Not affected
  • 6.10 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.