CVE-2025-38435Published Jul 25, 2025 · Jul 25Updated Oct 28
riscv: vector: Fix context save/restore with xtheadvector
Linux
High7.8Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
riscv: vector: Fix context save/restore with xtheadvector
Previously only v0-v7 were correctly saved/restored, and the context of v8-v31 are damanged. Correctly save/restore v8-v31 to avoid breaking userspace.
From the CVE record · Linux
The Linux kernel’s RISC-V vector context save/restore code mishandles registers v8–v31 when using xtheadvector, potentially corrupting userspace state. The input does not describe an attacker action or specify network access, authentication, or user-interaction requirements.
Engineers running Linux on RISC-V systems using xtheadvector should check their kernels; affected versions are not specified.