CVE-2021-46969
published high CVSS 3.1 · 7.8bus: mhi: core: Fix invalid error returning in mhi_queue
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxa8f75cb348fd52e7a5cf25991cdf9c89fb0cfd41 to < a99b661c3187365f81026d89b1133a76cd2652b3 · a8f75cb348fd52e7a5cf25991cdf9c89fb0cfd41 to < 0ecc1c70dcd32c0f081b173a1a5d89952686f271 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.12 (affected) · 0 to < 5.12 (unaffected · semver) · 5.12.3 through 5.12.* (unaffected · semver) · 5.13 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: bus: mhi: core: Fix invalid error returning in mhi_queue mhi_queue returns an error when the doorbell is not accessible in the current state. This can happen when the device is in non M0 state, like M3, and needs to be waken-up prior ringing the DB. This case is managed earlier by triggering an asynchronous M3 exit via controller resume/suspend callbacks, that in turn will cause M0 transition and DB update. So, since it's not an error but just delaying of doorbell update, there is no reason to return an error. This also fixes a use after free error for skb case, indeed a caller queuing skb will try to free the skb if the queueing fails, but in that case queueing has been done.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerability is reached by transmitting through local MHI client paths (mhi_net ndo_start_xmit or AF_QIPCRTR → qrtr_mhi xmit → mhi_queue_skb), which require local process access to a PCIe WWAN/MHI device interface rather than remote packet parsing. AC:L - With MHI PCI runtime autosuspend (2s), M3 is a normal idle state the attacker can wait for and then reliably trigger by sending traffic; no attacker-uncontrollable condition is required. PR:L - An unprivileged local user can open AF_QIPCRTR sockets (no capability required for ephemeral ports) or send packets via an already-up MHI WWAN netdev route; CAP_NET_ADMIN is not required for the vulnerable queue path itself. UI:N - Exploitation requires only attacker-initiated transmit while the modem is suspended; no separate victim user action is needed. S:U - Impact is confined to the host kernel's memory/process security authority (standard local privilege-escalation UAF), with no VM/IOMMU/sandbox boundary crossed. C:H - The skb remains referenced in the MHI transfer ring after the caller frees it, yielding a classic heap UAF that can be reclaimed/sprayed to obtain arbitrary kernel read primitives. I:H - The same skb UAF/double-free on completion (e.g. mhi_net_ul_callback / qrtr ul_callback consuming the freed skb) enables heap corruption and control-flow hijacking for arbitrary write/code execution. A:H - Use-after-free and double-free of the queued skb reliably cause kernel oops/panic when the deferred doorbell/completion path runs after M3 exit.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | a8f75cb348fd52e7a5cf25991cdf9c89fb0cfd41 to < a99b661c3187365f81026d89b1133a76cd2652b3 (affected · git)a8f75cb348fd52e7a5cf25991cdf9c89fb0cfd41 to < 0ecc1c70dcd32c0f081b173a1a5d89952686f271 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.12 (affected)0 to < 5.12 (unaffected · semver)5.12.3 through 5.12.* (unaffected · semver)5.13 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
3Linux · cna
bus: mhi: core: Fix invalid error returning in mhi_queue
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- e4266598bf65f69444f654402009eae60f8d93282e0cb51f7ccada11f2e52b99
- Ingested
- 23 Sep 2026, 07:57:04 UTC
- Source record
- Official CVE record