CVE-2026-98639
KVM: riscv: Fix NACL hfence entry update order
Check your servers for CVE-2026-98639
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-98639 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
KVM: riscv: Fix NACL hfence entry update order
The SBI v3.0 specification (section 15.1.2) requires a nested HFENCE entry to be populated as follows: 1) find an unused entry with Config.Pending == 0 2) update the Page_Number and Page_Count words 3) update the Config word with Config.Pending set
__kvm_riscv_nacl_hfence() writes the Config word first, so the SBI implementation (or NACL hardware) can observe a pending entry with pnum/pcount values left over from the previous use of that entry, resulting in incorrect TLB flush ranges.
Write pnum and pcount first and the Config word last. Since the consumer is an external agent on coherent shared memory, use WRITE_ONCE() to stop the compiler from reordering the stores and smp_wmb() to make the parameter words globally visible before the Pending bit is set.
Exploitation
EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.05% of all scored CVEs. Scores of 30 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from d466c19cead5904d4d5d92adb2b213b411d3b849, before d6de766d8d26d71b714f548192099112def50a9c affected from d466c19cead5904d4d5d92adb2b213b411d3b849, before 6da466502621381fa88a6684290923d25c559266 affected from d466c19cead5904d4d5d92adb2b213b411d3b849, before b3d346838ec65fac7fd83f5dbcedd13cadfffddb
Other versions: unaffected
|
| Linux |
affected 6.13 unaffected before 6.13 unaffected from 6.18.55 up to and including 6.18.* unaffected from 7.2.9 up to and including 7.2.* unaffected 7.3 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-98639 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-98639
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-98639
trivy image --scanners vuln IMAGE | grep CVE-2026-98639
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/d6de766d8d26d71b714f548192099112def50a9c git.kernel.org
- https://git.kernel.org/stable/c/6da466502621381fa88a6684290923d25c559266 git.kernel.org
- https://git.kernel.org/stable/c/b3d346838ec65fac7fd83f5dbcedd13cadfffddb git.kernel.org
Source: the record CVE-2026-98639 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse