CVE-2026-98951

Source
https://cve.org/CVERecord?id=CVE-2026-98951
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98951.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-98951
Downstream
Published
2026-10-23T12:19:10Z
Modified
2026-10-28T02:31:14Z
Summary
riscv: ptrace: Zero-initialize regset buffers before copyin
Details

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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98951.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
9300f00439743c4a34d735e1a27118eb68a1504e
Fixed
89fc70d73f4ac8781f9e15edd1dbc6b6088453b3
Fixed
59052a88ba5fe4a7bb34b3a0a42aa5d453d3bb97
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6.5.3
Fixed
6.6
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f2a9cd050901c4734bc175294c3bd6a40a1a9e99

Affected versions

v6.*
v6.5.10
v6.5.11
v6.5.12
v6.5.13
v6.5.3
v6.5.4
v6.5.5
v6.5.6
v6.5.7
v6.5.8
v6.5.9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98951.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.6.0
Fixed
7.2.11

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98951.json"