{"id":"CVE-2024-46843","summary":"scsi: ufs: core: Remove SCSI host only if added","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: ufs: core: Remove SCSI host only if added\n\nIf host tries to remove ufshcd driver from a UFS device it would cause a\nkernel panic if ufshcd_async_scan fails during ufshcd_probe_hba before\nadding a SCSI host with scsi_add_host and MCQ is enabled since SCSI host\nhas been defered after MCQ configuration introduced by commit 0cab4023ec7b\n(\"scsi: ufs: core: Defer adding host to SCSI if MCQ is supported\").\n\nTo guarantee that SCSI host is removed only if it has been added, set the\nscsi_host_added flag to true after adding a SCSI host and check whether it\nis set or not before removing it.","modified":"2026-04-02T12:19:45.924170Z","published":"2024-09-27T12:39:37.025Z","related":["SUSE-SU-2024:3984-1","SUSE-SU-2024:3986-1","SUSE-SU-2024:4318-1","SUSE-SU-2024:4387-1","SUSE-SU-2025:20163-1","SUSE-SU-2025:20164-1","SUSE-SU-2025:20246-1","SUSE-SU-2025:20247-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/46xxx/CVE-2024-46843.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2f49e05d6b58d660f035a75ff96b77071b4bd5ed"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3844586e9bd9845140e1078f1e61896b576ac536"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7cbff570dbe8907e23bba06f6414899a0fbb2fcc"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/46xxx/CVE-2024-46843.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-46843"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0cab4023ec7b49b18145f74ab8389678d6d58878"},{"fixed":"2f49e05d6b58d660f035a75ff96b77071b4bd5ed"},{"fixed":"3844586e9bd9845140e1078f1e61896b576ac536"},{"fixed":"7cbff570dbe8907e23bba06f6414899a0fbb2fcc"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-46843.json"}}],"schema_version":"1.7.5"}