Description

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.

Affected products

VendorProductVersions
LinuxLinux9300f00439743c4a34d735e1a27118eb68a1504e to <89fc70d73f4ac8781f9e15edd1dbc6b6088453b3 [affected]; 9300f00439743c4a34d735e1a27118eb68a1504e to <59052a88ba5fe4a7bb34b3a0a42aa5d453d3bb97 [affected]; f2a9cd050901c4734bc175294c3bd6a40a1a9e99 [affected]; 6.5.3 to <6.6 [affected]
LinuxLinux6.6 [affected]; 0 to <6.6 [unaffected]; 7.2.11 to <=7.2.* [unaffected]; 7.3 to <=* [unaffected]

References

Authoritative sources

This page is a snapshot. For the latest enrichment and updates, view the record on CVE.org or the NVD.

Assess this vulnerability

Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.

Browse all CVE security advisories · Symaro cybersecurity services

Generated from the official CVE List on 24 Oct 2026 07:01 UTC.