CVE-2025-38435
published high CVSS 3.1 · 7.8riscv: vector: Fix context save/restore with xtheadvector
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxd863910eabaffc68eb28aaf476dd870fc3f7197d to < dd5ceea8d50e9e108a10d1e0d89fa2c9ff442ca2 · d863910eabaffc68eb28aaf476dd870fc3f7197d to < 4262bd0d9cc704ea1365ac00afc1272400c2cbef · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.14 (affected) · 0 to < 6.14 (unaffected · semver) · 6.15.5 through 6.15.* (unaffected · semver) · 6.16 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Ubuntu | noble | linux-aws-6.14 | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-3 |
| Ubuntu | noble | linux-aws-6.14-cloud-tools-6.14.0-1015 | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-3 |
| Ubuntu | noble | linux-aws-6.14-headers-6.14.0-1015 | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-3 |
| Ubuntu | noble | linux-aws-6.14-tools-6.14.0-1015 | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-3 |
Show 92 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | noble | linux-azure-6.14 | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7834-1 |
| Ubuntu | noble | linux-azure-6.14-cloud-tools-6.14.0-1014 | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7834-1 |
| Ubuntu | noble | linux-azure-6.14-headers-6.14.0-1014 | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7834-1 |
| Ubuntu | noble | linux-azure-6.14-tools-6.14.0-1014 | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7834-1 |
| Ubuntu | noble | linux-azure-nvidia-6.14 | Advisory build | 6.14.0-1007.7 | USN-7834-1 |
| Ubuntu | noble | linux-azure-nvidia-6.14-cloud-tools-6.14.0-1007 | Advisory build | 6.14.0-1007.7 | USN-7834-1 |
| Ubuntu | noble | linux-azure-nvidia-6.14-headers-6.14.0-1007 | Advisory build | 6.14.0-1007.7 | USN-7834-1 |
| Ubuntu | noble | linux-azure-nvidia-6.14-tools-6.14.0-1007 | Advisory build | 6.14.0-1007.7 | USN-7834-1 |
| Ubuntu | noble | linux-buildinfo-6.14.0-1007-azure-nvidia | Advisory build | 6.14.0-1007.7 | USN-7834-1 |
| Ubuntu | noble | linux-buildinfo-6.14.0-1014-azure | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7834-1 |
| Ubuntu | noble | linux-buildinfo-6.14.0-1014-oem | Advisory build | 6.14.0-1014.14 | USN-7833-1 |
| Ubuntu | noble | linux-buildinfo-6.14.0-1014-realtime | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7833-2 |
| Ubuntu | noble | linux-buildinfo-6.14.0-1015-aws | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-3 |
| Ubuntu | noble | linux-buildinfo-6.14.0-1015-aws-64k | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-3 |
| Ubuntu | noble | linux-buildinfo-6.14.0-1015-oracle | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-1 |
| Ubuntu | noble | linux-buildinfo-6.14.0-1015-oracle-64k | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-1 |
| Ubuntu | noble | linux-buildinfo-6.14.0-1018-gcp | Advisory build | 6.14.0-1018.19~24.04.1 | USN-7833-4 |
| Ubuntu | noble | linux-buildinfo-6.14.0-1018-gcp-64k | Advisory build | 6.14.0-1018.19~24.04.1 | USN-7833-4 |
| Ubuntu | noble | linux-cloud-tools-6.14.0-1007-azure-nvidia | Advisory build | 6.14.0-1007.7 | USN-7834-1 |
| Ubuntu | noble | linux-cloud-tools-6.14.0-1014-azure | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7834-1 |
| Ubuntu | noble | linux-cloud-tools-6.14.0-1014-realtime | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7833-2 |
| Ubuntu | noble | linux-cloud-tools-6.14.0-1015-aws | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-3 |
| Ubuntu | noble | linux-cloud-tools-6.14.0-1015-aws-64k | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-3 |
| Ubuntu | noble | linux-gcp-6.14 | Advisory build | 6.14.0-1018.19~24.04.1 | USN-7833-4 |
| Ubuntu | noble | linux-gcp-6.14-headers-6.14.0-1018 | Advisory build | 6.14.0-1018.19~24.04.1 | USN-7833-4 |
| Ubuntu | noble | linux-gcp-6.14-tools-6.14.0-1018 | Advisory build | 6.14.0-1018.19~24.04.1 | USN-7833-4 |
| Ubuntu | noble | linux-headers-6.14.0-1007-azure-nvidia | Advisory build | 6.14.0-1007.7 | USN-7834-1 |
| Ubuntu | noble | linux-headers-6.14.0-1014-azure | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7834-1 |
| Ubuntu | noble | linux-headers-6.14.0-1014-oem | Advisory build | 6.14.0-1014.14 | USN-7833-1 |
| Ubuntu | noble | linux-headers-6.14.0-1014-realtime | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7833-2 |
| Ubuntu | noble | linux-headers-6.14.0-1015-aws | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-3 |
| Ubuntu | noble | linux-headers-6.14.0-1015-aws-64k | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-3 |
| Ubuntu | noble | linux-headers-6.14.0-1015-oracle | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-1 |
| Ubuntu | noble | linux-headers-6.14.0-1015-oracle-64k | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-1 |
| Ubuntu | noble | linux-headers-6.14.0-1018-gcp | Advisory build | 6.14.0-1018.19~24.04.1 | USN-7833-4 |
| Ubuntu | noble | linux-headers-6.14.0-1018-gcp-64k | Advisory build | 6.14.0-1018.19~24.04.1 | USN-7833-4 |
| Ubuntu | noble | linux-image-unsigned-6.14.0-1007-azure-nvidia | Advisory build | 6.14.0-1007.7 | USN-7834-1 |
| Ubuntu | noble | linux-image-unsigned-6.14.0-1014-azure | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7834-1 |
| Ubuntu | noble | linux-image-unsigned-6.14.0-1014-oem | Advisory build | 6.14.0-1014.14 | USN-7833-1 |
| Ubuntu | noble | linux-image-unsigned-6.14.0-1014-realtime | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7833-2 |
| Ubuntu | noble | linux-image-unsigned-6.14.0-1015-aws | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-3 |
| Ubuntu | noble | linux-image-unsigned-6.14.0-1015-aws-64k | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-3 |
| Ubuntu | noble | linux-image-unsigned-6.14.0-1015-oracle | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-1 |
| Ubuntu | noble | linux-image-unsigned-6.14.0-1015-oracle-64k | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-1 |
| Ubuntu | noble | linux-image-unsigned-6.14.0-1018-gcp | Advisory build | 6.14.0-1018.19~24.04.1 | USN-7833-4 |
| Ubuntu | noble | linux-image-unsigned-6.14.0-1018-gcp-64k | Advisory build | 6.14.0-1018.19~24.04.1 | USN-7833-4 |
| Ubuntu | noble | linux-lib-rust-6.14.0-1018-gcp | Advisory build | 6.14.0-1018.19~24.04.1 | USN-7833-4 |
| Ubuntu | noble | linux-modules-6.14.0-1007-azure-nvidia | Advisory build | 6.14.0-1007.7 | USN-7834-1 |
| Ubuntu | noble | linux-modules-6.14.0-1014-azure | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7834-1 |
| Ubuntu | noble | linux-modules-6.14.0-1014-oem | Advisory build | 6.14.0-1014.14 | USN-7833-1 |
| Ubuntu | noble | linux-modules-6.14.0-1014-realtime | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7833-2 |
| Ubuntu | noble | linux-modules-6.14.0-1015-aws | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-3 |
| Ubuntu | noble | linux-modules-6.14.0-1015-aws-64k | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-3 |
| Ubuntu | noble | linux-modules-6.14.0-1015-oracle | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-1 |
| Ubuntu | noble | linux-modules-6.14.0-1015-oracle-64k | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-1 |
| Ubuntu | noble | linux-modules-6.14.0-1018-gcp | Advisory build | 6.14.0-1018.19~24.04.1 | USN-7833-4 |
| Ubuntu | noble | linux-modules-6.14.0-1018-gcp-64k | Advisory build | 6.14.0-1018.19~24.04.1 | USN-7833-4 |
| Ubuntu | noble | linux-modules-extra-6.14.0-1007-azure-nvidia | Advisory build | 6.14.0-1007.7 | USN-7834-1 |
| Ubuntu | noble | linux-modules-extra-6.14.0-1014-azure | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7834-1 |
| Ubuntu | noble | linux-modules-extra-6.14.0-1014-realtime | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7833-2 |
| Ubuntu | noble | linux-modules-extra-6.14.0-1015-aws | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-3 |
| Ubuntu | noble | linux-modules-extra-6.14.0-1015-aws-64k | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-3 |
| Ubuntu | noble | linux-modules-extra-6.14.0-1015-oracle | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-1 |
| Ubuntu | noble | linux-modules-extra-6.14.0-1015-oracle-64k | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-1 |
| Ubuntu | noble | linux-modules-extra-6.14.0-1018-gcp | Advisory build | 6.14.0-1018.19~24.04.1 | USN-7833-4 |
| Ubuntu | noble | linux-modules-extra-6.14.0-1018-gcp-64k | Advisory build | 6.14.0-1018.19~24.04.1 | USN-7833-4 |
| Ubuntu | noble | linux-modules-ipu6-6.14.0-1014-oem | Advisory build | 6.14.0-1014.14 | USN-7833-1 |
| Ubuntu | noble | linux-modules-ipu7-6.14.0-1014-oem | Advisory build | 6.14.0-1014.14 | USN-7833-1 |
| Ubuntu | noble | linux-modules-iwlwifi-6.14.0-1014-oem | Advisory build | 6.14.0-1014.14 | USN-7833-1 |
| Ubuntu | noble | linux-modules-iwlwifi-6.14.0-1014-realtime | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7833-2 |
| Ubuntu | noble | linux-modules-usbio-6.14.0-1014-oem | Advisory build | 6.14.0-1014.14 | USN-7833-1 |
| Ubuntu | noble | linux-modules-vision-6.14.0-1014-oem | Advisory build | 6.14.0-1014.14 | USN-7833-1 |
| Ubuntu | noble | linux-oem-6.14 | Advisory build | 6.14.0-1014.14 | USN-7833-1 |
| Ubuntu | noble | linux-oem-6.14-headers-6.14.0-1014 | Advisory build | 6.14.0-1014.14 | USN-7833-1 |
| Ubuntu | noble | linux-oem-6.14-tools-6.14.0-1014 | Advisory build | 6.14.0-1014.14 | USN-7833-1 |
| Ubuntu | noble | linux-oracle-6.14 | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-1 |
| Ubuntu | noble | linux-oracle-6.14-headers-6.14.0-1015 | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-1 |
| Ubuntu | noble | linux-oracle-6.14-tools-6.14.0-1015 | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-1 |
| Ubuntu | noble | linux-realtime-6.14 | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7833-2 |
| Ubuntu | noble | linux-realtime-6.14-cloud-tools-6.14.0-1014 | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7833-2 |
| Ubuntu | noble | linux-realtime-6.14-headers-6.14.0-1014 | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7833-2 |
| Ubuntu | noble | linux-realtime-6.14-tools-6.14.0-1014 | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7833-2 |
| Ubuntu | noble | linux-tools-6.14.0-1007-azure-nvidia | Advisory build | 6.14.0-1007.7 | USN-7834-1 |
| Ubuntu | noble | linux-tools-6.14.0-1014-azure | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7834-1 |
| Ubuntu | noble | linux-tools-6.14.0-1014-oem | Advisory build | 6.14.0-1014.14 | USN-7833-1 |
| Ubuntu | noble | linux-tools-6.14.0-1014-realtime | Advisory build | 6.14.0-1014.14~24.04.1 | USN-7833-2 |
| Ubuntu | noble | linux-tools-6.14.0-1015-aws | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-3 |
| Ubuntu | noble | linux-tools-6.14.0-1015-aws-64k | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-3 |
| Ubuntu | noble | linux-tools-6.14.0-1015-oracle | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-1 |
| Ubuntu | noble | linux-tools-6.14.0-1015-oracle-64k | Advisory build | 6.14.0-1015.15~24.04.1 | USN-7833-1 |
| Ubuntu | noble | linux-tools-6.14.0-1018-gcp | Advisory build | 6.14.0-1018.19~24.04.1 | USN-7833-4 |
| Ubuntu | noble | linux-tools-6.14.0-1018-gcp-64k | Advisory build | 6.14.0-1018.19~24.04.1 | USN-7833-4 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - Exploitation requires executing instructions on the affected hart to read and plant vector register values across a context switch; there is no remote or network-reachable path to the vector save/restore code. AC:L - On T-Head xtheadvector hardware the omission of v8-v31 from restore is unconditional and deterministic, so the attacker simply spins reading v8-v31 after each scheduling event; no race, memory layout, or uncontrolled state is involved, and the enabling config is default-y. PR:L - Any unprivileged local task can use vector (CONFIG_RISCV_ISA_V_DEFAULT_ENABLE=y, and riscv_v_vstate_ctrl_set_current() unconditionally allows PR_RISCV_V_VSTATE_CTRL_ON), so only a basic user account is needed. UI:N - The leak and corruption occur automatically on every context switch and signal return; no victim action beyond normal execution is required. S:U - The vulnerable code and the impacted processes are all governed by the same kernel security authority; no VM, IOMMU, or sandbox boundary is crossed, and guest vector is never enabled on xtheadvector hosts. C:H - v8-v31 are never restored, so an attacker task inherits 24 registers of another process's live vector state and can sample this continuously across context switches, harvesting arbitrary secret data that transits vectorized memcpy/string/crypto routines in privileged processes. I:H - The attacker can leave arbitrary chosen values in v8-v31 that a victim process then computes with, and for indexed/gather vector loads and stores those attacker-controlled values become addresses inside the victim, giving attacker-directed corruption of another process's data. A:H - Every vector-using process on the machine is deterministically resumed with damaged v8-v31, and an attacker can deliberately poison those registers so victims fault on indexed vector accesses, reliably crashing arbitrary processes including system daemons.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | d863910eabaffc68eb28aaf476dd870fc3f7197d to < dd5ceea8d50e9e108a10d1e0d89fa2c9ff442ca2 (affected · git)d863910eabaffc68eb28aaf476dd870fc3f7197d to < 4262bd0d9cc704ea1365ac00afc1272400c2cbef (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.14 (affected)0 to < 6.14 (unaffected · semver)6.15.5 through 6.15.* (unaffected · semver)6.16 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
riscv: vector: Fix context save/restore with xtheadvector
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 2ea1f620e602c4883f1b9cc196eae37b730ab649362ec8e4df9d41b84e276bc1
- Ingested
- 23 Sep 2026, 08:46:47 UTC
- Source record
- Official CVE record