Bug 2559622 (CVE-2026-98951) - CVE-2026-98951 kernel: riscv: ptrace: Zero-initialize regset buffers before copyin
Summary: CVE-2026-98951 kernel: riscv: ptrace: Zero-initialize regset buffers before c...
Keywords:
Status: NEW
Alias: CVE-2026-98951
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-10-23 12:43 UTC by OSIDB Bzimport
Modified: 2026-10-27 13:13 UTC (History)
17 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-10-23 12:43:24 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.