riscv: kvm: fix vector context allocation leak
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.6.160, 6.12.114, 6.18.30, 7.0.7
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 0f4b82579716b12bb88257bd7ea80f25c791fb2c · fixed in 8f3a5dc4055e1001b44ca8ae2bd3eb1d07782049; From 0f4b82579716b12bb88257bd7ea80f25c791fb2c · fixed in 70ecebe7c58ce01f8da3f513eafb51bd147b1e63; From 0f4b82579716b12bb88257bd7ea80f25c791fb2c · fixed in bd62c0f61bc722a097417401030c596cea8e21aa; From 0f4b82579716b12bb88257bd7ea80f25c791fb2c · fixed in 1d57ab45ec5c0e22789de793bcf2a31ad6fb7d98; From 0f4b82579716b12bb88257bd7ea80f25c791fb2c · fixed in b7c958d7c1eb1cb9b2be7b5ee4129fcd66cec978
- Linux Linux
6.5
- KernelLinux
From 6.5.0 · fixed in 6.6.160; From 6.7.0 · fixed in 6.12.114; From 6.13.0 · fixed in 6.18.30; From 6.19.0 · fixed in 7.0.7