# CVE-2022-50818: scsi: pm8001: Fix running\_req for internal abort commands

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.26% (percentile 10, 2026-11-26)
- **Published:** 2025-12-30T12:08:33.548Z
- **Modified:** 2026-06-17T05:24:14.520Z

## Who should check

- Anyone running Linux \>= 2cbbf489778eb9dde51392ec5f74ae2868e4b857, \< 4e750e0d8e486569fcb7f4ba6f6471673ce7d8a2; \>= 2cbbf489778eb9dde51392ec5f74ae2868e4b857, \< a62b9fc9775fbc8e666bb328f6e53c168054d6fe; \>= 2cbbf489778eb9dde51392ec5f74ae2868e4b857, \< d8c22c4697c11ed28062afe3c2b377025be11a23
- Anyone running Linux 5.18

## Description

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

scsi: pm8001: Fix running\_req for internal abort commands

Disabling the remote phy for a SATA disk causes a hang:

root@(none)$ more /sys/class/sas\_phy/phy-0:0:8/target\_port\_protocols
sata
root@(none)$ echo 0 \> sys/class/sas\_phy/phy-0:0:8/enable
root@(none)$ \[   67.855950\] sas: ex 500e004aaaaaaa1f phy08 change count has changed
\[   67.920585\] sd 0:0:2:0: \[sdc\] Synchronizing SCSI cache
\[   67.925780\] sd 0:0:2:0: \[sdc\] Synchronize Cache(10) failed: Result: hostbyte=0x04 driverbyte=DRIVER\_OK
\[   67.935094\] sd 0:0:2:0: \[sdc\] Stopping disk
\[   67.939305\] sd 0:0:2:0: \[sdc\] Start/Stop Unit failed: Result: hostbyte=0x04 driverbyte=DRIVER\_OK
...
\[  123.998998\] INFO: task kworker/u192:1:642 blocked for more than 30 seconds.
\[  124.005960\]   Not tainted 6.0.0-rc1-205202-gf26f8f761e83 \#218
\[  124.012049\] "echo 0 \> /proc/sys/kernel/hung\_task\_timeout\_secs" disables this message.
\[  124.019872\] task:kworker/u192:1  state:D stack:0 pid:  642 ppid: 2 flags:0x00000008
\[  124.028223\] Workqueue: 0000:04:00.0\_event\_q sas\_port\_event\_worker
\[  124.034319\] Call trace:
\[  124.036758\]  \_\_switch\_to+0x128/0x278
\[  124.040333\]  \_\_schedule+0x434/0xa58
\[  124.043820\]  schedule+0x94/0x138
\[  124.047045\]  schedule\_timeout+0x2fc/0x368
\[  124.051052\]  wait\_for\_completion+0xdc/0x200
\[  124.055234\]  \_\_flush\_workqueue+0x1a8/0x708
\[  124.059328\]  sas\_porte\_broadcast\_rcvd+0xa8/0xc0
\[  124.063858\]  sas\_port\_event\_worker+0x60/0x98
\[  124.068126\]  process\_one\_work+0x3f8/0x660
\[  124.072134\]  worker\_thread+0x70/0x700
\[  124.075793\]  kthread+0x1a4/0x1b8
\[  124.079014\]  ret\_from\_fork+0x10/0x20

The issue is that the per-device running\_req read in
pm8001\_dev\_gone\_notify() never goes to zero and we never make progress.
This is caused by missing accounting for running\_req for when an internal
abort command completes.

In commit 2cbbf489778e ("scsi: pm8001: Use libsas internal abort support")
we started to send internal abort commands as a proper sas\_task. In this
when we deliver a sas\_task to HW the per-device running\_req is incremented
in pm8001\_queue\_command(). However it is never decremented for internal
abort commnds, so decrement in pm8001\_mpi\_task\_abort\_resp().

## Affected and fixed versions

- Linux: \>= 2cbbf489778eb9dde51392ec5f74ae2868e4b857, \< 4e750e0d8e486569fcb7f4ba6f6471673ce7d8a2; \>= 2cbbf489778eb9dde51392ec5f74ae2868e4b857, \< a62b9fc9775fbc8e666bb328f6e53c168054d6fe; \>= 2cbbf489778eb9dde51392ec5f74ae2868e4b857, \< d8c22c4697c11ed28062afe3c2b377025be11a23 (cvelist)
- Linux: 5.18 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-50818. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50818.md
Affected: Linux >= 2cbbf489778eb9dde51392ec5f74ae2868e4b857, < 4e750e0d8e486569fcb7f4ba6f6471673ce7d8a2; >= 2cbbf489778eb9dde51392ec5f74ae2868e4b857, < a62b9fc9775fbc8e666bb328f6e53c168054d6fe; >= 2cbbf489778eb9dde51392ec5f74ae2868e4b857, < d8c22c4697c11ed28062afe3c2b377025be11a23; Linux 5.18
Fixed in: Linux 4e750e0d8e486569fcb7f4ba6f6471673ce7d8a2

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-2022-50818 being exploited?

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

### How serious is CVE-2022-50818?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2022-50818?

Linux \>= 2cbbf489778eb9dde51392ec5f74ae2868e4b857, \< 4e750e0d8e486569fcb7f4ba6f6471673ce7d8a2; \>= 2cbbf489778eb9dde51392ec5f74ae2868e4b857, \< a62b9fc9775fbc8e666bb328f6e53c168054d6fe; \>= 2cbbf489778eb9dde51392ec5f74ae2868e4b857, \< d8c22c4697c11ed28062afe3c2b377025be11a23; Linux 5.18.

### Is there a fix for CVE-2022-50818?

Yes. Fixed in Linux 4e750e0d8e486569fcb7f4ba6f6471673ce7d8a2. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-50818?

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

- other: <https://git.kernel.org/stable/c/4e750e0d8e486569fcb7f4ba6f6471673ce7d8a2>
- other: <https://git.kernel.org/stable/c/a62b9fc9775fbc8e666bb328f6e53c168054d6fe>
- other: <https://git.kernel.org/stable/c/d8c22c4697c11ed28062afe3c2b377025be11a23>

## 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-2022-50818>

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