CVE-2026-138870

CVE-2026-138870CVE-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.

Scoring

Last modified2026-11-30
Sourced from NVD. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.