CVE-2022-50481: cxl: fix possible null-ptr-deref in cxl_guest_init_afu|adapter()

Published Oct 4, 2025
·
Updated

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

cxl: fix possible null-ptr-deref in cxlguestinitafu|adapter()

If deviceregister() fails in cxlregisterafu|adapter(), the device is not added, deviceunregister() can not be called in the error path, otherwise it will cause a null-ptr-deref because of removing not added device.

As comment of deviceregister() says, it should use putdevice() to give up the reference in the error path. So split deviceunregister() into devicedel() and putdevice(), then goes to put dev when register fails.

Affected Software

9 affected components
Linux Kernel
Linux Linux kernel>=4.6<4.9.337
Linux Linux kernel>=4.10<4.14.303
Linux Linux kernel>=4.15<4.19.270
Linux Linux kernel>=4.20<5.4.229
Linux Linux kernel>=5.5<5.10.163
Linux Linux kernel>=5.11<5.15.86
Linux Linux kernel>=5.16<6.0.16
Linux Linux kernel>=6.1<6.1.2

Event History

Oct 4, 2025
CVE Published
via MITRE·03:16 PM
Data Sourced
via MITRE·03:16 PM
Description
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-50481?

CVE-2022-50481 is classified as a moderate severity vulnerability in the Linux kernel.

2

How do I fix CVE-2022-50481?

To fix CVE-2022-50481, update your Linux kernel to the latest version that includes the patch for this vulnerability.

3

What components are affected by CVE-2022-50481?

CVE-2022-50481 specifically affects the CXL (Compute Express Link) support in the Linux kernel.

4

Is CVE-2022-50481 a remote vulnerability?

CVE-2022-50481 is not classified as a remote vulnerability; it pertains to local functionality in the kernel.

5

What impact does CVE-2022-50481 have on system security?

CVE-2022-50481 could lead to kernel crashes or instability when certain conditions are met, potentially affecting system reliability.

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