{"id":"CVE-2024-46843","aliases":["CVE-2024-46843"],"related":[],"kind":"vulnerability","state":"published","title":"scsi: ufs: core: Remove SCSI host only if added","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: scsi: ufs: core: Eliminar host SCSI solo si se agregó Si el host intenta eliminar el controlador ufshcd de un dispositivo UFS, provocaría un pánico de kernel si ufshcd_async_scan falla durante ufshcd_probe_hba antes de agregar un host SCSI con scsi_add_host y MCQ está habilitado ya que el host SCSI se ha diferido después de la configuración de MCQ introducida por el commit 0cab4023ec7b (\"scsi: ufs: core: Aplazar la adición de host a SCSI si se admite MCQ\"). Para garantizar que el host SCSI se elimine solo si se ha agregado, configure el indicador scsi_host_added en verdadero después de agregar un host SCSI y verifique si está configurado o no antes de eliminarlo.","source":"nvd"}],"published":"2024-09-27T12:39:37.025Z","modified":"2026-06-17T07:56:03.907Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"0cab4023ec7b49b18145f74ab8389678d6d58878","fixed":"2f49e05d6b58d660f035a75ff96b77071b4bd5ed","status":"affected"},{"type":"git","introduced":"0cab4023ec7b49b18145f74ab8389678d6d58878","fixed":"3844586e9bd9845140e1078f1e61896b576ac536","status":"affected"},{"type":"git","introduced":"0cab4023ec7b49b18145f74ab8389678d6d58878","fixed":"7cbff570dbe8907e23bba06f6414899a0fbb2fcc","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.3","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.3","status":"unaffected"},{"type":"semver","introduced":"6.6.51","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.10.10","lastAffected":"6.10.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.11","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"6.6.51"},{"status":"affected","introduced":"6.7","fixed":"6.10.10"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/2f49e05d6b58d660f035a75ff96b77071b4bd5ed","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3844586e9bd9845140e1078f1e61896b576ac536","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7cbff570dbe8907e23bba06f6414899a0fbb2fcc","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-29T13:59:19.591Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-46843","url":"https://www.cve.org/CVERecord?id=CVE-2024-46843","licence":"CVE Terms of Use","modified":"2026-05-11T20:37:37.071Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-46843","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-46843","licence":"Public domain","modified":"2026-06-17T07:56:03.907Z"}],"updatedAt":"2026-11-25T22:58:45.840Z","epss":{"score":0.00235,"percentile":0.15438,"date":"2026-12-01T12:00:22.000Z"}}