VDB

CVE-2025-68810

CVE-2025-68810 PUBLISHED CVSS 7.8 HIGH

KVM: Disallow toggling KVM_MEM_GUEST_MEMFD on an existing memslot

Reported by linux · Published January 13, 2026

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

EPSS 0.15% · 4.0th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
python3-perf6.12Amazon Linux1:6.12.64-87.122.amzn2023
kernel6.12-libbpf-staticAmazon Linux1:6.12.64-87.122.amzn2023
kernel-livepatch-6.12.64-87.122Amazon Linux1:1.0-0.amzn2023
kernel6.12-headersAmazon Linux1:6.12.64-87.122.amzn2023
kernel6.12-libbpf-develAmazon Linux1:6.12.64-87.122.amzn2023
kernel6.12-tools-develAmazon Linux1:6.12.64-87.122.amzn2023
bpftool6.12Amazon Linux1:6.12.64-87.122.amzn2023
perf6.12Amazon Linux1:6.12.64-87.122.amzn2023
kernel6.12-modules-extra-commonAmazon Linux1:6.12.64-87.122.amzn2023
kernel6.12-toolsAmazon Linux1:6.12.64-87.122.amzn2023
kernel6.12Amazon Linux1:6.12.64-87.122.amzn2023
kernel6.12-libbpfAmazon Linux1:6.12.64-87.122.amzn2023

4 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Score
0.15%
4.0th percentile

Affected products

VendorProductVersions
LinuxLinuxa7800aa80ea4d5356b8474c2302812e9d4926fa6, a7800aa80ea4d5356b8474c2302812e9d4926fa6, a7800aa80ea4d5356b8474c2302812e9d4926fa6
LinuxLinux6.8, 0, 6.12.64
amazon:2023python3-perf6.120
amazon:2023kernel6.12-libbpf-static0
amazon:2023kernel-livepatch-6.12.64-87.1220
amazon:2023kernel6.12-headers0
amazon:2023kernel6.12-libbpf-devel0
amazon:2023kernel6.12-tools-devel0
amazon:2023bpftool6.120
amazon:2023perf6.120
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel6.12-tools0
linuxlinux_kernel6.8, 6.8, 6.8
amazon:2023kernel6.120
amazon:2023kernel6.12-libbpf0
amazon:2023kernel6.12-devel0
amazon:2023kernel6.12-modules-extra0
LinuxLinux6.8, 0, 6.12.64

Timeline

  • Jan 13, 2026 CVE Published
  • Jan 14, 2026 EPSS Score (30 in total, the first dated here)
  • Mar 26, 2026 Coalition ESS Score (2 in total, the first dated here)
  • Apr 29, 2026 Distribution Patch (102 in total, the first dated here)
  • Apr 29, 2026 Security Advisory (108 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-68810
vulnetix vdb fixes CVE-2025-68810

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-68810/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›