CVE-2021-47258
Last modified
CVE-2021-47258 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: scsi: core: Fix error handling of scsi_host_alloc() After device is initialized via device_initialize(), or its name is set via dev_set_name(), the device has to be freed via put_device(). Otherwise device name will be leaked because it is allocated dynamically in dev_set_name(). Fix the leak by replacing kfree() with put_device(). EPSS estimates a 0.24% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: scsi: core: Fix error handling of scsi_host_alloc() After device is initialized via device_initialize(), or its name is set via dev_set_name(), the device has to be freed via put_device(). Otherwise device name will be leaked because it is allocated dynamically in dev_set_name(). Fix the leak by replacing kfree() with put_device(). Since scsi_host_dev_release() properly handles IDA and kthread removal, remove special-casing these from the error handling as well.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | < 4.9.273 | — |
| Linux | Linux Kernel | >= 4.10, < 4.14.237 | — |
| Linux | Linux Kernel | >= 4.15, < 4.19.195 | — |
| Linux | Linux Kernel | >= 4.20, < 5.4.126 | — |
| Linux | Linux Kernel | >= 5.5, < 5.10.44 | — |
| Linux | Linux Kernel | >= 5.11, < 5.12.11 | — |
| Linux | Linux Kernel | 5.13 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2021-47258?
How severe is CVE-2021-47258?
How do I fix CVE-2021-47258?
Are you affected by CVE-2021-47258?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
