CVE Database
/

CVE-2022-50244

Back to search

CVE-2022-50244

Published: Sep 15, 2025

Modified: May 11, 2026

PUBLISHED

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.

VendorProductVersions

Linux

Linux

affected
f204e0b8cedd7da1dfcfd05ed6b7692737e24029 - < 82e68432668ae75b4c814d160f6987ecb0681273
affected
f204e0b8cedd7da1dfcfd05ed6b7692737e24029 - < 82e5481428faf11c79b9c094dd24a1849bbf64ac
affected
f204e0b8cedd7da1dfcfd05ed6b7692737e24029 - < c4b2e35df919d99bbbed033c2fa0b607f9f463b5
affected
f204e0b8cedd7da1dfcfd05ed6b7692737e24029 - < 361412dae1690d4b5df6f92fc943cdc773c95cbc
affected
f204e0b8cedd7da1dfcfd05ed6b7692737e24029 - < 0f63c0ddc2ea20d783d29243f4dbe0f9e95dfdec

+4 more versions

Linux

Linux

affected
3.18
unaffected
0 - < 3.18
unaffected
4.9.337 - <= 4.9.*
unaffected
4.14.303 - <= 4.14.*
unaffected
4.19.270 - <= 4.19.*

+6 more versions

Security Training

Train your team to recognize and prevent security threats with our comprehensive security awareness program.

Start Training

Vulnerability Scanning

Discover vulnerabilities in your applications and infrastructure before attackers do.

Scan Now