CVE-2026-138870
JSON

7.0high

riscv: cfi: Bounds check restore token before swap

Severity
7.0high CVSS:3.1 by Linux
Exploit likelihood
0.15% (higher than 4% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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

Product or packageVersionsReported by
Linux Linuxfrom 66c9c713de597f9b40a319ebda4d3466ce2cdff0 before 34dbcdd0562461805f2fd276593517794b41e487, from 66c9c713de597f9b40a319ebda4d3466ce2cdff0 before df333b72c0e14d6cffec72ce9a00503f12d1e28d, 7.0
Not affected: before 7.0, from 7.3.4 up to 7.3.*, from 7.4-rc1 up to *
CVE List

References

Sources

SourceRecordLicence
CVE ListCVE-2026-138870 changed 2026-12-01CVE Terms of Use
NVDCVE-2026-138870 changed 2026-12-01Public domain