CVE-2026-98951

riscv: ptrace: Zero-initialize regset buffers before copyin

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.

Key facts

Published
23 Oct 2026
Last changed
23 Oct 2026
Assigned by
Linux
EPSS
0.156% likely to be exploited in the next 30 days, higher than 4.804% of CVEs (scores for 17 Nov 2026)

Historical context and remediation

This reference retains the original CVE publication date. A recent record update does not mean a new attack occurred.

No separately sourced impact summary is available on this page yet. Consult the description, version data and dated exploitation evidence.

No explicit remediation statement is available on this page yet. Consult the original record and vendor references before choosing a fix.

Version statuses below come from the CNA. An “unaffected” version is not necessarily a currently supported release or proof of a patch date. EPSS is a dated risk estimate, not a count of historical attacks.

Read the original CVE record.

Affected products

VendorProductVersions
LinuxLinux
  • Default status: unaffected
  • 9300f00439743c4a34d735e1a27118eb68a1504e up to but excluding 89fc70d73f4ac8781f9e15edd1dbc6b6088453b3 (affected)
  • 9300f00439743c4a34d735e1a27118eb68a1504e up to but excluding 59052a88ba5fe4a7bb34b3a0a42aa5d453d3bb97 (affected)
  • f2a9cd050901c4734bc175294c3bd6a40a1a9e99 (affected)
  • 6.5.3 up to but excluding 6.6 (affected)
LinuxLinux
  • Default status: affected
  • 6.6 (affected)
  • 0 up to but excluding 6.6 (unaffected)
  • 7.2.11 up to and including 7.2.* (unaffected)
  • 7.3 up to and including * (unaffected)

Timeline

  1. 23 Oct 2026 Published

References