Skip to main content

In the Linux kernel, the following vulnerability has been resolved: KVM: riscv: Fix NACL hfence entry update order The SBI v3.0 specification… (CVE-2026-98639)

0
Medium
Published: 10/18/2026 (10/18/2026, 18:31:57 UTC)
Source: GCVE Database

Description

A vulnerability in the Linux kernel's KVM implementation for RISC-V was resolved by correcting the order of updates to the nested HFENCE (hfence) entry. The issue involved writing the Config word before updating the Page_Number and Page_Count, which could cause incorrect TLB flush ranges due to stale values being observed. The fix ensures the page number and count are written first, followed by the Config word, using memory barriers to prevent reordering.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/18/2026, 21:33:37 UTC

Technical Analysis

The Linux kernel's KVM module for RISC-V had a vulnerability related to the nested HFENCE entry update order. According to the SBI v3.0 specification, a nested HFENCE entry must be updated by first finding an unused entry with Config.Pending == 0, then updating the Page_Number and Page_Count fields, and finally updating the Config word with the Pending bit set. The vulnerable code wrote the Config word first, allowing an external agent (such as the SBI implementation or NACL hardware) to observe a pending entry with stale page number and count values, potentially causing incorrect TLB flush ranges. The fix changes the update order to write the page number and count first, then the Config word last, using WRITE_ONCE() to prevent compiler reordering and smp_wmb() to ensure memory visibility.

Potential Impact

The vulnerability could lead to incorrect TLB flush ranges due to stale page number and count values being observed by external agents relying on the nested HFENCE entries. This could affect the correctness of memory management and isolation in virtualized environments using KVM on RISC-V. No known exploits in the wild have been reported.

Mitigation Recommendations

A fix has been implemented in the Linux kernel to correct the update order of the nested HFENCE entry in the KVM RISC-V code. Users should update to a Linux kernel version that includes this fix. Since no specific patch links or versions are provided, check the vendor or kernel release notes for the official fix. No additional mitigation is indicated.

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-2qhr-3xrg-mw89
Osv Schema Version
1.4.0
Aliases
["CVE-2026-98639"]

Threat ID: 6ad520ad2cdf04f656993a70

Added to database: 10/18/2026, 19:40:29 UTC

Last enriched: 10/18/2026, 21:33:37 UTC

Last updated: 10/18/2026, 23:48:21 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