LiveActive security incident?Get immediate response
CVE Record

CVE-2025-40065: RISC-V: KVM: Write hgatp register with valid mode bits

In the Linux kernel, the following vulnerability has been resolved: RISC-V: KVM: Write hgatp register with valid mode bits According to the RISC-V Privileged Architecture Spec, when MODE=Bare is selected,software must write zero to the remaining fields of hgatp. We have detected the valid mode supported by the HW before, So using a valid mode to detect how many vmid bits are supported.

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysisunknown

Security readout for executives and security teams

Plain-English summary

This is a Linux kernel issue in RISC-V KVM virtualization handling. The public record says the kernel wrote the RISC-V hgatp register in a way that did not follow the architecture requirements. Business urgency is mainly for organizations running Linux on RISC-V systems with KVM virtualization.

Executive priority

Monitor and patch in normal kernel maintenance cycles unless you operate RISC-V KVM hosts. For RISC-V virtualization environments, treat as a targeted infrastructure update and confirm vendor-fixed kernels are deployed.

Technical view

The fix changes RISC-V KVM hgatp handling so valid mode bits are used when detecting supported VMID bits. The record cites the RISC-V privileged architecture rule that hgatp fields must be zero when MODE=Bare. Public sources do not provide CVSS, CWE, concrete impact, or attacker prerequisites.

Likely exposure

Likely limited to Linux systems running on RISC-V hardware with KVM virtualization enabled or in use. Most x86, ARM, and non-virtualization Linux deployments are unlikely to be exposed based on the provided sources.

Exploitation context

No active exploitation is reported in the provided sources, and the CVE is not marked KEV. The public record does not describe exploitability, impact, or whether a guest user can trigger security consequences.

Researcher notes

Evidence is sparse. The issue is described as a resolved Linux kernel RISC-V KVM compliance/correctness fix around hgatp mode bits and VMID detection. Public sources do not establish confidentiality, integrity, availability impact, privilege boundary, or exploitability.

Mitigation direction

  • Apply Linux kernel or distribution updates that include the referenced stable fixes.
  • Prioritize RISC-V hosts using KVM or hosting untrusted guest workloads.
  • If updates are unavailable, check vendor guidance for supported workarounds.

Validation and detection

  • Inventory Linux systems running on RISC-V architecture.
  • Determine whether KVM virtualization is enabled or used on those systems.
  • Check whether the running kernel includes the referenced stable commits.
  • Review your distribution advisories for CVE-2025-40065 status.
Prepared
Confidence
medium
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cve · low confidence lookup

CVE-2025-40065 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
3Timeline events
0ADP providers
3Source links

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. CVE publishedCVE Program

    The CVE record was published.

  3. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
LinuxLinuxfd7bb4a251dfc1da3496bf59a4793937c13e8c1f, fd7bb4a251dfc1da3496bf59a4793937c13e8c1funaffected
LinuxLinux5.16, 0, 6.17.3, 6.18affected
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.