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.
Published: 2026-10-23
Score: 3.3 Low
EPSS: < 1% Very Low
KEV: No
Impact: Privilege escalation via corrupted process state
Action: Apply patch
AI Analysis

Impact

In the Linux kernel’s RISC‑V ptrace implementation, the routine that copies user‑supplied register data only writes the requested amount of bytes, leaving the remaining buffer space uninitialized. A short PTRACE_SETREGSET payload leaves garbage in the kernel buffer; this garbage is then validated and copied into the target process’s architectural state, including the shadow stack pointer. As a result, an attacker can alter the process’s execution context, potentially hijacking control flow or leaking privileged information.

Affected Systems

All Linux kernel builds that include the RISC‑V arch ptrace code are susceptible. The patch resides in the mainline kernel, so any distribution shipping an upstream kernel with RISC‑V support prior to the commit referenced in the CVE is at risk. No specific version range is listed, but all kernels before the fix should be considered vulnerable.

Risk and Exploitability

The CVSS score of 3.3 indicates low overall severity, yet the flaw operates in kernel mode and can modify sensitive context. Exploitation requires the ability to issue a PTRACE_SETREGSET call on a target process; in practice, the likely attack vector is a local user who can send such a request to a traceable process. The EPSS score is below 1% and the vulnerability is not listed in CISA KEV, implying public exploitation is unlikely at present. Nonetheless, the potential for privilege escalation on RISC‑V systems warrants early patching or mitigation.

Generated by OpenCVE AI on October 29, 2026 at 21:59 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the kernel to a version that contains the RISC‑V ptrace patch
  • If upgrading immediately is not possible, restrict or disable ptrace usage for vulnerable processes via kernel configuration or Seccomp filters
  • Monitor for abnormal PTRACE_SETREGSET activity and investigate suspicious calls

Generated by OpenCVE AI on October 29, 2026 at 21:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 29 Oct 2026 20:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-254

Thu, 29 Oct 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-908
References
Metrics threat_severity

None

cvssV3_1

{'score': 3.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N'}

threat_severity

Low


Fri, 23 Oct 2026 17:00:00 +0000

Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux

Fri, 23 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-254

Fri, 23 Oct 2026 12:30:00 +0000

Type Values Removed Values Added
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.
Title riscv: ptrace: Zero-initialize regset buffers before copyin
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-23T12:19:10.747Z

Reserved: 2026-09-25T10:25:14.382Z

Link: CVE-2026-98951

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-23T13:17:16.267

Modified: 2026-10-23T13:17:16.267

Link: CVE-2026-98951

cve-icon Redhat

Severity : Low

Publid Date: 2026-10-23T00:00:00Z

Links: CVE-2026-98951 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-29T22:00:09Z

Weaknesses
  • CWE-908

    Use of Uninitialized Resource