CVE-2024-26627: scsi: core: Move scsi_host_busy() out of host lock for waking up EH handler
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 (NM - 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]
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-26627?
CVE-2024-26627 is classified with a severity rating that indicates it could potentially impact system stability.
How do I fix CVE-2024-26627?
To fix CVE-2024-26627, update to one of the patched kernel versions such as 5.10.223-1, 5.10.226-1, 6.1.123-1, 6.1.119-1, or 6.12.10-1.
What systems are affected by CVE-2024-26627?
CVE-2024-26627 affects systems running specific versions of the Linux kernel packages from Debian.
Is CVE-2024-26627 being actively exploited?
As of now, there is no evidence to suggest that CVE-2024-26627 is being actively exploited in the wild.
What are the implications of CVE-2024-26627 for users?
Users may face reduced system performance or stability issues due to the implications of CVE-2024-26627, warranting an update to mitigate risks.