CVE-2022-50244 Details
Description
In the Linux kernel, the following vulnerability has been resolved: cxl: fix possible null-ptr-deref in cxl_pci_init_afu|adapter() If device_register() fails in cxl_pci_afu|adapter(), the device is not added, device_unregister() 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 device_register() says, it should use put_device() to give up the reference in the error path. So split device_unregister() into device_del() and put_device(), then goes to put dev when register fails.
A null pointer dereference vulnerability has been identified in the Linux kernel's CXL (Compute Express Link) driver, specifically within the PCI initialization functions for adapters and AFUs (Accelerator Functional Units). This vulnerability arises when the 'device_register()' function fails, preventing the device from being properly added. The issue occurs because 'device_unregister()' cannot be called in the error handling path without causing a null pointer dereference, as it attempts to remove a device that was never added. The vulnerability affects several versions of the Linux kernel.
Users can upgrade to the latest version of the Linux kernel where this vulnerability has been fixed. Instructions for upgrading the kernel can be found in the official Linux kernel documentation.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Nov 5, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/02cd3032b154fa02fdf90e7467abaeed889330b2 | kernel.org | Patch |
| https://git.kernel.org/stable/c/0f63c0ddc2ea20d783d29243f4dbe0f9e95dfdec | kernel.org | Patch |
| https://git.kernel.org/stable/c/139abd4c626a6f7ce02789ed5f73aa2256e0542b | kernel.org | Patch |
| https://git.kernel.org/stable/c/22511eefa61db26e12c97dd7ada3071dbdfcb004 | kernel.org | Patch |
| https://git.kernel.org/stable/c/2f5fd31b2f24b9b8a80ab566fd8c4e1e94cb4339 | kernel.org | Patch |
| https://git.kernel.org/stable/c/361412dae1690d4b5df6f92fc943cdc773c95cbc | kernel.org | Patch |
| https://git.kernel.org/stable/c/82e5481428faf11c79b9c094dd24a1849bbf64ac | kernel.org | Patch |
| https://git.kernel.org/stable/c/82e68432668ae75b4c814d160f6987ecb0681273 | kernel.org | Patch |
| https://git.kernel.org/stable/c/c4b2e35df919d99bbbed033c2fa0b607f9f463b5 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-476 | NULL Pointer Dereference | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 3.18, < 4.9.337 >= 4.10, < 4.14.303 >= 4.15, < 4.19.270 >= 4.20, < 5.4.229 >= 5.5, < 5.10.163 >= 5.11, < 5.15.86 >= 5.16, < 6.0.16 >= 6.1, < 6.1.2 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 5, 2026 | CVE Modified | kernel.org |
| Nov 5, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Nov 24, 2025 | Initial Analysis | [email protected] |
| Sep 15, 2025 | New CVE Received | kernel.org |