CVE-2026-46171Published May 28, 2026 · May 28Updated Oct 28
riscv: kvm: fix vector context allocation leak
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
riscv: kvm: fix vector context allocation leak
When the second kzalloc (host_context.vector.datap) fails in kvm_riscv_vcpu_alloc_vector_context, the first allocation (guest_context.vector.datap) is leaked. Free it before returning.
From the CVE record · Linux
The Linux kernel's RISC-V KVM vector context allocation can leak memory if its second allocation fails. The input does not specify how an attacker could trigger the failure, or whether access or user interaction is required.
Engineers running the Linux kernel with RISC-V KVM should check their versions; affected versions are not specified.