Unrated severityNVD Advisory· Published Nov 30, 2026
CVE-2026-138870
CVE-2026-138870
Description
In the Linux kernel, the following vulnerability has been resolved:
riscv: cfi: Bounds check restore token before swap
Currently the user-provided shadow stack restore token is not checked before being used as the address in ssamoswap.d. While an invalid restore token will be caught and raise SIGSEGV, this happens after writing 4 bytes of zeroes anywhere in the address space. Check that the restore token is at least a valid user address before the swap to ensure we do not scribble over kernel memory.
Affected products
1Patches
Vulnerability mechanics
References
2News mentions
0No linked articles in our index yet.