# CVE-2025-68810: KVM: Disallow toggling KVM\_MEM\_GUEST\_MEMFD on an existing memslot

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.21% (percentile 6, 2026-11-26)
- **Published:** 2026-01-13T15:29:16.475Z
- **Modified:** 2026-08-05T12:11:41.602Z

## Who should check

- Anyone running Linux \>= a7800aa80ea4d5356b8474c2302812e9d4926fa6, \< 89dbbe6ff323fc34659621a577fe0af913f47386; \>= a7800aa80ea4d5356b8474c2302812e9d4926fa6, \< cb51bef465d8ec60a968507330e01020e35dc127; \>= a7800aa80ea4d5356b8474c2302812e9d4926fa6, \< 9935df5333aa503a18de5071f53762b65c783c4c
- Anyone running Linux 6.8

## Description

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

KVM: Disallow toggling KVM\_MEM\_GUEST\_MEMFD on an existing memslot

Reject attempts to disable KVM\_MEM\_GUEST\_MEMFD on a memslot that was
initially created with a guest\_memfd binding, as KVM doesn't support
toggling KVM\_MEM\_GUEST\_MEMFD on existing memslots.  KVM prevents enabling
KVM\_MEM\_GUEST\_MEMFD, but doesn't prevent clearing the flag.

Failure to reject the new memslot results in a use-after-free due to KVM
not unbinding from the guest\_memfd instance.  Unbinding on a FLAGS\_ONLY
change is easy enough, and can/will be done as a hardening measure (in
anticipation of KVM supporting dirty logging on guest\_memfd at some point),
but fixing the use-after-free would only address the immediate symptom.

  ==================================================================
  BUG: KASAN: slab-use-after-free in kvm\_gmem\_release+0x362/0x400 \[kvm\]
  Write of size 8 at addr ffff8881111ae908 by task repro/745

  CPU: 7 UID: 1000 PID: 745 Comm: repro Not tainted 6.18.0-rc6-115d5de2eef3-next-kasan \#3 NONE
  Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 0.0.0 02/06/2015
  Call Trace:
   \<TASK\>
   dump\_stack\_lvl+0x51/0x60
   print\_report+0xcb/0x5c0
   kasan\_report+0xb4/0xe0
   kvm\_gmem\_release+0x362/0x400 \[kvm\]
   \_\_fput+0x2fa/0x9d0
   task\_work\_run+0x12c/0x200
   do\_exit+0x6ae/0x2100
   do\_group\_exit+0xa8/0x230
   \_\_x64\_sys\_exit\_group+0x3a/0x50
   x64\_sys\_call+0x737/0x740
   do\_syscall\_64+0x5b/0x900
   entry\_SYSCALL\_64\_after\_hwframe+0x4b/0x53
  RIP: 0033:0x7f581f2eac31
   \</TASK\>

  Allocated by task 745 on cpu 6 at 9.746971s:
   kasan\_save\_stack+0x20/0x40
   kasan\_save\_track+0x13/0x50
   \_\_kasan\_kmalloc+0x77/0x90
   kvm\_set\_memory\_region.part.0+0x652/0x1110 \[kvm\]
   kvm\_vm\_ioctl+0x14b0/0x3290 \[kvm\]
   \_\_x64\_sys\_ioctl+0x129/0x1a0
   do\_syscall\_64+0x5b/0x900
   entry\_SYSCALL\_64\_after\_hwframe+0x4b/0x53

  Freed by task 745 on cpu 6 at 9.747467s:
   kasan\_save\_stack+0x20/0x40
   kasan\_save\_track+0x13/0x50
   \_\_kasan\_save\_free\_info+0x37/0x50
   \_\_kasan\_slab\_free+0x3b/0x60
   kfree+0xf5/0x440
   kvm\_set\_memslot+0x3c2/0x1160 \[kvm\]
   kvm\_set\_memory\_region.part.0+0x86a/0x1110 \[kvm\]
   kvm\_vm\_ioctl+0x14b0/0x3290 \[kvm\]
   \_\_x64\_sys\_ioctl+0x129/0x1a0
   do\_syscall\_64+0x5b/0x900
   entry\_SYSCALL\_64\_after\_hwframe+0x4b/0x53

## Affected and fixed versions

- Linux: \>= a7800aa80ea4d5356b8474c2302812e9d4926fa6, \< 89dbbe6ff323fc34659621a577fe0af913f47386; \>= a7800aa80ea4d5356b8474c2302812e9d4926fa6, \< cb51bef465d8ec60a968507330e01020e35dc127; \>= a7800aa80ea4d5356b8474c2302812e9d4926fa6, \< 9935df5333aa503a18de5071f53762b65c783c4c (cvelist)
- Linux: 6.8 (cvelist)

## Mitigation

- Upgrade Linux to 9935df5333aa503a18de5071f53762b65c783c4c or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-68810.md
Affected: Linux >= a7800aa80ea4d5356b8474c2302812e9d4926fa6, < 89dbbe6ff323fc34659621a577fe0af913f47386; >= a7800aa80ea4d5356b8474c2302812e9d4926fa6, < cb51bef465d8ec60a968507330e01020e35dc127; >= a7800aa80ea4d5356b8474c2302812e9d4926fa6, < 9935df5333aa503a18de5071f53762b65c783c4c; Linux 6.8
Fixed in: Linux 89dbbe6ff323fc34659621a577fe0af913f47386, Linux 9935df5333aa503a18de5071f53762b65c783c4c

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-68810 being exploited?

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

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

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= a7800aa80ea4d5356b8474c2302812e9d4926fa6, \< 89dbbe6ff323fc34659621a577fe0af913f47386; \>= a7800aa80ea4d5356b8474c2302812e9d4926fa6, \< cb51bef465d8ec60a968507330e01020e35dc127; \>= a7800aa80ea4d5356b8474c2302812e9d4926fa6, \< 9935df5333aa503a18de5071f53762b65c783c4c; Linux 6.8.

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

Yes. Fixed in Linux 89dbbe6ff323fc34659621a577fe0af913f47386, Linux 9935df5333aa503a18de5071f53762b65c783c4c. Upgrade Linux to 9935df5333aa503a18de5071f53762b65c783c4c or later.

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

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

- other: <https://git.kernel.org/stable/c/89dbbe6ff323fc34659621a577fe0af913f47386>
- other: <https://git.kernel.org/stable/c/cb51bef465d8ec60a968507330e01020e35dc127>
- other: <https://git.kernel.org/stable/c/9935df5333aa503a18de5071f53762b65c783c4c>

## 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-68810>

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