{"id":"CVE-2026-46171","aliases":["CVE-2026-46171"],"related":[],"kind":"vulnerability","state":"published","title":"riscv: kvm: fix vector context allocation leak","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nriscv: kvm: fix vector context allocation leak\n\nWhen the second kzalloc (host_context.vector.datap) fails in\nkvm_riscv_vcpu_alloc_vector_context, the first allocation\n(guest_context.vector.datap) is leaked. Free it before returning.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nriscv: kvm: fix vector context allocation leak\n\nWhen the second kzalloc (host_context.vector.datap) fails in\nkvm_riscv_vcpu_alloc_vector_context, the first allocation\n(guest_context.vector.datap) is leaked. Free it before returning.","source":"cvelist"}],"published":"2026-05-28T09:36:25.966Z","modified":"2026-10-21T13:19:04.527Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"0f4b82579716b12bb88257bd7ea80f25c791fb2c","fixed":"8f3a5dc4055e1001b44ca8ae2bd3eb1d07782049","status":"affected"},{"type":"git","introduced":"0f4b82579716b12bb88257bd7ea80f25c791fb2c","fixed":"70ecebe7c58ce01f8da3f513eafb51bd147b1e63","status":"affected"},{"type":"git","introduced":"0f4b82579716b12bb88257bd7ea80f25c791fb2c","fixed":"bd62c0f61bc722a097417401030c596cea8e21aa","status":"affected"},{"type":"git","introduced":"0f4b82579716b12bb88257bd7ea80f25c791fb2c","fixed":"1d57ab45ec5c0e22789de793bcf2a31ad6fb7d98","status":"affected"},{"type":"git","introduced":"0f4b82579716b12bb88257bd7ea80f25c791fb2c","fixed":"b7c958d7c1eb1cb9b2be7b5ee4129fcd66cec978","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.5","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.5","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.114","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.30","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.0.7","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.5","fixed":"6.18.30"},{"status":"affected","introduced":"6.19","fixed":"7.0.7"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/8f3a5dc4055e1001b44ca8ae2bd3eb1d07782049","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/70ecebe7c58ce01f8da3f513eafb51bd147b1e63","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bd62c0f61bc722a097417401030c596cea8e21aa","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1d57ab45ec5c0e22789de793bcf2a31ad6fb7d98","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b7c958d7c1eb1cb9b2be7b5ee4129fcd66cec978","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-46171","url":"https://www.cve.org/CVERecord?id=CVE-2026-46171","licence":"CVE Terms of Use","modified":"2026-10-21T12:41:22.651Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-46171","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46171","licence":"Public domain","modified":"2026-10-21T13:19:04.527Z"}],"updatedAt":"2026-11-25T22:59:22.836Z","epss":{"score":0.00128,"percentile":0.02636,"date":"2026-12-01T12:00:22.000Z"}}