CVE-2026-98951EUVD-2026-108925
riscv: ptrace: Zero-initialize regset buffers before copyin
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.6, 7.2.11
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: riscv: ptrace: Zero-initialize regset buffers before copyin user_regset_copyin() only copies `count` bytes, so a PTRACE_SETREGSET request with a short iov_len leaves the rest of the stack buffer uninitialized. In riscv_vr_set() that garbage is validated and copied into the target's vstate, and in riscv_cfi_set() it can be stored as the target's shadow stack pointer. Zero both buffers, as the get path already does.
Timeline
- CVE published
- First seen by cve.now
Affected versions
- Linux Linux
From 9300f00439743c4a34d735e1a27118eb68a1504e · fixed in 89fc70d73f4ac8781f9e15edd1dbc6b6088453b3; From 9300f00439743c4a34d735e1a27118eb68a1504e · fixed in 59052a88ba5fe4a7bb34b3a0a42aa5d453d3bb97; From 6.5.3 · fixed in 6.6
- Linux Linux
6.6
- KernelLinux
From 6.6.0 · fixed in 7.2.11