riscv: ptrace: Zero-initialize regset buffers before copyin
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 59052a88ba5fe4a7bb34b3a0a42aa5d453d3bb97, Kernel 89fc70d73f4ac8781f9e15edd1dbc6b6088453b3, Kernel 6.6 and 1 more.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =f2a9cd050901c4734bc175294c3bd6a40a1a9e99, >=9300f00439743c4a34d735e1a27118eb68a1504e <59052a88ba5fe4a7bb34b3a0a42aa5d453d3bb97, >=9300f00439743c4a34d735e1a27118eb68a1504e <89fc70d73f4ac8781f9e15edd1dbc6b6088453b3, =6.6, >=6.5.3 <6.6 | 59052a88ba5fe4a7bb34b3a0a42aa5d453d3bb97, 89fc70d73f4ac8781f9e15edd1dbc6b6088453b3, 6.6 |
| linux-kernel: Kernel | >=6.6.0 <7.2.11, >=6.5.3 <6.6 | 7.2.11, 6.6 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket