First published: Tue May 21 2024(Updated: )
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.
Credit: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Software | Affected Version | How to fix |
---|---|---|
Red Hat Kernel-devel | ||
Linux Kernel | <4.9.273 | |
Linux Kernel | >=4.10<4.14.237 | |
Linux Kernel | >=4.15<4.19.195 | |
Linux Kernel | >=4.20<5.4.126 | |
Linux Kernel | >=5.5<5.10.44 | |
Linux Kernel | >=5.11<5.12.11 | |
Linux Kernel | =5.13-rc1 | |
Linux Kernel | =5.13-rc2 | |
Linux Kernel | =5.13-rc3 | |
Linux Kernel | =5.13-rc4 | |
Linux Kernel | =5.13-rc5 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2021-47258 is categorized as a medium severity vulnerability in the Linux kernel.
To fix CVE-2021-47258, update your Linux kernel to a version that contains the patch addressing this vulnerability.
CVE-2021-47258 affects Linux kernel versions prior to 4.9.273 and between 4.10 and 5.13-rc5 inclusive.
CVE-2021-47258 is an error handling vulnerability in the SCSI core subsystem of the Linux kernel.
CVE-2021-47258 has low exploitability for remote attackers but could affect local users who have appropriate access.