# CVE-2024-46843: scsi: ufs: core: Remove SCSI host only if added

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2024-09-27T12:39:37.025Z
- Modified: 2026-06-17T07:56:03.907Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

scsi: ufs: core: Remove SCSI host only if added

If host tries to remove ufshcd driver from a UFS device it would cause a
kernel panic if ufshcd_async_scan fails during ufshcd_probe_hba before
adding a SCSI host with scsi_add_host and MCQ is enabled since SCSI host
has been defered after MCQ configuration introduced by commit 0cab4023ec7b
("scsi: ufs: core: Defer adding host to SCSI if MCQ is supported").

To guarantee that SCSI host is removed only if it has been added, set the
scsi_host_added flag to true after adding a SCSI host and check whether it
is set or not before removing it.

(As written by CVE List.)

## Affected

- Linux Linux: from 0cab4023ec7b49b18145f74ab8389678d6d58878 before 2f49e05d6b58d660f035a75ff96b77071b4bd5ed; from 0cab4023ec7b49b18145f74ab8389678d6d58878 before 3844586e9bd9845140e1078f1e61896b576ac536; from 0cab4023ec7b49b18145f74ab8389678d6d58878 before 7cbff570dbe8907e23bba06f6414899a0fbb2fcc; 6.3 (not affected: before 6.3; from 6.6.51 up to 6.6.*; from 6.10.10 up to 6.10.*; from 6.11 up to *)
- linux linux_kernel: before 6.6.51; from 6.7 before 6.10.10

## References

- <https://git.kernel.org/stable/c/2f49e05d6b58d660f035a75ff96b77071b4bd5ed> (patch)
- <https://git.kernel.org/stable/c/3844586e9bd9845140e1078f1e61896b576ac536> (patch)
- <https://git.kernel.org/stable/c/7cbff570dbe8907e23bba06f6414899a0fbb2fcc> (patch)

## Sources

- CVE List: [CVE-2024-46843](https://www.cve.org/CVERecord?id=CVE-2024-46843), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-46843](https://nvd.nist.gov/vuln/detail/CVE-2024-46843), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-46843 · Whole record: https://cve.day/CVE-2024-46843.json · Rebuilt by cve.day 2026-11-25T22:58:45.840Z
