CVE-2023-53174

Source
https://nvd.nist.gov/vuln/detail/CVE-2023-53174
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-53174.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-53174
Downstream
Related
Published
2025-09-15T14:04:08.357Z
Modified
2025-11-28T02:35:23.646554Z
Summary
scsi: core: Fix possible memory leak if device_add() fails
Details

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

scsi: core: Fix possible memory leak if device_add() 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 kobject_cleanp().

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53174.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
ee959b00c335d7780136c5abda37809191fe52c3
Fixed
63956ad27a6882f01fea7c69e17823090f4c7b3f
Fixed
06c5340858011aa1195aec43a776e3185fbf7f56
Fixed
e12fac07f61caac9c5b186d827658b3470787619
Fixed
aa9a76d5ffdecd3b52ac333eb89361b0c9fe04e8
Fixed
6bc7f4c8c27d526f968788b8a985896755b1df35
Fixed
b191ff1f075c4875f11271cbf0093e6e044a12aa
Fixed
43c0e16d0c5ec59398b405f4c4aa5a076e656c3f
Fixed
04b5b5cb0136ce970333a9c6cec7e46adba1ea3a

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6.26
Fixed
4.14.323
Type
ECOSYSTEM
Events
Introduced
4.15.0
Fixed
4.19.292
Type
ECOSYSTEM
Events
Introduced
4.20.0
Fixed
5.4.254
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.191
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.127
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.46
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.4.11