Description
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.
Published: 2026-05-28
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The flaw occurs in the RISC‑V KVM implementation within the Linux kernel. When the second memory allocation fails during VCPU vector context creation, a previously allocated memory block is not freed. This residual allocation grows over time and can consume kernel memory, potentially leading to resource exhaustion or a denial‑of‑service condition for privileged users. The weakness is a memory leak and an unreleased resource, classified under CWE‑401 and CWE‑772.

Affected Systems

The vulnerability affects the Linux kernel on RISC‑V based systems that use KVM. No specific version range is given, but any kernel build containing the unpatched vector context allocation code is susceptible. The CPE string references generic linux_kernel, indicating that all variants running on RISC‑V with KVM are at risk until the fix is applied.

Risk and Exploitability

Exploitation requires privileged access to the kernel, as the trigger occurs during VCPU allocation. The EPSS score of < 1% indicates a very low probability of exploitation, but the vulnerability is still exploitable under the right circumstances. The CVSS score of 5.5 indicates a moderate severity rating. The vulnerability is not catalogued in CISA KEV. Given the potential for gradual memory growth, an attacker could repeatedly trigger allocation failures to deplete kernel memory, possibly causing system instability or a crash. Without a public exploit, the risk is moderate to high, depending on the frequency of allocation failures and the overall memory pressure of the host.

Generated by OpenCVE AI on June 11, 2026 at 19:34 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a patched version that includes the RISC‑V KVM vector context leak fix as referenced in the commit patches.
  • If an immediate kernel upgrade is not possible, disable or limit the use of vector context allocation for RISC‑V VCPUs, or reduce the number of VCPUs allocated per virtual machine to mitigate the impact.
  • Monitor kernel memory usage and kernel logs for signs of out‑of‑memory conditions or allocation failures that may indicate the leak is still present.

Generated by OpenCVE AI on June 11, 2026 at 19:34 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 11 Jun 2026 12:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}


Fri, 29 May 2026 00:15:00 +0000


Thu, 28 May 2026 13:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-401

Thu, 28 May 2026 10:15:00 +0000

Type Values Removed Values Added
Description 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.
Title riscv: kvm: fix vector context allocation leak
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-06-14T17:59:56.976Z

Reserved: 2026-05-13T15:03:33.103Z

Link: CVE-2026-46171

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Analyzed

Published: 2026-05-28T10:16:32.740

Modified: 2026-06-11T12:19:22.343

Link: CVE-2026-46171

cve-icon Redhat

Severity :

Publid Date: 2026-05-28T00:00:00Z

Links: CVE-2026-46171 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-06-11T19:45:37Z

Weaknesses
  • CWE-401

    Missing Release of Memory after Effective Lifetime

  • CWE-772

    Missing Release of Resource after Effective Lifetime