CVE-2022-49895
Severity CVSS v4.0:
Pending analysis
Type:
CWE-476
NULL Pointer Dereference
Publication date:
01/05/2025
Last modified:
07/05/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
cxl/region: Fix decoder allocation crash<br />
<br />
When an intermediate port&#39;s decoders have been exhausted by existing<br />
regions, and creating a new region with the port in question in it&#39;s<br />
hierarchical path is attempted, cxl_port_attach_region() fails to find a<br />
port decoder (as would be expected), and drops into the failure / cleanup<br />
path.<br />
<br />
However, during cleanup of the region reference, a sanity check attempts<br />
to dereference the decoder, which in the above case didn&#39;t exist. This<br />
causes a NULL pointer dereference BUG.<br />
<br />
To fix this, refactor the decoder allocation and de-allocation into<br />
helper routines, and in this &#39;free&#39; routine, check that the decoder,<br />
@cxld, is valid before attempting any operations on it.
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
CPE | From | Up to |
---|---|---|
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.0 (including) | 6.0.8 (excluding) |
cpe:2.3:o:linux:linux_kernel:6.1:rc1:*:*:*:*:*:* | ||
cpe:2.3:o:linux:linux_kernel:6.1:rc2:*:*:*:*:*:* | ||
cpe:2.3:o:linux:linux_kernel:6.1:rc3:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page