# CVE-2025-38351: KVM: x86/hyper-v: Skip non-canonical addresses during PV TLB flush

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.28% (percentile 13, 2026-11-26)
- **Published:** 2025-07-19T11:59:34.078Z
- **Modified:** 2026-06-17T09:16:41.097Z

## Who should check

- Anyone running Linux \>= 260970862c88b4130e9e12be023c7e2c2d37a966, \< d5784ea45663330eaa868c518ea40e7a9f06aa2d; \>= 260970862c88b4130e9e12be023c7e2c2d37a966, \< f1b3ad11ec11c88ba9f79a73d27d4cda3f80fb24; \>= 260970862c88b4130e9e12be023c7e2c2d37a966, \< 2d4dea3f76510c0afe3f18c910f647b816f7d566; \>= 260970862c88b4130e9e12be023c7e2c2d37a966, \< fa787ac07b3ceb56dd88a62d1866038498e96230
- Anyone running Linux 6.2

## Description

In the Linux kernel, the following vulnerability has been resolved:

KVM: x86/hyper-v: Skip non-canonical addresses during PV TLB flush

In KVM guests with Hyper-V hypercalls enabled, the hypercalls
HVCALL\_FLUSH\_VIRTUAL\_ADDRESS\_LIST and HVCALL\_FLUSH\_VIRTUAL\_ADDRESS\_LIST\_EX
allow a guest to request invalidation of portions of a virtual TLB.
For this, the hypercall parameter includes a list of GVAs that are supposed
to be invalidated.

However, when non-canonical GVAs are passed, there is currently no
filtering in place and they are eventually passed to checked invocations of
INVVPID on Intel / INVLPGA on AMD.  While AMD's INVLPGA silently ignores
non-canonical addresses (effectively a no-op), Intel's INVVPID explicitly
signals VM-Fail and ultimately triggers the WARN\_ONCE in invvpid\_error():

  invvpid failed: ext=0x0 vpid=1 gva=0xaaaaaaaaaaaaa000
  WARNING: CPU: 6 PID: 326 at arch/x86/kvm/vmx/vmx.c:482
  invvpid\_error+0x91/0xa0 \[kvm\_intel\]
  Modules linked in: kvm\_intel kvm 9pnet\_virtio irqbypass fuse
  CPU: 6 UID: 0 PID: 326 Comm: kvm-vm Not tainted 6.15.0 \#14 PREEMPT(voluntary)
  RIP: 0010:invvpid\_error+0x91/0xa0 \[kvm\_intel\]
  Call Trace:
    vmx\_flush\_tlb\_gva+0x320/0x490 \[kvm\_intel\]
    kvm\_hv\_vcpu\_flush\_tlb+0x24f/0x4f0 \[kvm\]
    kvm\_arch\_vcpu\_ioctl\_run+0x3013/0x5810 \[kvm\]

Hyper-V documents that invalid GVAs (those that are beyond a partition's
GVA space) are to be ignored.  While not completely clear whether this
ruling also applies to non-canonical GVAs, it is likely fine to make that
assumption, and manual testing on Azure confirms "real" Hyper-V interprets
the specification in the same way.

Skip non-canonical GVAs when processing the list of address to avoid
tripping the INVVPID failure.  Alternatively, KVM could filter out "bad"
GVAs before inserting into the FIFO, but practically speaking the only
downside of pushing validation to the final processing is that doing so
is suboptimal for the guest, and no well-behaved guest will request TLB
flushes for non-canonical addresses.

## Affected and fixed versions

- Linux: \>= 260970862c88b4130e9e12be023c7e2c2d37a966, \< d5784ea45663330eaa868c518ea40e7a9f06aa2d; \>= 260970862c88b4130e9e12be023c7e2c2d37a966, \< f1b3ad11ec11c88ba9f79a73d27d4cda3f80fb24; \>= 260970862c88b4130e9e12be023c7e2c2d37a966, \< 2d4dea3f76510c0afe3f18c910f647b816f7d566; \>= 260970862c88b4130e9e12be023c7e2c2d37a966, \< fa787ac07b3ceb56dd88a62d1866038498e96230 (cvelist)
- Linux: 6.2 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-38351.md
Affected: Linux >= 260970862c88b4130e9e12be023c7e2c2d37a966, < d5784ea45663330eaa868c518ea40e7a9f06aa2d; >= 260970862c88b4130e9e12be023c7e2c2d37a966, < f1b3ad11ec11c88ba9f79a73d27d4cda3f80fb24; >= 260970862c88b4130e9e12be023c7e2c2d37a966, < 2d4dea3f76510c0afe3f18c910f647b816f7d566; >= 260970862c88b4130e9e12b…
Fixed in: Linux 2d4dea3f76510c0afe3f18c910f647b816f7d566

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-2025-38351 being exploited?

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

### How serious is CVE-2025-38351?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38351?

Linux \>= 260970862c88b4130e9e12be023c7e2c2d37a966, \< d5784ea45663330eaa868c518ea40e7a9f06aa2d; \>= 260970862c88b4130e9e12be023c7e2c2d37a966, \< f1b3ad11ec11c88ba9f79a73d27d4cda3f80fb24; \>= 260970862c88b4130e9e12be023c7e2c2d37a966, \< 2d4dea3f76510c0afe3f18c910f647b816f7d566; \>= 260970862c88b4130e9e12be023c7e2c2d37a966, \< fa787ac07b3ceb56dd88a62d1866038498e96230; Linux 6.2.

### Is there a fix for CVE-2025-38351?

Yes. Fixed in Linux 2d4dea3f76510c0afe3f18c910f647b816f7d566. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-38351?

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

- patch: <https://git.kernel.org/stable/c/d5784ea45663330eaa868c518ea40e7a9f06aa2d>
- patch: <https://git.kernel.org/stable/c/f1b3ad11ec11c88ba9f79a73d27d4cda3f80fb24>
- patch: <https://git.kernel.org/stable/c/2d4dea3f76510c0afe3f18c910f647b816f7d566>
- patch: <https://git.kernel.org/stable/c/fa787ac07b3ceb56dd88a62d1866038498e96230>

## 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-2025-38351>

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