{"id":"CVE-2022-49001","published":"2024-10-21T20:06:15Z","modified":"2026-08-05T08:53:23Z","title":"riscv: fix race when vmap stack overflow","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nriscv: fix race when vmap stack overflow\n\nCurrently, when detecting vmap stack overflow, riscv firstly switches\nto the so called shadow stack, then use this shadow stack to call the\nget_overflow_stack() to get the overflow stack. However, there's\na race here if two or more harts use the same shadow stack at the same\ntime.\n\nTo solve this race, we introduce spin_shadow_stack atomic var, which\nwill be swap between its own address and 0 in atomic way, when the\nvar is set, it means the shadow_stack is being used; when the var\nis cleared, it means the shadow_stack isn't being used.\n\n[Palmer: Add AQ to the swap, and also some comments.]","provenance":"source","from":"CVE.org"},"cvss":{"score":7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00232,"percentile":0.08475,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/ac00301adb19df54f2eae1efc4bad7447c0156ce","tags":[]},{"url":"https://git.kernel.org/stable/c/879fabc5a95401d9bce357e4b1d24ae4a360a81f","tags":[]},{"url":"https://git.kernel.org/stable/c/7e1864332fbc1b993659eab7974da9fe8bf8c128","tags":[]}],"priority":{"score":6.6,"factors":[{"name":"EPSS percentile","points":1.7},{"name":"CVSS severity","points":4.9}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 31da94c25aea835ceac00575a9fd206c5a833fed, < ac00301adb19df54f2eae1efc4bad7447c0156ce",">= 31da94c25aea835ceac00575a9fd206c5a833fed, < 879fabc5a95401d9bce357e4b1d24ae4a360a81f",">= 31da94c25aea835ceac00575a9fd206c5a833fed, < 7e1864332fbc1b993659eab7974da9fe8bf8c128"]},{"vendor":"Linux","product":"Linux","versions":["5.14"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-10-22T13:15:10.722004Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-53885","exploited":false,"provenance":"source"}}