← CVE Intelligence

CVE-2026-46171

riscv: kvm: fix vector context allocation leak PUBLISHED

Description (CNA)

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 (CNA)

Vendor / productVersions
Linux / Linuxaffected 0f4b82579716b12bb88257bd7ea80f25c791fb2c before 8f3a5dc4055e1001b44ca8ae2bd3eb1d07782049; affected 0f4b82579716b12bb88257bd7ea80f25c791fb2c before 70ecebe7c58ce01f8da3f513eafb51bd147b1e63; affected 0f4b82579716b12bb88257bd7ea80f25c791fb2c before bd62c0f61bc722a097417401030c596cea8e21aa; affected 0f4b82579716b12bb88257bd7ea80f25c791fb2c before 1d57ab45ec5c0e22789de793bcf2a31ad6fb7d98; affected 0f4b82579716b12bb88257bd7ea80f25c791fb2c before b7c958d7c1eb1cb9b2be7b5ee4129fcd66cec978
Linux / Linuxaffected 6.5; unaffected 0 before 6.5; unaffected 6.6.160 through 6.6.*; unaffected 6.12.114 through 6.12.*; unaffected 6.18.30 through 6.18.*; unaffected 7.0.7 through 7.0.*; unaffected 7.1 through *

CWE

No CWE identifiers supplied.

References