CVE-2022-49001
riscv: fix race when vmap stack overflow
Mitigation
- Upgrade Linux to 7e1864332fbc1b993659eab7974da9fe8bf8c128 or later.
Who should check
- Anyone running Linux >= 31da94c25aea835ceac00575a9fd206c5a833fed, < ac00301adb19df54f2eae1efc4bad7447c0156ce; >= 31da94c25aea835ceac00575a9fd206c5a833fed, < 879fabc5a95401d9bce357e4b1d24ae4a360a81f; >= 31da94c25aea835ceac00575a9fd206c5a833fed, < 7e1864332fbc1b993659eab7974da9fe8bf8c128
- Anyone running Linux 5.14
Vulnerability facts
- Affected
- Linux >= 31da94c25aea835ceac00575a9fd206c5a833fed, < ac00301adb19df54f2eae1efc4bad7447c0156ce; >= 31da94c25aea835ceac00575a9fd206c5a833fed, < 879fabc5a95401d9bce357e4b1d24ae4a360a81f; >= 31da94c25aea835ceac00575a9fd206c5a833fed, < 7e1864332fbc1b993659eab7974da9fe8bf8c128; Linux 5.14
- Fixed in
- Linux 879fabc5a95401d9bce357e4b1d24ae4a360a81f, Linux 7e1864332fbc1b993659eab7974da9fe8bf8c128
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.0 (v3.1, CNA)CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: High
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.23% chance of exploitation in 30 days (percentile 8, 2026-11-26)
- CWE
- CWE-362
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: riscv: fix race when vmap stack overflow Currently, when detecting vmap stack overflow, riscv firstly switches to the so called shadow stack, then use this shadow stack to call the get_overflow_stack() to get the overflow stack. However, there's a race here if two or more harts use the same shadow stack at the same time. To solve this race, we introduce spin_shadow_stack atomic var, which will be swap between its own address and 0 in atomic way, when the var is set, it means the shadow_stack is being used; when the var is cleared, it means the shadow_stack isn't being used. [Palmer: Add AQ to the swap, and also some comments.]
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 31da94c25aea835ceac00575a9fd206c5a833fed, < ac00301adb19df54f2eae1efc4bad7447c0156ce; >= 31da94c25aea835ceac00575a9fd206c5a833fed, < 879fabc5a95401d9bce357e4b1d24ae4a360a81f; >= 31da94c25aea835ceac00575a9fd206c5a833fed, < 7e1864332fbc1b993659eab7974da9fe8bf8c128 | — | cvelist |
| Linux | 5.14 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2022-49001. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-49001.md Affected: Linux >= 31da94c25aea835ceac00575a9fd206c5a833fed, < ac00301adb19df54f2eae1efc4bad7447c0156ce; >= 31da94c25aea835ceac00575a9fd206c5a833fed, < 879fabc5a95401d9bce357e4b1d24ae4a360a81f; >= 31da94c25aea835ceac00575a9fd206c5a833fed, < 7e1864332fbc1b993659eab7974da9fe8bf8c128; Linux 5.14 Fixed in: Linux 879fabc5a95401d9bce357e4b1d24ae4a360a81f, Linux 7e1864332fbc1b993659eab7974da9fe8bf8c128 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.
References
FAQ
Is CVE-2022-49001 being exploited?
There is no confirmed exploitation: CVE-2022-49001 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-26).
How serious is CVE-2022-49001?
High: CVSS 7.0 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2022-49001?
Linux >= 31da94c25aea835ceac00575a9fd206c5a833fed, < ac00301adb19df54f2eae1efc4bad7447c0156ce; >= 31da94c25aea835ceac00575a9fd206c5a833fed, < 879fabc5a95401d9bce357e4b1d24ae4a360a81f; >= 31da94c25aea835ceac00575a9fd206c5a833fed, < 7e1864332fbc1b993659eab7974da9fe8bf8c128; Linux 5.14.
Is there a fix for CVE-2022-49001?
Yes. Fixed in Linux 879fabc5a95401d9bce357e4b1d24ae4a360a81f, Linux 7e1864332fbc1b993659eab7974da9fe8bf8c128. Upgrade Linux to 7e1864332fbc1b993659eab7974da9fe8bf8c128 or later.
How do I check if I'm affected by CVE-2022-49001?
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.