CVE-2023-53436

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

Medium · published September 18, 2025

CVSS v3.1
5.5
EPSS
0%
Percentile
3.7
In the wild
Unconfirmed
What it is

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

scsi: snic: 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 give up the reference in the error path. So fix this by calling

put_device(), then the name can be freed in kobject_cleanp().

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00149 · 3.7th percentile
Published
2025-09-18T16:04Z
EPSS history
Timeline
  • 18 SEP 16:04Z
    scsi: snic: Fix possible memory leak if device_add() fails
    cvelistv5