# CVE-2024-26873: scsi: hisi\_sas: Fix a deadlock issue related to automatic dump

> 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, NVD) `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.23% (percentile 8, 2026-11-28)
- **CWE:** CWE-667
- **Published:** 2024-04-17T10:27:32.647Z
- **Modified:** 2026-10-30T13:17:22.820Z

## Who should check

- Anyone running Linux \>= 9b31409715ce2745fdf3d8afad66bee4b2b7867a, \< 384f907946abe091da6ebcd65a15315896fb366c; \>= 91e035e98fa1383ca90d774c29bb14c3c5ed2d8c, \< a47f0b03149af538af4442ff0702eac430ace1cb; \>= 2ff07b5c6fe9173e7a7de3b23f300d71ad4d8fde, \< e022dd3b875315a2d2001a512e98d1dc8c991f4a; \>= 2ff07b5c6fe9173e7a7de3b23f300d71ad4d8fde, \< 85c98073ffcfe9e46abfb9c66f3364467119d563; \>= 2ff07b5c6fe9173e7a7de3b23f300d71ad4d8fde, \< 3c4f53b2c341ec6428b98cb51a89a09b025d0953
- Anyone running Linux 6.7

## Description

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

scsi: hisi\_sas: Fix a deadlock issue related to automatic dump

If we issue a disabling PHY command, the device attached with it will go
offline, if a 2 bit ECC error occurs at the same time, a hung task may be
found:

\[ 4613.652388\] INFO: task kworker/u256:0:165233 blocked for more than 120 seconds.
\[ 4613.666297\] "echo 0 \> /proc/sys/kernel/hung\_task\_timeout\_secs" disables this message.
\[ 4613.674809\] task:kworker/u256:0  state:D stack:    0 pid:165233 ppid:     2 flags:0x00000208
\[ 4613.683959\] Workqueue: 0000:74:02.0\_disco\_q sas\_revalidate\_domain \[libsas\]
\[ 4613.691518\] Call trace:
\[ 4613.694678\]  \_\_switch\_to+0xf8/0x17c
\[ 4613.698872\]  \_\_schedule+0x660/0xee0
\[ 4613.703063\]  schedule+0xac/0x240
\[ 4613.706994\]  schedule\_timeout+0x500/0x610
\[ 4613.711705\]  \_\_down+0x128/0x36c
\[ 4613.715548\]  down+0x240/0x2d0
\[ 4613.719221\]  hisi\_sas\_internal\_abort\_timeout+0x1bc/0x260 \[hisi\_sas\_main\]
\[ 4613.726618\]  sas\_execute\_internal\_abort+0x144/0x310 \[libsas\]
\[ 4613.732976\]  sas\_execute\_internal\_abort\_dev+0x44/0x60 \[libsas\]
\[ 4613.739504\]  hisi\_sas\_internal\_task\_abort\_dev.isra.0+0xbc/0x1b0 \[hisi\_sas\_main\]
\[ 4613.747499\]  hisi\_sas\_dev\_gone+0x174/0x250 \[hisi\_sas\_main\]
\[ 4613.753682\]  sas\_notify\_lldd\_dev\_gone+0xec/0x2e0 \[libsas\]
\[ 4613.759781\]  sas\_unregister\_common\_dev+0x4c/0x7a0 \[libsas\]
\[ 4613.765962\]  sas\_destruct\_devices+0xb8/0x120 \[libsas\]
\[ 4613.771709\]  sas\_do\_revalidate\_domain.constprop.0+0x1b8/0x31c \[libsas\]
\[ 4613.778930\]  sas\_revalidate\_domain+0x60/0xa4 \[libsas\]
\[ 4613.784716\]  process\_one\_work+0x248/0x950
\[ 4613.789424\]  worker\_thread+0x318/0x934
\[ 4613.793878\]  kthread+0x190/0x200
\[ 4613.797810\]  ret\_from\_fork+0x10/0x18
\[ 4613.802121\] INFO: task kworker/u256:4:316722 blocked for more than 120 seconds.
\[ 4613.816026\] "echo 0 \> /proc/sys/kernel/hung\_task\_timeout\_secs" disables this message.
\[ 4613.824538\] task:kworker/u256:4  state:D stack:    0 pid:316722 ppid:     2 flags:0x00000208
\[ 4613.833670\] Workqueue: 0000:74:02.0 hisi\_sas\_rst\_work\_handler \[hisi\_sas\_main\]
\[ 4613.841491\] Call trace:
\[ 4613.844647\]  \_\_switch\_to+0xf8/0x17c
\[ 4613.848852\]  \_\_schedule+0x660/0xee0
\[ 4613.853052\]  schedule+0xac/0x240
\[ 4613.856984\]  schedule\_timeout+0x500/0x610
\[ 4613.861695\]  \_\_down+0x128/0x36c
\[ 4613.865542\]  down+0x240/0x2d0
\[ 4613.869216\]  hisi\_sas\_controller\_prereset+0x58/0x1fc \[hisi\_sas\_main\]
\[ 4613.876324\]  hisi\_sas\_rst\_work\_handler+0x40/0x8c \[hisi\_sas\_main\]
\[ 4613.883019\]  process\_one\_work+0x248/0x950
\[ 4613.887732\]  worker\_thread+0x318/0x934
\[ 4613.892204\]  kthread+0x190/0x200
\[ 4613.896118\]  ret\_from\_fork+0x10/0x18
\[ 4613.900423\] INFO: task kworker/u256:1:348985 blocked for more than 121 seconds.
\[ 4613.914341\] "echo 0 \> /proc/sys/kernel/hung\_task\_timeout\_secs" disables this message.
\[ 4613.922852\] task:kworker/u256:1  state:D stack:    0 pid:348985 ppid:     2 flags:0x00000208
\[ 4613.931984\] Workqueue: 0000:74:02.0\_event\_q sas\_port\_event\_worker \[libsas\]
\[ 4613.939549\] Call trace:
\[ 4613.942702\]  \_\_switch\_to+0xf8/0x17c
\[ 4613.946892\]  \_\_schedule+0x660/0xee0
\[ 4613.951083\]  schedule+0xac/0x240
\[ 4613.955015\]  schedule\_timeout+0x500/0x610
\[ 4613.959725\]  wait\_for\_common+0x200/0x610
\[ 4613.964349\]  wait\_for\_completion+0x3c/0x5c
\[ 4613.969146\]  flush\_workqueue+0x198/0x790
\[ 4613.973776\]  sas\_porte\_broadcast\_rcvd+0x1e8/0x320 \[libsas\]
\[ 4613.979960\]  sas\_port\_event\_worker+0x54/0xa0 \[libsas\]
\[ 4613.985708\]  process\_one\_work+0x248/0x950
\[ 4613.990420\]  worker\_thread+0x318/0x934
\[ 4613.994868\]  kthread+0x190/0x200
\[ 4613.998800\]  ret\_from\_fork+0x10/0x18

This is because when the device goes offline, we obtain the hisi\_hba
semaphore and send the ABORT\_DEV command to the device. However, the
internal abort timed out due to the 2 bit ECC error and triggers automatic
dump. In addition, since the hisi\_hba semaphore has been obtained, the dump
cannot be executed and the controller cannot be reset.

Therefore, the deadlocks occur on the following circular dependencies
---truncated---

## Affected and fixed versions

- Linux: \>= 9b31409715ce2745fdf3d8afad66bee4b2b7867a, \< 384f907946abe091da6ebcd65a15315896fb366c; \>= 91e035e98fa1383ca90d774c29bb14c3c5ed2d8c, \< a47f0b03149af538af4442ff0702eac430ace1cb; \>= 2ff07b5c6fe9173e7a7de3b23f300d71ad4d8fde, \< e022dd3b875315a2d2001a512e98d1dc8c991f4a; \>= 2ff07b5c6fe9173e7a7de3b23f300d71ad4d8fde, \< 85c98073ffcfe9e46abfb9c66f3364467119d563; \>= 2ff07b5c6fe9173e7a7de3b23f300d71ad4d8fde, \< 3c4f53b2c341ec6428b98cb51a89a09b025d0953 (cvelist)
- Linux: 6.7 (cvelist)

## Mitigation

- Upgrade Linux to 3c4f53b2c341ec6428b98cb51a89a09b025d0953 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-26873. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-26873.md
Affected: Linux >= 9b31409715ce2745fdf3d8afad66bee4b2b7867a, < 384f907946abe091da6ebcd65a15315896fb366c; >= 91e035e98fa1383ca90d774c29bb14c3c5ed2d8c, < a47f0b03149af538af4442ff0702eac430ace1cb; >= 2ff07b5c6fe9173e7a7de3b23f300d71ad4d8fde, < e022dd3b875315a2d2001a512e98d1dc8c991f4a; >= 2ff07b5c6fe9173e7a7de3b…
Fixed in: Linux 384f907946abe091da6ebcd65a15315896fb366c, Linux 85c98073ffcfe9e46abfb9c66f3364467119d563, Linux 3c4f53b2c341ec6428b98cb51a89a09b025d0953

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-26873 being exploited?

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

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

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

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

Linux \>= 9b31409715ce2745fdf3d8afad66bee4b2b7867a, \< 384f907946abe091da6ebcd65a15315896fb366c; \>= 91e035e98fa1383ca90d774c29bb14c3c5ed2d8c, \< a47f0b03149af538af4442ff0702eac430ace1cb; \>= 2ff07b5c6fe9173e7a7de3b23f300d71ad4d8fde, \< e022dd3b875315a2d2001a512e98d1dc8c991f4a; \>= 2ff07b5c6fe9173e7a7de3b23f300d71ad4d8fde, \< 85c98073ffcfe9e46abfb9c66f3364467119d563; \>= 2ff07b5c6fe9173e7a7de3b23f300d71ad4d8fde, \< 3c4f53b2c341ec6428b98cb51a89a09b025d0953; Linux 6.7.

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

Yes. Fixed in Linux 384f907946abe091da6ebcd65a15315896fb366c, Linux 85c98073ffcfe9e46abfb9c66f3364467119d563, Linux 3c4f53b2c341ec6428b98cb51a89a09b025d0953. Upgrade Linux to 3c4f53b2c341ec6428b98cb51a89a09b025d0953 or later.

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

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/a47f0b03149af538af4442ff0702eac430ace1cb>
- patch: <https://git.kernel.org/stable/c/e022dd3b875315a2d2001a512e98d1dc8c991f4a>
- patch: <https://git.kernel.org/stable/c/85c98073ffcfe9e46abfb9c66f3364467119d563>
- patch: <https://git.kernel.org/stable/c/3c4f53b2c341ec6428b98cb51a89a09b025d0953>
- other: <https://git.kernel.org/stable/c/384f907946abe091da6ebcd65a15315896fb366c>

## 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-26873>

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