CVE-2023-53174: scsi: core: Fix possible memory leak if device_add() fails

Published Sep 15, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

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

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

Affected Software

13 affected components
Linux Foundation Linux Kernel
Linux Linux kernel>=2.6.26<4.14.323
Linux Linux kernel>=4.15<4.19.292
Linux Linux kernel>=4.20<5.4.254
Linux Linux kernel>=5.5<5.10.191
Linux Linux kernel>=5.11<5.15.127
Linux Linux kernel>=5.16<6.1.46
Linux Linux kernel>=6.2<6.4.11
Linux Linux kernel=6.5-rc1
Linux Linux kernel=6.5-rc2
Linux Linux kernel=6.5-rc3
Linux Linux kernel=6.5-rc4
Linux Linux kernel=6.5-rc5

Event History

Sep 15, 2025
CVE Published
via MITRE·02:04 PM
Data Sourced
via MITRE·02:04 PM
Description
Data Sourced
via NVD·02:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2023-53174?

CVE-2023-53174 has a medium severity due to the potential for memory leaks if the device_add() function fails.

2

Which versions of the Linux Kernel are affected by CVE-2023-53174?

CVE-2023-53174 affects various versions of the Linux Kernel prior to the fix being applied.

3

How do I fix CVE-2023-53174?

To fix CVE-2023-53174, update to the latest version of the Linux Kernel that contains the patch for this vulnerability.

4

What is the impact of CVE-2023-53174?

The impact of CVE-2023-53174 includes a potential memory leak that could lead to resource exhaustion on the affected system.

5

Is CVE-2023-53174 specific to any particular Linux distribution?

CVE-2023-53174 is not limited to a specific Linux distribution, as it is a vulnerability in the Linux kernel itself.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203