CVE-2021-47258
Published: May 21, 2024
Modified: May 11, 2026
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.
| Vendor | Product | Versions |
|---|---|---|
Linux | Linux | affected 1fa5ae857bb14f6046205171d98506d8112dd74e - < 8958181c1663e24a13434448e7d6b96b5d04900aaffected 1fa5ae857bb14f6046205171d98506d8112dd74e - < db08ce595dd64ea9859f7d088b51cbfc8e685c66affected 1fa5ae857bb14f6046205171d98506d8112dd74e - < 2dc85045ae65b9302a1d2e2ddd7ce4c030153a6aaffected 1fa5ae857bb14f6046205171d98506d8112dd74e - < 79296e292d67fa7b5fb8d8c27343683e823872c8affected 1fa5ae857bb14f6046205171d98506d8112dd74e - < 7a696ce1d5d16a33a6cd6400bbcc0339b2460e11+2 more versions |
Linux | Linux | affected 2.6.30unaffected 0 - < 2.6.30unaffected 4.9.273 - <= 4.9.*unaffected 4.14.237 - <= 4.14.*unaffected 4.19.195 - <= 4.19.*+4 more versions |
References
Security Training
Train your team to recognize and prevent security threats with our comprehensive security awareness program.
Start TrainingVulnerability Scanning
Discover vulnerabilities in your applications and infrastructure before attackers do.
Scan Now