{"id":"CVE-2021-47258","published":"2024-05-21T14:19:52Z","modified":"2026-05-11T13:51:01Z","title":"scsi: core: Fix error handling of scsi_host_alloc()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: core: Fix error handling of scsi_host_alloc()\n\nAfter device is initialized via device_initialize(), or its name is set via\ndev_set_name(), the device has to be freed via put_device().  Otherwise\ndevice name will be leaked because it is allocated dynamically in\ndev_set_name().\n\nFix the leak by replacing kfree() with put_device(). Since\nscsi_host_dev_release() properly handles IDA and kthread removal, remove\nspecial-casing these from the error handling as well.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00236,"percentile":0.14923,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/8958181c1663e24a13434448e7d6b96b5d04900a","tags":[]},{"url":"https://git.kernel.org/stable/c/db08ce595dd64ea9859f7d088b51cbfc8e685c66","tags":[]},{"url":"https://git.kernel.org/stable/c/2dc85045ae65b9302a1d2e2ddd7ce4c030153a6a","tags":[]},{"url":"https://git.kernel.org/stable/c/79296e292d67fa7b5fb8d8c27343683e823872c8","tags":[]},{"url":"https://git.kernel.org/stable/c/7a696ce1d5d16a33a6cd6400bbcc0339b2460e11","tags":[]},{"url":"https://git.kernel.org/stable/c/45d83db4728127944b237c0c8248987df9d478e7","tags":[]},{"url":"https://git.kernel.org/stable/c/66a834d092930cf41d809c0e989b13cd6f9ca006","tags":[]}],"priority":{"score":3.0,"factors":[{"name":"EPSS percentile","points":2.98}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 1fa5ae857bb14f6046205171d98506d8112dd74e, < 8958181c1663e24a13434448e7d6b96b5d04900a",">= 1fa5ae857bb14f6046205171d98506d8112dd74e, < db08ce595dd64ea9859f7d088b51cbfc8e685c66",">= 1fa5ae857bb14f6046205171d98506d8112dd74e, < 2dc85045ae65b9302a1d2e2ddd7ce4c030153a6a",">= 1fa5ae857bb14f6046205171d98506d8112dd74e, < 79296e292d67fa7b5fb8d8c27343683e823872c8",">= 1fa5ae857bb14f6046205171d98506d8112dd74e, < 7a696ce1d5d16a33a6cd6400bbcc0339b2460e11",">= 1fa5ae857bb14f6046205171d98506d8112dd74e, < 45d83db4728127944b237c0c8248987df9d478e7",">= 1fa5ae857bb14f6046205171d98506d8112dd74e, < 66a834d092930cf41d809c0e989b13cd6f9ca006"]},{"vendor":"Linux","product":"Linux","versions":["2.6.30"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-05-23T18:04:09.968762Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2021-33906","exploited":false,"provenance":"source"}}