# CVE-2026-89513: RISC-V: KVM: Fix PMU event info array size overflow

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 4, 2026-11-28)
- **Published:** 2026-09-11T19:43:57.960Z
- **Modified:** 2026-10-19T09:17:45.717Z

## Who should check

- Anyone running Linux \>= e309fd113b9f6c34672a487be08fecb7e12e7e29, \< ddbd71a3780942918a7d116d666313e5b3304d73; \>= e309fd113b9f6c34672a487be08fecb7e12e7e29, \< 82088f88c96b99c27a974d09b02c2b133262fadf; \>= e309fd113b9f6c34672a487be08fecb7e12e7e29, \< 735bc20c24187ca419c9d5e63860a54b91be34bd
- Anyone running Linux 6.18

## 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.

## Affected and fixed versions

- Linux: \>= e309fd113b9f6c34672a487be08fecb7e12e7e29, \< ddbd71a3780942918a7d116d666313e5b3304d73; \>= e309fd113b9f6c34672a487be08fecb7e12e7e29, \< 82088f88c96b99c27a974d09b02c2b133262fadf; \>= e309fd113b9f6c34672a487be08fecb7e12e7e29, \< 735bc20c24187ca419c9d5e63860a54b91be34bd (cvelist)
- Linux: 6.18 (cvelist)

## Mitigation

- Upgrade Linux to 735bc20c24187ca419c9d5e63860a54b91be34bd or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-89513. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-89513.md
Affected: Linux >= e309fd113b9f6c34672a487be08fecb7e12e7e29, < ddbd71a3780942918a7d116d666313e5b3304d73; >= e309fd113b9f6c34672a487be08fecb7e12e7e29, < 82088f88c96b99c27a974d09b02c2b133262fadf; >= e309fd113b9f6c34672a487be08fecb7e12e7e29, < 735bc20c24187ca419c9d5e63860a54b91be34bd; Linux 6.18
Fixed in: Linux 82088f88c96b99c27a974d09b02c2b133262fadf, Linux 735bc20c24187ca419c9d5e63860a54b91be34bd

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-89513 being exploited?

There is no confirmed exploitation: CVE-2026-89513 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-89513?

High: CVSS 8.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-89513?

Linux \>= e309fd113b9f6c34672a487be08fecb7e12e7e29, \< ddbd71a3780942918a7d116d666313e5b3304d73; \>= e309fd113b9f6c34672a487be08fecb7e12e7e29, \< 82088f88c96b99c27a974d09b02c2b133262fadf; \>= e309fd113b9f6c34672a487be08fecb7e12e7e29, \< 735bc20c24187ca419c9d5e63860a54b91be34bd; Linux 6.18.

### Is there a fix for CVE-2026-89513?

Yes. Fixed in Linux 82088f88c96b99c27a974d09b02c2b133262fadf, Linux 735bc20c24187ca419c9d5e63860a54b91be34bd. Upgrade Linux to 735bc20c24187ca419c9d5e63860a54b91be34bd or later.

### How do I check if I'm affected by CVE-2026-89513?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/ddbd71a3780942918a7d116d666313e5b3304d73>
- other: <https://git.kernel.org/stable/c/82088f88c96b99c27a974d09b02c2b133262fadf>
- other: <https://git.kernel.org/stable/c/735bc20c24187ca419c9d5e63860a54b91be34bd>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-89513>

HTML: <https://flawdb.com/CVE-2026-89513> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-89513>
