CVE-2021-47258

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-47258
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-47258.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-47258
Downstream
Related
Published
2024-05-21T15:15:14Z
Modified
2025-08-09T20:01:27Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

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

scsi: core: Fix error handling of scsihostalloc()

After device is initialized via deviceinitialize(), or its name is set via devsetname(), the device has to be freed via putdevice(). Otherwise device name will be leaked because it is allocated dynamically in devsetname().

Fix the leak by replacing kfree() with putdevice(). Since scsihostdevrelease() properly handles IDA and kthread removal, remove special-casing these from the error handling as well.

References

Affected packages