CVE-2026-23110

scsi: core: Wake up the error handler when final completions race against each other

State
Published
Severity
Not scored
Published
Feb 4, 2026
Updated
Oct 19, 2026
Reserved
Jan 13, 2026

Read the record on cve.org

Description

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

scsi: core: Wake up the error handler when final completions race against each other

The fragile ordering between marking commands completed or failed so that the error handler only wakes when the last running command completes or times out has race conditions. These race conditions can cause the SCSI layer to fail to wake the error handler, leaving I/O through the SCSI host stuck as the error state cannot advance.

First, there is an memory ordering issue within scsi_dec_host_busy(). The write which clears SCMD_STATE_INFLIGHT may be reordered with reads counting in scsi_host_busy(). While the local CPU will see its own write, reordering can allow other CPUs in scsi_dec_host_busy() or scsi_eh_inc_host_failed() to see a raised busy count, causing no CPU to see a host busy equal to the host_failed count.

This race condition can be prevented with a memory barrier on the error path to force the write to be visible before counting host busy commands.

Second, there is a general ordering issue with scsi_eh_inc_host_failed(). By counting busy commands before incrementing host_failed, it can race with a final command in scsi_dec_host_busy(), such that scsi_dec_host_busy() does not see host_failed incremented but scsi_eh_inc_host_failed() counts busy commands before SCMD_STATE_INFLIGHT is cleared by scsi_dec_host_busy(), resulting in neither waking the error handler task.

This needs the call to scsi_host_busy() to be moved after host_failed is incremented to close the race condition.

Scores

The record has no CVSS score.

Weaknesses

  • CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Affected Products

ProductVersions
LinuxLinux
  • 6eb045e092efefafc6687409a6fa6d1dabf0fb69 to before cc872e35c0df80062abc71268d690a2f749e542eAffected
  • 6eb045e092efefafc6687409a6fa6d1dabf0fb69 to before 6d9a367be356101963c249ebf10ea10b32886607Affected
  • 6eb045e092efefafc6687409a6fa6d1dabf0fb69 to before 9fdc6f28d5e81350ab1d2cac8389062bd09e61e1Affected
  • 6eb045e092efefafc6687409a6fa6d1dabf0fb69 to before 64ae21b9c4f0c7e60cf47a53fa7ab68852079ef0Affected
  • 6eb045e092efefafc6687409a6fa6d1dabf0fb69 to before 219f009ebfd1ef3970888ee9eef4c8a06357f862Affected
  • 6eb045e092efefafc6687409a6fa6d1dabf0fb69 to before fe2f8ad6f0999db3b318359a01ee0108c703a8c3Affected
LinuxLinux
  • 5.5Affected
  • before 5.5Not affected
  • 5.10.249 through 5.10.*Not affected
  • 6.1.162 through 6.1.*Not affected
  • 6.6.122 through 6.6.*Not affected
  • 6.12.68 through 6.12.*Not affected
  • 6.18.8 through 6.18.*Not affected
  • 6.19 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.