# CVE-2021-46970: bus: mhi: pci\_generic: Remove WQ\_MEM\_RECLAIM flag from state workqueue

> 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.22% (percentile 8, 2026-11-28)
- **Published:** 2024-02-27T18:47:06.071Z
- **Modified:** 2026-06-17T04:16:01.683Z

## Who should check

- Anyone running Linux \>= 8f70397876872789b2a5deba804eb6216fb5deb7, \< abd1510c08a13c88d24b622a83c82e87ff1d3135; \>= 8f70397876872789b2a5deba804eb6216fb5deb7, \< ed541cff35cbdb695f0c98ef506dd7218883fc07; \>= 8f70397876872789b2a5deba804eb6216fb5deb7, \< 0fccbf0a3b690b162f53b13ed8bc442ea33437dc
- Anyone running Linux 5.11

## Description

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

bus: mhi: pci\_generic: Remove WQ\_MEM\_RECLAIM flag from state workqueue

A recent change created a dedicated workqueue for the state-change work
with WQ\_HIGHPRI (no strong reason for that) and WQ\_MEM\_RECLAIM flags,
but the state-change work (mhi\_pm\_st\_worker) does not guarantee forward
progress under memory pressure, and will even wait on various memory
allocations when e.g. creating devices, loading firmware, etc... The
work is then not part of a memory reclaim path...

Moreover, this causes a warning in check\_flush\_dependency() since we end
up in code that flushes a non-reclaim workqueue:

\[   40.969601\] workqueue: WQ\_MEM\_RECLAIM mhi\_hiprio\_wq:mhi\_pm\_st\_worker \[mhi\] is flushing !WQ\_MEM\_RECLAIM events\_highpri:flush\_backlog
\[   40.969612\] WARNING: CPU: 4 PID: 158 at kernel/workqueue.c:2607 check\_flush\_dependency+0x11c/0x140
\[   40.969733\] Call Trace:
\[   40.969740\]  \_\_flush\_work+0x97/0x1d0
\[   40.969745\]  ? wake\_up\_process+0x15/0x20
\[   40.969749\]  ? insert\_work+0x70/0x80
\[   40.969750\]  ? \_\_queue\_work+0x14a/0x3e0
\[   40.969753\]  flush\_work+0x10/0x20
\[   40.969756\]  rollback\_registered\_many+0x1c9/0x510
\[   40.969759\]  unregister\_netdevice\_queue+0x94/0x120
\[   40.969761\]  unregister\_netdev+0x1d/0x30
\[   40.969765\]  mhi\_net\_remove+0x1a/0x40 \[mhi\_net\]
\[   40.969770\]  mhi\_driver\_remove+0x124/0x250 \[mhi\]
\[   40.969776\]  device\_release\_driver\_internal+0xf0/0x1d0
\[   40.969778\]  device\_release\_driver+0x12/0x20
\[   40.969782\]  bus\_remove\_device+0xe1/0x150
\[   40.969786\]  device\_del+0x17b/0x3e0
\[   40.969791\]  mhi\_destroy\_device+0x9a/0x100 \[mhi\]
\[   40.969796\]  ? mhi\_unmap\_single\_use\_bb+0x50/0x50 \[mhi\]
\[   40.969799\]  device\_for\_each\_child+0x5e/0xa0
\[   40.969804\]  mhi\_pm\_st\_worker+0x921/0xf50 \[mhi\]

## Affected and fixed versions

- Linux: \>= 8f70397876872789b2a5deba804eb6216fb5deb7, \< abd1510c08a13c88d24b622a83c82e87ff1d3135; \>= 8f70397876872789b2a5deba804eb6216fb5deb7, \< ed541cff35cbdb695f0c98ef506dd7218883fc07; \>= 8f70397876872789b2a5deba804eb6216fb5deb7, \< 0fccbf0a3b690b162f53b13ed8bc442ea33437dc (cvelist)
- Linux: 5.11 (cvelist)

## Mitigation

- Upgrade Linux to 0fccbf0a3b690b162f53b13ed8bc442ea33437dc or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2021-46970.md
Affected: Linux >= 8f70397876872789b2a5deba804eb6216fb5deb7, < abd1510c08a13c88d24b622a83c82e87ff1d3135; >= 8f70397876872789b2a5deba804eb6216fb5deb7, < ed541cff35cbdb695f0c98ef506dd7218883fc07; >= 8f70397876872789b2a5deba804eb6216fb5deb7, < 0fccbf0a3b690b162f53b13ed8bc442ea33437dc; Linux 5.11
Fixed in: Linux 0fccbf0a3b690b162f53b13ed8bc442ea33437dc

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-2021-46970 being exploited?

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

### How serious is CVE-2021-46970?

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

### Which versions are affected by CVE-2021-46970?

Linux \>= 8f70397876872789b2a5deba804eb6216fb5deb7, \< abd1510c08a13c88d24b622a83c82e87ff1d3135; \>= 8f70397876872789b2a5deba804eb6216fb5deb7, \< ed541cff35cbdb695f0c98ef506dd7218883fc07; \>= 8f70397876872789b2a5deba804eb6216fb5deb7, \< 0fccbf0a3b690b162f53b13ed8bc442ea33437dc; Linux 5.11.

### Is there a fix for CVE-2021-46970?

Yes. Fixed in Linux 0fccbf0a3b690b162f53b13ed8bc442ea33437dc. Upgrade Linux to 0fccbf0a3b690b162f53b13ed8bc442ea33437dc or later.

### How do I check if I'm affected by CVE-2021-46970?

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/abd1510c08a13c88d24b622a83c82e87ff1d3135>
- patch: <https://git.kernel.org/stable/c/ed541cff35cbdb695f0c98ef506dd7218883fc07>
- patch: <https://git.kernel.org/stable/c/0fccbf0a3b690b162f53b13ed8bc442ea33437dc>

## 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-2021-46970>

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