CVE-2026-89513
Last modified
CVE-2026-89513 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: RISC-V: KVM: Fix PMU event info array size overflow SBI PMU EVENT_GET_INFO stores guest-controlled num_events * sizeof(*einfo) in a 32-bit integer. On RV64, num_events = 0x10000001 makes 0x100000010 truncate to 16. EPSS estimates a 0.15% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: RISC-V: KVM: Fix PMU event info array size overflow SBI PMU EVENT_GET_INFO stores guest-controlled num_events * sizeof(*einfo) in a 32-bit integer. On RV64, num_events = 0x10000001 makes 0x100000010 truncate to 16. KVM then allocates one entry but loops over the original num_events, causing out-of-bounds reads and writes. A nested guest triggered: BUG: KASAN: slab-out-of-bounds in kvm_riscv_vcpu_pmu_event_info+0xa4/0x142 Read of size 4 at addr ff600000074d46b0 by task init/1 Call Trace: [<ffffffff8006471c>] kvm_riscv_vcpu_pmu_event_info+0xa4/0x142 [<ffffffff800690c0>] kvm_sbi_ext_pmu_handler+0xca/0x268 [<ffffffff8006779e>] kvm_riscv_vcpu_sbi_ecall+0xec/0x1e6 [<ffffffff8006008c>] kvm_riscv_vcpu_exit+0x48c/0x540 [<ffffffff8005ea0a>] kvm_arch_vcpu_ioctl_run+0x37e/0xc80 Allocated by task 1: __kmalloc_noprof+0x19e/0x4b0 kvm_riscv_vcpu_pmu_event_info+0x72/0x142 kvm_sbi_ext_pmu_handler+0xca/0x268 kvm_riscv_vcpu_sbi_ecall+0xec/0x1e6 kvm_riscv_vcpu_exit+0x48c/0x540 kvm_arch_vcpu_ioctl_run+0x37e/0xc80 The buggy address is located 0 bytes to the right of allocated 16-byte region [ff600000074d46a0, ff600000074d46b0) Store the shared-memory size in size_t and reject multiplication overflow. Allocate the guest-driven array with GFP_KERNEL_ACCOUNT so it is charged to kmemcg, and use __GFP_NOWARN to suppress allocation failure warnings. Use kvcalloc() to allow vmalloc fallback and an unsigned long loop index to match num_events.
Metrics
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= e309fd113b9f6c34672a487be08fecb7e12e7e29, < 82088f88c96b99c27a974d09b02c2b133262fadf; >= e309fd113b9f6c34672a487be08fecb7e12e7e29, < 735bc20c24187ca419c9d5e63860a54b91be34bd |
| Linux | Linux | 6.18 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-89513?
How severe is CVE-2026-89513?
How do I fix CVE-2026-89513?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-89508In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-89509In the Linux kernel, the following vulnerability has been re…
- CVE-2026-8951Spoofing issue in the Toolbar component in Firefox for Andro…6.5
- CVE-2026-89510In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-89511In the Linux kernel, the following vulnerability has been re…7.5
- CVE-2026-89512In the Linux kernel, the following vulnerability has been re…
- CVE-2026-89514In the Linux kernel, the following vulnerability has been re…
- CVE-2026-89515In the Linux kernel, the following vulnerability has been re…
- CVE-2026-89516In the Linux kernel, the following vulnerability has been re…
- CVE-2026-89517In the Linux kernel, the following vulnerability has been re…
- CVE-2026-89518In the Linux kernel, the following vulnerability has been re…
- CVE-2026-89519In the Linux kernel, the following vulnerability has been re…
Are you affected by CVE-2026-89513?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
