Skip to main content

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… (CVE-2026-89513)

0
High
Published: 09/11/2026 (09/11/2026, 21:31:30 UTC)
Source: GCVE Database

Description

A vulnerability in the Linux kernel's RISC-V KVM implementation was resolved involving an overflow in the PMU event info array size calculation. The issue arises because the number of events multiplied by the size of each event is stored in a 32-bit integer, causing truncation on RV64 architectures. This leads to out-of-bounds reads and writes when KVM allocates insufficient memory but loops over the original large event count. The flaw was triggered by a nested guest and detected by KASAN as a slab-out-of-bounds error. The fix involved using size_t for size storage, rejecting multiplication overflow, and safer memory allocation methods.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/12/2026, 01:10:48 UTC

Technical Analysis

The vulnerability CVE-2026-89513 in the Linux kernel affects the RISC-V KVM PMU event info handling. Specifically, the SBI PMU EVENT_GET_INFO call stores the guest-controlled number of events multiplied by the event info size in a 32-bit integer, which truncates on 64-bit RISC-V (RV64) when num_events is large (e.g., 0x10000001). This causes KVM to allocate memory for only one entry but loop over the original large num_events, resulting in out-of-bounds memory reads and writes. The issue was detected by KASAN during nested guest execution. The patch corrected this by storing the size in size_t, rejecting multiplication overflow, allocating memory with GFP_KERNEL_ACCOUNT, suppressing allocation warnings, and using kvcalloc() for safer allocation with vmalloc fallback.

Potential Impact

This vulnerability allows out-of-bounds memory access in the Linux kernel's RISC-V KVM subsystem, which can lead to memory corruption and potential instability or escalation of privileges within nested virtual machines. The flaw is triggered by a malicious or malformed nested guest that controls the number of PMU events, causing KVM to read and write beyond allocated memory boundaries.

Mitigation Recommendations

A fix is available that addresses the overflow and memory allocation issues by using appropriate size types and safer allocation functions. Users should apply the official Linux kernel patches that resolve CVE-2026-89513. No additional mitigation is required once the patch is applied.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-8mvp-fqvr-fj7j
Osv Schema Version
1.4.0
Aliases
["CVE-2026-89513"]

Threat ID: 6aa4a01555bf5e2cf5a866d9

Added to database: 09/12/2026, 00:43:01 UTC

Last enriched: 09/12/2026, 01:10:48 UTC

Last updated: 09/12/2026, 01:10:48 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses