CVE-2023-53174
scsi: core: Fix possible memory leak if device_add() fails
Description
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().
INFO
Published Date :
Sept. 15, 2025, 2:15 p.m.
Last Modified :
Sept. 15, 2025, 3:22 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products
The following products are affected by CVE-2023-53174
vulnerability.
Even if cvefeed.io
is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
No affected product recoded yet
Solution
- Apply the latest Linux kernel updates.
- Ensure proper device handling logic is implemented.
- Review memory management functions for leaks.
- Verify kobject_cleanp behavior for correctness.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2023-53174
.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2023-53174
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2023-53174
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2023-53174
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2023-53174
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Sep. 15, 2025
Action Type Old Value New Value Added Description 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(). Added Reference https://git.kernel.org/stable/c/04b5b5cb0136ce970333a9c6cec7e46adba1ea3a Added Reference https://git.kernel.org/stable/c/06c5340858011aa1195aec43a776e3185fbf7f56 Added Reference https://git.kernel.org/stable/c/43c0e16d0c5ec59398b405f4c4aa5a076e656c3f Added Reference https://git.kernel.org/stable/c/63956ad27a6882f01fea7c69e17823090f4c7b3f Added Reference https://git.kernel.org/stable/c/6bc7f4c8c27d526f968788b8a985896755b1df35 Added Reference https://git.kernel.org/stable/c/aa9a76d5ffdecd3b52ac333eb89361b0c9fe04e8 Added Reference https://git.kernel.org/stable/c/b191ff1f075c4875f11271cbf0093e6e044a12aa Added Reference https://git.kernel.org/stable/c/e12fac07f61caac9c5b186d827658b3470787619