# CVE-2025-38435: riscv: vector: Fix context save/restore with xtheadvector

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 7% of CVEs (2026-12-01)
- Published: 2025-07-25T14:32:09.136Z
- Modified: 2026-08-05T12:01:52.506Z
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from d863910eabaffc68eb28aaf476dd870fc3f7197d before dd5ceea8d50e9e108a10d1e0d89fa2c9ff442ca2; from d863910eabaffc68eb28aaf476dd870fc3f7197d before 4262bd0d9cc704ea1365ac00afc1272400c2cbef; 6.14 (not affected: before 6.14; from 6.15.5 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 6.14 before 6.15.5; 6.16

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/dd5ceea8d50e9e108a10d1e0d89fa2c9ff442ca2> (patch)
- <https://git.kernel.org/stable/c/4262bd0d9cc704ea1365ac00afc1272400c2cbef> (patch)

## Sources

- CVE List: [CVE-2025-38435](https://www.cve.org/CVERecord?id=CVE-2025-38435), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2025-38435](https://nvd.nist.gov/vuln/detail/CVE-2025-38435), Public domain, modified 2026-07-30

---

Page: https://cve.day/CVE-2025-38435 · Whole record: https://cve.day/CVE-2025-38435.json · Rebuilt by cve.day 2026-11-25T22:59:01.711Z
