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 and versions
Linux Linux66c9c713de597f9b40a319ebda4d3466ce2cdff0 – < 34dbcdd0562461805f2fd276593517794b41e487 · 66c9c713de597f9b40a319ebda4d3466ce2cdff0 – < df333b72c0e14d6cffec72ce9a00503f12d1e28dFixed in: 34dbcdd0562461805f2fd276593517794b41e487 · df333b72c0e14d6cffec72ce9a00503f12d1e28d
Linux Linux7.0Fixed in: 7.3.4 · 7.4-rc1
CVSS vector, explained
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- Local
- Attack complexity
- High
- Privileges required
- Regular user
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- High impact
- Integrity
- High impact
- Availability
- High impact
References
- git.kernel.org/stable/c/34dbcdd0562461805f2fd276593517794b41e487
- git.kernel.org/stable/c/df333b72c0e14d6cffec72ce9a00503f12d1e28d
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.