CVE-2024-41084

MEDIUM

Linux Kernel - Null Pointer Dereference in cxl_dpa_to_region

Title source: llm
STIX 2.1

Description

In the Linux kernel, the following vulnerability has been resolved: cxl/region: Avoid null pointer dereference in region lookup cxl_dpa_to_region() looks up a region based on a memdev and DPA. It wrongly assumes an endpoint found mapping the DPA is also of a fully assembled region. When not true it leads to a null pointer dereference looking up the region name. This appears during testing of region lookup after a failure to assemble a BIOS defined region or if the lookup raced with the assembly of the BIOS defined region. Failure to clean up BIOS defined regions that fail assembly is an issue in itself and a fix to that problem will alleviate some of the impact. It will not alleviate the race condition so let's harden this path. The behavior change is that the kernel oops due to a null pointer dereference is replaced with a dev_dbg() message noting that an endpoint was mapped. Additional comments are added so that future users of this function can more clearly understand what it provides.

Scores

CVSS v3 5.5
EPSS 0.0023
EPSS Percentile 13.3%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-476
Status published
Products (11)
linux/Kernel 6.4.0 - 6.6.37linux
linux/Kernel 6.7.0 - 6.9.8linux
Linux/Linux < 6.4
Linux/Linux 0a105ab28a4de44eb738ce64e9ac74946aa5133b - 285f2a08841432fc3e498b1cd00cce5216cdf189
Linux/Linux 0a105ab28a4de44eb738ce64e9ac74946aa5133b - a9e099e29e925f8b31cfe53e8a786b9796f8e453
Linux/Linux 0a105ab28a4de44eb738ce64e9ac74946aa5133b - b8a40a6dbfb0150c1081384caa9bbe28ce5d5060
Linux/Linux 6.10
Linux/Linux 6.4
Linux/Linux 6.6.37 - 6.6.*
Linux/Linux 6.9.8 - 6.9.*
... and 1 more
Published Jul 29, 2024
Tracked Since Feb 18, 2026