CVE-2024-26627

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-26627
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-26627.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-26627
Downstream
Related
Published
2024-03-06T06:45:34.339Z
Modified
2025-11-27T02:32:16.720408Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
scsi: core: Move scsi_host_busy() out of host lock for waking up EH handler
Details

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

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

Inside scsiehwakeup(), scsihostbusy() 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 scsihostbusy() iterates over (N * M) tag/requests

If recovery is triggered in case that all requests are in-flight, each scsiehwakeup() is strictly serialized, when scsiehwakeup() is called for the last in-flight request, scsihostbusy() 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 scsihostbusy() 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]

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/blob/cc431b3424123d84bcd7afd4de150b33f117a8ef/cves/2024/26xxx/CVE-2024-26627.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
6eb045e092efefafc6687409a6fa6d1dabf0fb69
Fixed
f5944853f7a961fedc1227dc8f60393f8936d37c
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6eb045e092efefafc6687409a6fa6d1dabf0fb69
Fixed
d37c1c81419fdef66ebd0747cf76fb8b7d979059
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6eb045e092efefafc6687409a6fa6d1dabf0fb69
Fixed
db6338f45971b4285ea368432a84033690eaf53c
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6eb045e092efefafc6687409a6fa6d1dabf0fb69
Fixed
65ead8468c21c2676d4d06f50b46beffdea69df1
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6eb045e092efefafc6687409a6fa6d1dabf0fb69
Fixed
07e3ca0f17f579491b5f54e9ed05173d6c1d6fcb
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6eb045e092efefafc6687409a6fa6d1dabf0fb69
Fixed
4373534a9850627a2695317944898eb1283a2db0

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.210
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.149
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.77
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.16
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.7.4