VDB

CVE-2026-64283

CVE-2026-64283 PUBLISHED

KVM: guest_memfd: Treat memslot binding offset+size as unsigned values

Reported by linux · Published July 25, 2026

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).

Fixed versions

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

PackageEcosystemFixed in
kernel6.18Amazon Linux1:6.18.44-99.149.amzn2023
perf6.18Amazon Linux1:6.18.44-99.149.amzn2023
python3-perf6.18Amazon Linux1:6.18.44-99.149.amzn2023
kernel6.18-headersAmazon Linux1:6.18.44-99.149.amzn2023
kernel6.18-tools-develAmazon Linux1:6.18.44-99.149.amzn2023
linux_kernellinux7.1.4

Affected products

VendorProductVersions
LinuxLinuxa7800aa80ea4d5356b8474c2302812e9d4926fa6, a7800aa80ea4d5356b8474c2302812e9d4926fa6, a7800aa80ea4d5356b8474c2302812e9d4926fa6
LinuxLinux6.8, 0, 6.12.114
amazon:2023kernel6.180
amazon:2023perf6.180
amazon:2023python3-perf6.180
amazon:2023kernel6.18-headers0
amazon:2023kernel6.18-tools-devel0
linuxlinux_kernel6.8, 6.8, 6.8
amazon:2023kernel6.18-modules-extra0
chainguardlinux-gcp-6.180
amazon:2023kernel6.18-tools0
amazon:2023microvm-kernel6.180
LinuxLinux7.2, 6.8, 0
amazon:2023kernel6.18-modules-extra-common0
amazon:2023kernel-livepatch-6.18.44-99.1490
amazon:2023kernel6.18-devel0
amazon:2023bpftool6.180
chainguardlinux-qemu-melange0

Timeline

  • Jul 25, 2026 EPSS Score (11 in total, the first dated here)
  • Jul 25, 2026 Coalition ESS Score
  • Jul 25, 2026 CVE Published
  • Jul 26, 2026 Security Advisory (20 in total, the first dated here)
  • Aug 9, 2026 CVE Updated
  • Aug 12, 2026 Distribution Patch (21 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-64283
vulnetix vdb fixes CVE-2026-64283

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-2026-64283/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 ›