Bug 2395367 (CVE-2023-53174) - CVE-2023-53174 kernel: scsi: core: Fix possible memory leak if device_add() fails
Summary: CVE-2023-53174 kernel: scsi: core: Fix possible memory leak if device_add() f...
Keywords:
Status: NEW
Alias: CVE-2023-53174
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 19:44 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:59 UTC
In the Linux kernel, the following vulnerability has been resolved:

scsi: core: Fix possible memory leak if device_add() fails

If device_add() returns error, the name allocated by dev_set_name() needs
be freed. As the comment of device_add() says, put_device() should be used
to decrease the reference count in the error path. So fix this by calling
put_device(), then the name can be freed in kobject_cleanp().


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