CVE-2023-53174

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

MEDIUM
5.5
CVSS Score
Published: September 15, 2025 at 02:04 PM UTC
Updated: June 17, 2026 at 06:44 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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().

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

2.6.26 ≤ v < 4.14.3232.6.26 ≤ v < 4.19.2922.6.26 ≤ v < 5.10.1912.6.26 ≤ v < 5.15.1272.6.26 ≤ v < 5.4.2542.6.26 ≤ v < 6.1.462.6.26 ≤ v < 6.4.112.6.26 ≤ v < 6.54.15 ≤ v < 4.19.2924.20 ≤ v < 5.4.2545.11 ≤ v < 5.15.1275.16 ≤ v < 6.1.465.5 ≤ v < 5.10.1916.2 ≤ v < 6.4.112.6.266.5 rc16.5 rc26.5 rc36.5 rc46.5 rc5ee959b00c335d7780136c5abda37809191fe52c3
Vendor states this is fixed in 04b5b5cb0136ce970333a9c6cec7e46adba1ea3a (fixed)
Vendor states this is fixed in 06c5340858011aa1195aec43a776e3185fbf7f56 (fixed)
Vendor states this is fixed in 43c0e16d0c5ec59398b405f4c4aa5a076e656c3f (fixed)
Vendor states this is fixed in 63956ad27a6882f01fea7c69e17823090f4c7b3f (fixed)
Vendor states this is fixed in 6bc7f4c8c27d526f968788b8a985896755b1df35 (fixed)
Vendor states this is fixed in aa9a76d5ffdecd3b52ac333eb89361b0c9fe04e8 (fixed)
Vendor states this is fixed in b191ff1f075c4875f11271cbf0093e6e044a12aa (fixed)
Vendor states this is fixed in e12fac07f61caac9c5b186d827658b3470787619 (fixed)
Vendor states this is fixed in 2.6.26 (unaffected)
Vendor states this is fixed in 4.14.323 (unaffected)
Vendor states this is fixed in 4.19.292 (unaffected)
Vendor states this is fixed in 5.10.191 (unaffected)
Vendor states this is fixed in 5.15.127 (unaffected)
Vendor states this is fixed in 5.4.254 (unaffected)
Vendor states this is fixed in 6.1.46 (unaffected)
Vendor states this is fixed in 6.4.11 (unaffected)
Vendor states this is fixed in 6.5 (unaffected)

References (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/04b5b5cb0136ce970333a9c6cec7e46adba1ea3a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/06c5340858011aa1195aec43a776e3185fbf7f56
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/43c0e16d0c5ec59398b405f4c4aa5a076e656c3f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/63956ad27a6882f01fea7c69e17823090f4c7b3f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6bc7f4c8c27d526f968788b8a985896755b1df35
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/aa9a76d5ffdecd3b52ac333eb89361b0c9fe04e8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b191ff1f075c4875f11271cbf0093e6e044a12aa
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e12fac07f61caac9c5b186d827658b3470787619

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card