Bug 2401558 (CVE-2022-50481) - CVE-2022-50481 kernel: cxl: fix possible null-ptr-deref in cxl_guest_init_afu|adapter()
Summary: CVE-2022-50481 kernel: cxl: fix possible null-ptr-deref in cxl_guest_init_afu...
Keywords:
Status: NEW
Alias: CVE-2022-50481
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-10-04 16:07 UTC by OSIDB Bzimport
Modified: 2025-10-06 12:04 UTC (History)
0 users

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-10-04 16:07:19 UTC
In the Linux kernel, the following vulnerability has been resolved:

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

If device_register() fails in cxl_register_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.