CVE-2022-49895: cxl/region: Fix decoder allocation crash

Published May 1, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

cxl/region: Fix decoder allocation crash

When an intermediate port's decoders have been exhausted by existing regions, and creating a new region with the port in question in it's hierarchical path is attempted, cxlportattachregion() fails to find a port decoder (as would be expected), and drops into the failure / cleanup path.

However, during cleanup of the region reference, a sanity check attempts to dereference the decoder, which in the above case didn't exist. This causes a NULL pointer dereference BUG.

To fix this, refactor the decoder allocation and de-allocation into helper routines, and in this 'free' routine, check that the decoder, @cxld, is valid before attempting any operations on it.

Affected Software

5 affected components
Linux Linux kernel
Linux Linux kernel>=6.0<6.0.8
Linux Linux kernel=6.1-rc1
Linux Linux kernel=6.1-rc2
Linux Linux kernel=6.1-rc3

Event History

May 1, 2025
CVE Published
via MITRE·02:10 PM
Data Sourced
via MITRE·02:10 PM
Description
Data Sourced
via NVD·03:16 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-49895?

CVE-2022-49895 is classified as a medium severity vulnerability in the Linux kernel.

2

What does CVE-2022-49895 affect?

CVE-2022-49895 affects the Linux kernel's handling of CXL region decoders.

3

How do I fix CVE-2022-49895?

To fix CVE-2022-49895, update your Linux kernel to the latest stable version that addresses this vulnerability.

4

What is the nature of the vulnerability in CVE-2022-49895?

CVE-2022-49895 involves a crash during decoder allocation when creating new regions in an exhausted port.

5

Does CVE-2022-49895 allow for remote exploitation?

CVE-2022-49895 does not appear to directly allow for remote exploitation but can impact system stability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203