CVE-2026-64283
NoneCVSS
—
EPSS
0.1%
Published
Jul 25, 2026
CISA due date
—
Cloudanix analysis
A flaw in Linux virtualization could let someone with permission to create virtual machines misconfigure guest memory in a way that may disrupt the host or its virtual machines.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- Moderate
- Impact
- Denial Of Service
- Component
- OS kernel
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Medium
What it actually does
This is a Linux kernel KVM input-validation flaw in guest_memfd memslot binding. KVM validates that a guest memory slot binding stays within the backing guest_memfd file by checking offset + size against the file size, but the calculation used signed 64-bit semantics for values that are conceptually unsigned. A very large positive offset combined with a valid memslot size can overflow into a negative signed value, causing the bounds check to pass incorrectly. The practical technical risk is that a local process with permission to use KVM could create or configure a virtual machine with an invalid guest_memfd binding outside the intended file range, potentially leading to incorrect memory accounting, guest memory access failures, kernel instability, denial of service, or other undefined behavior in KVM guest private-memory handling. Public exploit maturity is currently reported as none, EPSS is low, and it is not listed in CISA KEV.
Why it matters to the business
Organizations running virtualization workloads on affected Linux kernels could face host stability or availability risk if an untrusted or compromised local user, VM manager, container, or service account has access to KVM device interfaces. The most likely business consequence is disruption to virtualization hosts or guest workloads rather than broad remote compromise. Risk is higher in multi-tenant virtualization, CI/build farms, desktop virtualization, confidential-computing pilots, and environments where non-administrative users can launch KVM-based VMs. The vulnerability is recently published, has low predicted exploitation probability, is not known to be used in ransomware or listed in KEV, but kernel virtualization flaws should still be prioritized where KVM access is exposed to less-trusted users.
How an attack unfolds
An attacker first needs local access to a system where they can interact with KVM, typically through /dev/kvm or through a virtualization stack that exposes KVM VM creation and memory-slot configuration. They create a guest_memfd-backed VM memory object, then attempt to bind a KVM memslot using an extremely large offset and a valid memory size. Because the vulnerable kernel treats the offset-plus-size sum as a signed value, the addition can wrap into a negative number. The bounds check then incorrectly concludes that the binding is within the guest_memfd file because the negative result is less than the positive file size. After the invalid binding is accepted, the attacker exercises the VM or guest memory paths that use the malformed memslot. Depending on kernel version, configuration, and follow-on code paths, this may cause failed memory lookups, kernel warnings, resource misbehavior, host instability, or denial of service. There is no public indication from the provided data that this issue is being actively exploited or used by named threat actors.
How to fix it
Apply a Linux kernel update that includes the KVM guest_memfd fix changing memslot binding offset and size handling to unsigned semantics. Because no exact fixed package versions were provided, use the latest security kernel from the operating system vendor or distribution and confirm that the vendor advisory for this CVE is included. Reboot into the patched kernel after installation; merely installing kernel packages is not sufficient. Where immediate patching is not possible, reduce exposure by restricting access to /dev/kvm to trusted administrators and virtualization service accounts only, disabling unneeded KVM access in containers and CI jobs, preventing untrusted users from creating KVM VMs, and isolating multi-tenant virtualization workloads onto patched hosts first. Consider temporarily disabling guest_memfd/confidential-computing features if they are not required and the vendor supports doing so safely.
How to confirm the fix worked
Confirm the running kernel, not only the installed kernel package, has been updated by checking uname -r and the distribution package metadata after reboot. Validate against the Linux distribution or kernel vendor advisory that the running kernel contains the guest_memfd unsigned offset/size fix for this CVE. Review permissions on /dev/kvm and group membership for users or services that can launch KVM guests. Where feasible in a test environment, run vendor regression tests or KVM selftests for guest_memfd/memslot handling and confirm malformed large-offset memslot bindings are rejected rather than accepted. Also verify that virtualization services were restarted after the reboot and that production hosts are no longer running older kernels through fleet inventory or endpoint management tooling.
Typical attack path
- Obtain local code execution on a Linux host with permission to use KVM, directly or through a VM management component.
- Open /dev/kvm and create a VM that uses guest_memfd-backed memory.
- Create or reference a guest_memfd file with a normal positive size.
- Configure a KVM memslot binding with an extremely large positive offset and a size that causes signed offset-plus-size overflow.
- Rely on the flawed signed bounds check to accept a binding that should have been rejected.
- Trigger guest memory operations against the malformed memslot to cause incorrect KVM behavior, instability, or denial of service.
How to detect it
Post-exploitation detection is difficult because this flaw is exercised through local KVM ioctls and may not leave a unique artifact unless audit, eBPF, syscall tracing, or hypervisor telemetry was already enabled. Review audit logs for unexpected access to /dev/kvm, especially by users, containers, build jobs, or service accounts that do not normally create VMs. Examine system logs and kernel ring buffers for KVM, guest_memfd, memslot, general protection fault, WARN, BUG, Oops, panic, hung task, or virtualization-service crash messages around the same time. Check virtualization management logs for failed or abnormal VM creation, memory-slot configuration errors, unexpected qemu-system process exits, or host instability. If syscall auditing is available, look for suspicious ioctl activity involving KVM_CREATE_GUEST_MEMFD and memory-region/memslot configuration calls by non-standard processes. Correlate any such activity with process execution, user sessions, container runtime logs, and package/kernel version history to determine whether it occurred before the host was patched. There are no known network indicators, files dropped, registry keys, or malware-specific artifacts derivable from the provided vulnerability details.
- /dev/kvm
- guest_memfd
- KVM_CREATE_GUEST_MEMFD
- KVM_SET_USER_MEMORY_REGION2
- KVM_SET_USER_MEMORY_REGION
- qemu-system
- kvm:
- KVM:
- memslot
- kernel BUG
- kernel panic
- general protection fault
- Oops:
- WARNING: CPU:
- hung task
What your security team should do
- Inventory Linux systems running KVM or exposing /dev/kvm, prioritizing virtualization hosts, developer workstations, CI runners, and multi-tenant compute nodes.
- Patch and reboot affected KVM-capable hosts using vendor kernel updates; prioritize systems where untrusted users or workloads can create VMs.
- Restrict /dev/kvm access to trusted accounts and remove unnecessary users from the kvm group or equivalent authorization mechanism.
- Audit containers, build jobs, and VM orchestration services for unnecessary KVM device passthrough.
- Monitor for unusual KVM ioctl usage, VM creation attempts by unexpected users, kernel warnings, host crashes, or virtualization service instability.
- Track vendor advisories for exact fixed kernel package versions because none were supplied in the input.
- Treat exploitation likelihood as currently low based on EPSS, non-KEV status, and no known exploit maturity, but maintain urgency for shared virtualization infrastructure because successful abuse is local-host impact.
The record
In the Linux kernel, the following vulnerability has been resolved: KVM: guest_memfd: Treat memslot binding offset+size as unsigned values When binding a memslot to a guest_memfd file, treat the offset and size as unsigned values to fix a bug where the sum of the two can result in a false negative when checking for overflow against the size of the file. Passing unsigned values also avoids relying on somewhat obscure checks in other flows for safety, and tracks the offset and size as they are intended to be tracked, as unsigned values. On 64-bit kernels, the number of pages a memslot contains and thus the size (and offset) of its guest_memfd binding are unsigned 64-bit values. Taking the offset+size as an loff_t instead of a uoff_t inadvertently converts the unsigned value to a signed value if the offset and/or size is massive. Locally storing the offset and size as signed values is benign in and of itself (though even that is *extremely* difficult to discern), but operating on their sum is not. For the offset, KVM explicitly checks against a negative value, which might seem like a bug as KVM could incorrectly reject a legitimate binding, but that's not actually the case as KVM_CREATE_GUEST_MEMFD takes a signed value for its size, i.e. a would-be-negative offset is also greater than the maximum possible size of any guest_memfd file. Regarding the size, while KVM lacks an explicit check for a negative value, i.e. seemingly has a flawed overflow check, KVM restricts the number of pages in a single memslot to the largest positive signed 32-bit value: if (id < KVM_USER_MEM_SLOTS && (mem->memory_size >> PAGE_SHIFT) > KVM_MEM_MAX_NR_PAGES) return -EINVAL; and so that maximum "size" will ever be is 0x7fffffff000. The sum of the two is, however, problematic. While the size is restricted by KVM's memslot logic, the offset is not, i.e. the offset is completely unchecked until the "offset + size > i_size_read(inode)" check. If the offset is the (nearly) largest possible _positive_ value, then adding size to the offset can result in a signed, negative 64-bit value. When compared against the size of the file (guaranteed to be positive), the negative sum is always smaller, and KVM incorrectly allows the absurd offset. Opportunistically add missing includes in kvm_mm.h (instead of relying on its parents).
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|