CVE-2024-26627

scsi: core: Move scsi_host_busy() out of host lock for waking up EH handler

5.5 medium EPSS 0.24%

Published 6 Mar 2024 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2024-26627

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-26627 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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]

Severity (CVSS)

5.5 medium CVSS 3.1 from CISA (ADP)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.24%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 16.4% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 23 Jul 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 6eb045e092efefafc6687409a6fa6d1dabf0fb69, before f5944853f7a961fedc1227dc8f60393f8936d37c
affected from 6eb045e092efefafc6687409a6fa6d1dabf0fb69, before d37c1c81419fdef66ebd0747cf76fb8b7d979059
affected from 6eb045e092efefafc6687409a6fa6d1dabf0fb69, before db6338f45971b4285ea368432a84033690eaf53c
affected from 6eb045e092efefafc6687409a6fa6d1dabf0fb69, before 65ead8468c21c2676d4d06f50b46beffdea69df1
affected from 6eb045e092efefafc6687409a6fa6d1dabf0fb69, before 07e3ca0f17f579491b5f54e9ed05173d6c1d6fcb
affected from 6eb045e092efefafc6687409a6fa6d1dabf0fb69, before 4373534a9850627a2695317944898eb1283a2db0
Other versions: unaffected
Linux
affected 5.5
unaffected before 5.5
unaffected from 5.10.210 up to and including 5.10.*
unaffected from 5.15.149 up to and including 5.15.*
unaffected from 6.1.77 up to and including 6.1.*
unaffected from 6.6.16 up to and including 6.6.*
unaffected from 6.7.4 up to and including 6.7.*
unaffected 6.8 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-26627 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-26627

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-26627
trivy image --scanners vuln IMAGE | grep CVE-2024-26627

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-26627 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.