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).
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Amazon_linux_2023 | — | Upgrade bpftool6.18Upgrade bpftool6.18-debuginfoUpgrade kernel-livepatch-6.18.44-99.149Upgrade kernel6.18Upgrade kernel6.18-debuginfoUpgrade kernel6.18-debuginfo-common-aarch64Upgrade kernel6.18-debuginfo-common-x86_64Upgrade kernel6.18-develUpgrade kernel6.18-headersUpgrade kernel6.18-modules-extraUpgrade kernel6.18-modules-extra-commonUpgrade kernel6.18-toolsUpgrade kernel6.18-tools-debuginfoUpgrade kernel6.18-tools-develUpgrade microvm-kernel6.18Upgrade perf6.18Upgrade perf6.18-debuginfoUpgrade python3-perf6.18Upgrade python3-perf6.18-debuginfo | Sep 30, 2026 | Jul 25, 2026 |
| Debian | — | Upgrade linuxUpgrade linux-6.12 | Nov 3, 2026 | Jul 25, 2026 |
| Ubuntu | — | Upgrade linux-image-6.8.0-1036-nvidia-tegraUpgrade linux-image-6.8.0-1036-nvidia-tegra-rtUpgrade linux-image-7.0.0-1006-gkeUpgrade linux-image-7.0.0-1006-gke-64kUpgrade linux-image-7.0.0-1011-gcpUpgrade linux-image-7.0.0-1011-gcp-64kUpgrade linux-image-7.0.0-1011-oracleUpgrade linux-image-7.0.0-1011-oracle-64kUpgrade linux-image-7.0.0-1012-awsUpgrade linux-image-7.0.0-1012-aws-64kUpgrade linux-image-7.0.0-1013-ibmUpgrade linux-image-7.0.0-1013-oemUpgrade linux-image-7.0.0-1014-azureUpgrade linux-image-7.0.0-1018-nvidiaUpgrade linux-image-7.0.0-1018-nvidia-64kUpgrade linux-image-7.0.0-1019-raspiUpgrade linux-image-7.0.0-1019-raspi-realtimeUpgrade linux-image-7.0.0-2018-nvidia-bosUpgrade linux-image-7.0.0-2018-nvidia-bos-64kUpgrade linux-image-7.0.0-31-genericUpgrade linux-image-7.0.0-31-generic-64kUpgrade linux-image-7.0.0-31-realtimeUpgrade linux-image-7.0.0-31-realtime-64kUpgrade linux-image-awsUpgrade linux-image-aws-64kUpgrade linux-image-aws-64k-7.0Upgrade linux-image-aws-7.0Upgrade linux-image-azureUpgrade linux-image-azure-7.0Upgrade linux-image-azure-lts-26.04Upgrade linux-image-gcpUpgrade linux-image-gcp-64kUpgrade linux-image-gcp-64k-7.0Upgrade linux-image-gcp-7.0Upgrade linux-image-genericUpgrade linux-image-generic-64kUpgrade linux-image-generic-64k-7.0Upgrade linux-image-generic-64k-hwe-24.04Upgrade linux-image-generic-64k-hwe-26.04Upgrade linux-image-generic-7.0Upgrade linux-image-generic-hwe-24.04Upgrade linux-image-generic-hwe-26.04Upgrade linux-image-gkeUpgrade linux-image-gke-64kUpgrade linux-image-gke-64k-7.0Upgrade linux-image-gke-64k-hwe-26.04Upgrade linux-image-gke-7.0Upgrade linux-image-gke-hwe-26.04Upgrade linux-image-ibmUpgrade linux-image-ibm-7.0Upgrade linux-image-nvidiaUpgrade linux-image-nvidia-64kUpgrade linux-image-nvidia-64k-7.0Upgrade linux-image-nvidia-64k-hwe-26.04Upgrade linux-image-nvidia-7.0Upgrade linux-image-nvidia-bosUpgrade linux-image-nvidia-bos-64kUpgrade linux-image-nvidia-bos-64k-7.0Upgrade linux-image-nvidia-bos-7.0Upgrade linux-image-nvidia-hwe-26.04Upgrade linux-image-nvidia-tegraUpgrade linux-image-nvidia-tegra-6.8Upgrade linux-image-nvidia-tegra-rtUpgrade linux-image-nvidia-tegra-rt-6.8Upgrade linux-image-oem-26.04Upgrade linux-image-oem-26.04aUpgrade linux-image-oem-26.04bUpgrade linux-image-oem-7.0Upgrade linux-image-oracleUpgrade linux-image-oracle-64kUpgrade linux-image-oracle-64k-7.0Upgrade linux-image-oracle-7.0Upgrade linux-image-raspiUpgrade linux-image-raspi-7.0Upgrade linux-image-raspi-realtimeUpgrade linux-image-raspi-realtime-7.0Upgrade linux-image-realtimeUpgrade linux-image-realtime-64kUpgrade linux-image-realtime-64k-7.0Upgrade linux-image-realtime-64k-hwe-26.04Upgrade linux-image-realtime-7.0Upgrade linux-image-realtime-hwe-26.04Upgrade linux-image-virtualUpgrade linux-image-virtual-7.0Upgrade linux-image-virtual-hwe-24.04Upgrade linux-image-virtual-hwe-26.04 | Sep 14, 2026 | Sep 7, 2026 |
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub