Skip to content
Fencer Vulns
high 7.0

CVE-2022-49001 json

riscv: fix race when vmap stack overflow

published 2024-10-21 2 y ago modified 2026-08-05 3 mo ago also EUVD-2022-53885

cvss
7.0
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.2%
EPSS 0.2% chance of exploitation in 30 days, percentile 8%
public exploits
0
none known

Summary

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.]

Patch / fix

  • Linux Linux 5.15.82, 6.0.12, 6.1
  • linux Debian 14, Debian 13, Debian 12 6.0.12-1

debian advisories DEBIAN-CVE-2022-49001

  • linux Ubuntu 22.04 LTS 5.15.0-67.74
  • linux-aws Ubuntu 22.04 LTS 5.15.0-1031.35
  • linux-gcp Ubuntu 22.04 LTS 5.15.0-1030.37
  • linux-gke Ubuntu 22.04 LTS 5.15.0-1028.33
  • linux-ibm Ubuntu 22.04 LTS 5.15.0-1026.29
  • linux-kvm Ubuntu 22.04 LTS 5.15.0-1029.34
  • linux-azure Ubuntu 22.04 LTS 5.15.0-1034.41
  • linux-gkeop Ubuntu 22.04 LTS 5.15.0-1016.21

ubuntu advisories UBUNTU-CVE-2022-49001

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-49001 updated cvss 7.0

kernel: riscv: fix race when vmap stack overflow

  • Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
2 y ago

Exploit prediction

0.19% chance of exploitation in the next 30 days, higher than 8% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 7.0 CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD 3.1 7.0 CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

  • Linux Linux

Classification

Weakness
  • CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization
Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.