{"id":"CVE-2026-138870","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-11-30T14:17:43.730","lastModified":"2026-12-01T06:17:29.330","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nriscv: cfi: Bounds check restore token before swap\n\nCurrently the user-provided shadow stack restore token is not checked\nbefore being used as the address in ssamoswap.d. While an invalid\nrestore token will be caught and raise SIGSEGV, this happens after\nwriting 4 bytes of zeroes anywhere in the address space. Check that the\nrestore token is at least a valid user address before the swap to ensure\nwe do not scribble over kernel memory."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["arch/riscv/kernel/usercfi.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"66c9c713de597f9b40a319ebda4d3466ce2cdff0","lessThan":"34dbcdd0562461805f2fd276593517794b41e487","versionType":"git","status":"affected"},{"version":"66c9c713de597f9b40a319ebda4d3466ce2cdff0","lessThan":"df333b72c0e14d6cffec72ce9a00503f12d1e28d","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["arch/riscv/kernel/usercfi.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"7.0","status":"affected"},{"version":"0","lessThan":"7.0","versionType":"semver","status":"unaffected"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc1","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.0,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.0,"impactScore":5.9}]},"references":[{"url":"https://git.kernel.org/stable/c/34dbcdd0562461805f2fd276593517794b41e487","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/df333b72c0e14d6cffec72ce9a00503f12d1e28d","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}