# CVE-2024-26627: scsi: core: Move scsi\_host\_busy() out of host lock for waking up EH handler

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 16, 2026-11-26)
- **Published:** 2024-03-06T06:45:34.339Z
- **Modified:** 2026-06-17T07:17:55.690Z

## Who should check

- Anyone running Linux \>= 6eb045e092efefafc6687409a6fa6d1dabf0fb69, \< f5944853f7a961fedc1227dc8f60393f8936d37c; \>= 6eb045e092efefafc6687409a6fa6d1dabf0fb69, \< d37c1c81419fdef66ebd0747cf76fb8b7d979059; \>= 6eb045e092efefafc6687409a6fa6d1dabf0fb69, \< db6338f45971b4285ea368432a84033690eaf53c; \>= 6eb045e092efefafc6687409a6fa6d1dabf0fb69, \< 65ead8468c21c2676d4d06f50b46beffdea69df1; \>= 6eb045e092efefafc6687409a6fa6d1dabf0fb69, \< 07e3ca0f17f579491b5f54e9ed05173d6c1d6fcb; \>= 6eb045e092efefafc6687409a6fa6d1dabf0fb69, \< 4373534a9850627a2695317944898eb1283a2db0
- Anyone running Linux 5.5

## Description

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

scsi: core: Move scsi\_host\_busy() out of host lock for waking up EH handler

Inside scsi\_eh\_wakeup(), scsi\_host\_busy() is called & checked with host
lock every time for deciding if error handler kthread needs to be waken up.

This can be too heavy in case of recovery, such as:

 - N hardware queues

 - queue depth is M for each hardware queue

 - each scsi\_host\_busy() iterates over (N \* M) tag/requests

If recovery is triggered in case that all requests are in-flight, each
scsi\_eh\_wakeup() is strictly serialized, when scsi\_eh\_wakeup() is called
for the last in-flight request, scsi\_host\_busy() has been run for (N \* M -
1) times, and request has been iterated for (N\*M - 1) \* (N \* M) times.

If both N and M are big enough, hard lockup can be triggered on acquiring
host lock, and it is observed on mpi3mr(128 hw queues, queue depth 8169).

Fix the issue by calling scsi\_host\_busy() outside the host lock. We don't
need the host lock for getting busy count because host the lock never
covers that.

\[mkp: Drop unnecessary 'busy' variables pointed out by Bart\]

## Affected and fixed versions

- Linux: \>= 6eb045e092efefafc6687409a6fa6d1dabf0fb69, \< f5944853f7a961fedc1227dc8f60393f8936d37c; \>= 6eb045e092efefafc6687409a6fa6d1dabf0fb69, \< d37c1c81419fdef66ebd0747cf76fb8b7d979059; \>= 6eb045e092efefafc6687409a6fa6d1dabf0fb69, \< db6338f45971b4285ea368432a84033690eaf53c; \>= 6eb045e092efefafc6687409a6fa6d1dabf0fb69, \< 65ead8468c21c2676d4d06f50b46beffdea69df1; \>= 6eb045e092efefafc6687409a6fa6d1dabf0fb69, \< 07e3ca0f17f579491b5f54e9ed05173d6c1d6fcb; \>= 6eb045e092efefafc6687409a6fa6d1dabf0fb69, \< 4373534a9850627a2695317944898eb1283a2db0 (cvelist)
- Linux: 5.5 (cvelist)

## Mitigation

- Upgrade Linux to 4373534a9850627a2695317944898eb1283a2db0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-26627. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-26627.md
Affected: Linux >= 6eb045e092efefafc6687409a6fa6d1dabf0fb69, < f5944853f7a961fedc1227dc8f60393f8936d37c; >= 6eb045e092efefafc6687409a6fa6d1dabf0fb69, < d37c1c81419fdef66ebd0747cf76fb8b7d979059; >= 6eb045e092efefafc6687409a6fa6d1dabf0fb69, < db6338f45971b4285ea368432a84033690eaf53c; >= 6eb045e092efefafc668740…
Fixed in: Linux 65ead8468c21c2676d4d06f50b46beffdea69df1, Linux 07e3ca0f17f579491b5f54e9ed05173d6c1d6fcb, Linux 4373534a9850627a2695317944898eb1283a2db0

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-26627 being exploited?

There is no confirmed exploitation: CVE-2024-26627 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-26627?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-26627?

Linux \>= 6eb045e092efefafc6687409a6fa6d1dabf0fb69, \< f5944853f7a961fedc1227dc8f60393f8936d37c; \>= 6eb045e092efefafc6687409a6fa6d1dabf0fb69, \< d37c1c81419fdef66ebd0747cf76fb8b7d979059; \>= 6eb045e092efefafc6687409a6fa6d1dabf0fb69, \< db6338f45971b4285ea368432a84033690eaf53c; \>= 6eb045e092efefafc6687409a6fa6d1dabf0fb69, \< 65ead8468c21c2676d4d06f50b46beffdea69df1; \>= 6eb045e092efefafc6687409a6fa6d1dabf0fb69, \< 07e3ca0f17f579491b5f54e9ed05173d6c1d6fcb; \>= 6eb045e092efefafc6687409a6fa6d1dabf0fb69, \< 4373534a9850627a2695317944898eb1283a2db0; Linux 5.5.

### Is there a fix for CVE-2024-26627?

Yes. Fixed in Linux 65ead8468c21c2676d4d06f50b46beffdea69df1, Linux 07e3ca0f17f579491b5f54e9ed05173d6c1d6fcb, Linux 4373534a9850627a2695317944898eb1283a2db0. Upgrade Linux to 4373534a9850627a2695317944898eb1283a2db0 or later.

### How do I check if I'm affected by CVE-2024-26627?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/f5944853f7a961fedc1227dc8f60393f8936d37c>
- patch: <https://git.kernel.org/stable/c/d37c1c81419fdef66ebd0747cf76fb8b7d979059>
- patch: <https://git.kernel.org/stable/c/db6338f45971b4285ea368432a84033690eaf53c>
- patch: <https://git.kernel.org/stable/c/65ead8468c21c2676d4d06f50b46beffdea69df1>
- patch: <https://git.kernel.org/stable/c/07e3ca0f17f579491b5f54e9ed05173d6c1d6fcb>
- patch: <https://git.kernel.org/stable/c/4373534a9850627a2695317944898eb1283a2db0>
- patch: <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-26627>

HTML: <https://flawdb.com/CVE-2024-26627> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-26627>
