CVE-2024-46843

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-46843
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-46843.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-46843
Downstream
Related
Published
2024-09-27T12:39:37.025Z
Modified
2025-11-28T02:35:33.620806Z
Summary
scsi: ufs: core: Remove SCSI host only if added
Details

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 ufshcdasyncscan fails during ufshcdprobehba before adding a SCSI host with scsiaddhost 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 scsihostadded flag to true after adding a SCSI host and check whether it is set or not before removing it.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/46xxx/CVE-2024-46843.json"
}
References

Affected packages

Git / 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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.3.0
Fixed
6.6.51
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.10.10