Bug 2395359 (CVE-2022-50244) - CVE-2022-50244 kernel: cxl: fix possible null-ptr-deref in cxl_pci_init_afu|adapter()
Summary: CVE-2022-50244 kernel: cxl: fix possible null-ptr-deref in cxl_pci_init_afu|a...
Keywords:
Status: NEW
Alias: CVE-2022-50244
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-09-15 15:09 UTC by OSIDB Bzimport
Modified: 2025-09-15 20:12 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-09-15 15:09:33 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.