CVE-2026-138870

Source
https://cve.org/CVERecord?id=CVE-2026-138870
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138870.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-138870
Downstream
Published
2026-11-30T13:25:45Z
Modified
2026-12-01T07:00:32Z
Severity
  • 7.0 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
riscv: cfi: Bounds check restore token before swap
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138870.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
66c9c713de597f9b40a319ebda4d3466ce2cdff0
Fixed
34dbcdd0562461805f2fd276593517794b41e487
Fixed
df333b72c0e14d6cffec72ce9a00503f12d1e28d

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138870.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
7.0.0
Fixed
7.3.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138870.json"