# CVE-2022-49217: scsi: pm8001: Fix abort all task initialization

> 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.32% (percentile 18, 2026-11-26)
- **CWE:** CWE-909
- **Published:** 2025-02-26T01:55:51.156Z
- **Modified:** 2026-06-17T05:17:24.970Z

## Who should check

- Anyone running Linux \>= c6b9ef5779c3e1edfa9de949d2a51252bc347663, \< 9914461db82caee6c519acfbe10a86fe11bcdeca; \>= c6b9ef5779c3e1edfa9de949d2a51252bc347663, \< d6ec4471550cc53e96485a7124c5891e6a38d1c3; \>= c6b9ef5779c3e1edfa9de949d2a51252bc347663, \< 1824a21b2cedc5774a5adfa74f5f7b90472d8677; \>= c6b9ef5779c3e1edfa9de949d2a51252bc347663, \< 765674e3b30121782a2b792684554baa48c61f5e; \>= c6b9ef5779c3e1edfa9de949d2a51252bc347663, \< 279f318bd7d6e04e6e0bc7b8cd8e190da8fa37a4; \>= c6b9ef5779c3e1edfa9de949d2a51252bc347663, \< c8db786858d895ac58342f67767b4999ae6538fa; \>= c6b9ef5779c3e1edfa9de949d2a51252bc347663, \< 326d894adf89f3c707b7784becbe241830daaab6; \>= c6b9ef5779c3e1edfa9de949d2a51252bc347663, \< 16cd02e0951b520bef324adb9a35afcc92501caf; \>= c6b9ef5779c3e1edfa9de949d2a51252bc347663, \< 7f12845c8389855dbcc67baa068b6832dc4a396e
- Anyone running Linux 3.10

## Description

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

scsi: pm8001: Fix abort all task initialization

In pm80xx\_send\_abort\_all(), the n\_elem field of the ccb used is not
initialized to 0. This missing initialization sometimes lead to the task
completion path seeing the ccb with a non-zero n\_elem resulting in the
execution of invalid dma\_unmap\_sg() calls in pm8001\_ccb\_task\_free(),
causing a crash such as:

\[  197.676341\] RIP: 0010:iommu\_dma\_unmap\_sg+0x6d/0x280
\[  197.700204\] RSP: 0018:ffff889bbcf89c88 EFLAGS: 00010012
\[  197.705485\] RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff83d0bda0
\[  197.712687\] RDX: 0000000000000002 RSI: 0000000000000000 RDI: ffff88810dffc0d0
\[  197.719887\] RBP: 0000000000000000 R08: 0000000000000000 R09: ffff8881c790098b
\[  197.727089\] R10: ffffed1038f20131 R11: 0000000000000001 R12: 0000000000000000
\[  197.734296\] R13: ffff88810dffc0d0 R14: 0000000000000010 R15: 0000000000000000
\[  197.741493\] FS:  0000000000000000(0000) GS:ffff889bbcf80000(0000) knlGS:0000000000000000
\[  197.749659\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[  197.755459\] CR2: 00007f16c1b42734 CR3: 0000000004814000 CR4: 0000000000350ee0
\[  197.762656\] Call Trace:
\[  197.765127\]  \<IRQ\>
\[  197.767162\]  pm8001\_ccb\_task\_free+0x5f1/0x820 \[pm80xx\]
\[  197.772364\]  ? do\_raw\_spin\_unlock+0x54/0x220
\[  197.776680\]  pm8001\_mpi\_task\_abort\_resp+0x2ce/0x4f0 \[pm80xx\]
\[  197.782406\]  process\_oq+0xe85/0x7890 \[pm80xx\]
\[  197.786817\]  ? lock\_acquire+0x194/0x490
\[  197.790697\]  ? handle\_irq\_event+0x10e/0x1b0
\[  197.794920\]  ? mpi\_sata\_completion+0x2d70/0x2d70 \[pm80xx\]
\[  197.800378\]  ? \_\_wake\_up\_bit+0x100/0x100
\[  197.804340\]  ? lock\_is\_held\_type+0x98/0x110
\[  197.808565\]  pm80xx\_chip\_isr+0x94/0x130 \[pm80xx\]
\[  197.813243\]  tasklet\_action\_common.constprop.0+0x24b/0x2f0
\[  197.818785\]  \_\_do\_softirq+0x1b5/0x82d
\[  197.822485\]  ? do\_raw\_spin\_unlock+0x54/0x220
\[  197.826799\]  \_\_irq\_exit\_rcu+0x17e/0x1e0
\[  197.830678\]  irq\_exit\_rcu+0xa/0x20
\[  197.834114\]  common\_interrupt+0x78/0x90
\[  197.840051\]  \</IRQ\>
\[  197.844236\]  \<TASK\>
\[  197.848397\]  asm\_common\_interrupt+0x1e/0x40

Avoid this issue by always initializing the ccb n\_elem field to 0 in
pm8001\_send\_abort\_all(), pm8001\_send\_read\_log() and
pm80xx\_send\_abort\_all().

## Affected and fixed versions

- Linux: \>= c6b9ef5779c3e1edfa9de949d2a51252bc347663, \< 9914461db82caee6c519acfbe10a86fe11bcdeca; \>= c6b9ef5779c3e1edfa9de949d2a51252bc347663, \< d6ec4471550cc53e96485a7124c5891e6a38d1c3; \>= c6b9ef5779c3e1edfa9de949d2a51252bc347663, \< 1824a21b2cedc5774a5adfa74f5f7b90472d8677; \>= c6b9ef5779c3e1edfa9de949d2a51252bc347663, \< 765674e3b30121782a2b792684554baa48c61f5e; \>= c6b9ef5779c3e1edfa9de949d2a51252bc347663, \< 279f318bd7d6e04e6e0bc7b8cd8e190da8fa37a4; \>= c6b9ef5779c3e1edfa9de949d2a51252bc347663, \< c8db786858d895ac58342f67767b4999ae6538fa; \>= c6b9ef5779c3e1edfa9de949d2a51252bc347663, \< 326d894adf89f3c707b7784becbe241830daaab6; \>= c6b9ef5779c3e1edfa9de949d2a51252bc347663, \< 16cd02e0951b520bef324adb9a35afcc92501caf; \>= c6b9ef5779c3e1edfa9de949d2a51252bc347663, \< 7f12845c8389855dbcc67baa068b6832dc4a396e (cvelist)
- Linux: 3.10 (cvelist)

## Mitigation

- Upgrade Linux to 7f12845c8389855dbcc67baa068b6832dc4a396e or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-49217.md
Affected: Linux >= c6b9ef5779c3e1edfa9de949d2a51252bc347663, < 9914461db82caee6c519acfbe10a86fe11bcdeca; >= c6b9ef5779c3e1edfa9de949d2a51252bc347663, < d6ec4471550cc53e96485a7124c5891e6a38d1c3; >= c6b9ef5779c3e1edfa9de949d2a51252bc347663, < 1824a21b2cedc5774a5adfa74f5f7b90472d8677; >= c6b9ef5779c3e1edfa9de94…
Fixed in: Linux 9914461db82caee6c519acfbe10a86fe11bcdeca, Linux 1824a21b2cedc5774a5adfa74f5f7b90472d8677, Linux 765674e3b30121782a2b792684554baa48c61f5e, Linux 279f318bd7d6e04e6e0bc7b8cd8e190da8fa37a4, Linux 326d894adf89f3c707b7784becbe241830daaab6, Linux 16cd02e0951b520bef324adb9a35afcc92501caf, Linux 7f128…

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

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

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

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

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

Linux \>= c6b9ef5779c3e1edfa9de949d2a51252bc347663, \< 9914461db82caee6c519acfbe10a86fe11bcdeca; \>= c6b9ef5779c3e1edfa9de949d2a51252bc347663, \< d6ec4471550cc53e96485a7124c5891e6a38d1c3; \>= c6b9ef5779c3e1edfa9de949d2a51252bc347663, \< 1824a21b2cedc5774a5adfa74f5f7b90472d8677; \>= c6b9ef5779c3e1edfa9de949d2a51252bc347663, \< 765674e3b30121782a2b792684554baa48c61f5e; \>= c6b9ef5779c3e1edfa9de949d2a51252bc347663, \< 279f318bd7d6e04e6e0bc7b8cd8e190da8fa37a4; \>= c6b9ef5779c3e1edfa9de949d2a51252bc347663, \< c8db786858d895ac58342f67767b4999ae6538fa; \>= c6b9ef5779c3e1edfa9de949d2a51252bc347663, \< 326d894adf89f3c707b7784becbe241830daaab6; \>= c6b9ef5779c3e1edfa9de949d2a51252bc347663, \< 16cd02e0951b520bef324adb9a35afcc92501caf; \>= c6b9ef5779c3e1edfa9de949d2a51252bc347663, \< 7f12845c8389855dbcc67baa068b6832dc4a396e; Linux 3.10.

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

Yes. Fixed in Linux 9914461db82caee6c519acfbe10a86fe11bcdeca, Linux 1824a21b2cedc5774a5adfa74f5f7b90472d8677, Linux 765674e3b30121782a2b792684554baa48c61f5e, Linux 279f318bd7d6e04e6e0bc7b8cd8e190da8fa37a4, Linux 326d894adf89f3c707b7784becbe241830daaab6, Linux 16cd02e0951b520bef324adb9a35afcc92501caf, Linux 7f12845c8389855dbcc67baa068b6832dc4a396e. Upgrade Linux to 7f12845c8389855dbcc67baa068b6832dc4a396e or later.

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

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/9914461db82caee6c519acfbe10a86fe11bcdeca>
- patch: <https://git.kernel.org/stable/c/d6ec4471550cc53e96485a7124c5891e6a38d1c3>
- patch: <https://git.kernel.org/stable/c/1824a21b2cedc5774a5adfa74f5f7b90472d8677>
- patch: <https://git.kernel.org/stable/c/765674e3b30121782a2b792684554baa48c61f5e>
- patch: <https://git.kernel.org/stable/c/279f318bd7d6e04e6e0bc7b8cd8e190da8fa37a4>
- patch: <https://git.kernel.org/stable/c/c8db786858d895ac58342f67767b4999ae6538fa>
- patch: <https://git.kernel.org/stable/c/326d894adf89f3c707b7784becbe241830daaab6>
- patch: <https://git.kernel.org/stable/c/16cd02e0951b520bef324adb9a35afcc92501caf>
- patch: <https://git.kernel.org/stable/c/7f12845c8389855dbcc67baa068b6832dc4a396e>

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

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