CVE-2026-46171

published 28 May 2026 · updated 5 Nov 2026

riscv: kvm: fix vector context allocation leak

5.5MediumCVSS 5.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 1d57ab45ec5c0e22789de793bcf2a31ad6fb7d98, Kernel 70ecebe7c58ce01f8da3f513eafb51bd147b1e63, Kernel 8f3a5dc4055e1001b44ca8ae2bd3eb1d07782049 and 2 more.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=6.5, >=0f4b82579716b12bb88257bd7ea80f25c791fb2c <1d57ab45ec5c0e22789de793bcf2a31ad6fb7d98, >=0f4b82579716b12bb88257bd7ea80f25c791fb2c <70ecebe7c58ce01f8da3f513eafb51bd147b1e63, >=0f4b82579716b12bb88257bd7ea80f25c791fb2c <8f3a5dc4055e1001b44ca8ae2bd3eb1d07782049, >=0f4b82579716b12bb88257bd7ea80f25c791fb2c <b7c958d7c1eb1cb9b2be7b5ee4129fcd66cec978, >=0f4b82579716b12bb88257bd7ea80f25c791fb2c <bd62c0f61bc722a097417401030c596cea8e21aa1d57ab45ec5c0e22789de793bcf2a31ad6fb7d98, 70ecebe7c58ce01f8da3f513eafb51bd147b1e63, 8f3a5dc4055e1001b44ca8ae2bd3eb1d07782049, b7c958d7c1eb1cb9b2be7b5ee4129fcd66cec978, bd62c0f61bc722a097417401030c596cea8e21aa

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-46171 severity on Zeptric[![CVE-2026-46171](https://zeptric.io/badge/cve/CVE-2026-46171.svg)](https://zeptric.io/cve/CVE-2026-46171)