Bug 2300480 (CVE-2024-41084) - CVE-2024-41084 kernel: cxl/region: Avoid null pointer dereference in region lookup
Summary: CVE-2024-41084 kernel: cxl/region: Avoid null pointer dereference in region l...
Keywords:
Status: NEW
Alias: CVE-2024-41084
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2301665
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-29 16:20 UTC by OSIDB Bzimport
Modified: 2024-11-12 09:37 UTC (History)
4 users (show)

Fixed In Version: kernel 6.6.37, kernel 6.9.8, kernel 6.10
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2024:9315 0 None None None 2024-11-12 09:37:19 UTC

Description OSIDB Bzimport 2024-07-29 16:20:42 UTC
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.

Comment 1 Mauro Matteo Cascella 2024-07-30 15:03:05 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024072951-CVE-2024-41084-c144@gregkh/T

Comment 2 Mauro Matteo Cascella 2024-07-30 15:03:27 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2301665]

Comment 7 errata-xmlrpc 2024-11-12 09:37:18 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2024:9315 https://access.redhat.com/errata/RHSA-2024:9315


Note You need to log in before you can comment on or make changes to this bug.