{"id":"CVE-2021-47258","details":"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.","modified":"2026-03-15T22:43:09.765573Z","published":"2024-05-21T15:15:14.537Z","related":["SUSE-SU-2024:1979-1","SUSE-SU-2024:1983-1","SUSE-SU-2024:2010-1","SUSE-SU-2024:2184-1","SUSE-SU-2024:2185-1"],"references":[{"type":"FIX","url":"https://git.kernel.org/stable/c/45d83db4728127944b237c0c8248987df9d478e7"},{"type":"FIX","url":"https://git.kernel.org/stable/c/66a834d092930cf41d809c0e989b13cd6f9ca006"},{"type":"FIX","url":"https://git.kernel.org/stable/c/79296e292d67fa7b5fb8d8c27343683e823872c8"},{"type":"FIX","url":"https://git.kernel.org/stable/c/7a696ce1d5d16a33a6cd6400bbcc0339b2460e11"},{"type":"FIX","url":"https://git.kernel.org/stable/c/8958181c1663e24a13434448e7d6b96b5d04900a"},{"type":"FIX","url":"https://git.kernel.org/stable/c/db08ce595dd64ea9859f7d088b51cbfc8e685c66"},{"type":"FIX","url":"https://git.kernel.org/stable/c/2dc85045ae65b9302a1d2e2ddd7ce4c030153a6a"}],"affected":[{"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-47258.json","unresolved_ranges":[{"events":[{"introduced":"0"},{"fixed":"4.9.273"}]},{"events":[{"introduced":"4.10"},{"fixed":"4.14.237"}]},{"events":[{"introduced":"4.15"},{"fixed":"4.19.195"}]},{"events":[{"introduced":"4.20"},{"fixed":"5.4.126"}]},{"events":[{"introduced":"5.5"},{"fixed":"5.10.44"}]},{"events":[{"introduced":"5.11"},{"fixed":"5.12.11"}]},{"events":[{"introduced":"0"},{"last_affected":"5.13-rc1"}]},{"events":[{"introduced":"0"},{"last_affected":"5.13-rc2"}]},{"events":[{"introduced":"0"},{"last_affected":"5.13-rc3"}]},{"events":[{"introduced":"0"},{"last_affected":"5.13-rc4"}]},{"events":[{"introduced":"0"},{"last_affected":"5.13-rc5"}]}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}