cbcvebase.
CVE-2026-31588
published 2026-04-24

CVE-2026-31588: In the Linux kernel, the following vulnerability has been resolved: KVM: x86: Use scratch field in MMIO fragment to hold small write values When exiting to…

PriorityP346high8.8CVSS 3.1
AVLACLPRLUINSCCHIHAH
EPSS
0.13%
2.8th percentile
In the Linux kernel, the following vulnerability has been resolved: KVM: x86: Use scratch field in MMIO fragment to hold small write values When exiting to userspace to service an emulated MMIO write, copy the to-be-written value to a scratch field in the MMIO fragment if the size of the data payload is 8 bytes or less, i.e. can fit in a single chunk, instead of pointing the fragment directly at the source value. This fixes a class of use-after-free bugs that occur when the emulator initiates a write using an on-stack, local variable as the source, the write splits a page boundary, *and* both pages are MMIO pages. Because KVM's ABI only allows for physically contiguous MMIO requests, accesses that split MMIO pages are separated into two fragments, and are sent to userspace one at a time. When KVM attempts to complete userspace MMIO in response to KVM_RUN after the first fragment, KVM will detect the second fragment and generate a second userspace exit, and reference the on-stack variable. The issue is most visible if the second KVM_RUN is performed by a separate task, in which case the stack of the initiating task can show up as truly freed data. BUG: KASAN: use-after-free in complete_emulated_mmio+0x305/0x420 Read of size 1 at addr ffff888009c378d1 by task syz-executor417/984 CPU: 1 PID: 984 Comm: syz-executor417 Not tainted 5.10.0-182.0.0.95.h2627.eulerosv2r13.x86_64 #3 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.15.0-0-g2dd4b9b3f840-prebuilt.qemu.org 04/01/2014 Call Trace: dump_stack+0xbe/0xfd print_address_description.constprop.0+0x19/0x170 __kasan_report.cold+0x6c/0x84 kasan_report+0x3a/0x50 check_memory_region+0xfd/0x1f0 memcpy+0x20/0x60 complete_emulated_mmio+0x305/0x420 kvm_arch_vcpu_ioctl_run+0x63f/0x6d0 kvm_vcpu_ioctl+0x413/0xb20 __se_sys_ioctl+0x111/0x160 do_syscall_64+0x30/0x40 entry_SYSCALL_64_after_hwframe+0x67/0xd1 RIP: 0033:0x42477d Code: 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007faa8e68

Affected

24 ranges
VendorProductVersion rangeFixed in
linuxlinux
linuxlinux>= f78146b0f9230765c6315b2e14f56112513389ad < 019d0bd32b9a4646ba35d904907452039e2db700019d0bd32b9a4646ba35d904907452039e2db700
linuxlinux>= f78146b0f9230765c6315b2e14f56112513389ad < 4569c66dd9e94a22cd0796b6514a8b25ffff16a14569c66dd9e94a22cd0796b6514a8b25ffff16a1
linuxlinux>= f78146b0f9230765c6315b2e14f56112513389ad < 52570e73d48f1c73836d37e594667117b4c2a5a852570e73d48f1c73836d37e594667117b4c2a5a8
linuxlinux>= f78146b0f9230765c6315b2e14f56112513389ad < dc6a6c3db3a4eca7e747cfc46e22c08d016c68f7dc6a6c3db3a4eca7e747cfc46e22c08d016c68f7
linuxlinux>= f78146b0f9230765c6315b2e14f56112513389ad < b5a02d37eb0739f462fa12df449ab9b3480c783bb5a02d37eb0739f462fa12df449ab9b3480c783b
linuxlinux>= f78146b0f9230765c6315b2e14f56112513389ad < 22d2ff69d487a32a8b88f9c970120fc2daa08a7722d2ff69d487a32a8b88f9c970120fc2daa08a77
linuxlinux>= f78146b0f9230765c6315b2e14f56112513389ad < 2b83d91e9ae92fe1258d7040a32430bbb3bb7d6e2b83d91e9ae92fe1258d7040a32430bbb3bb7d6e
linuxlinux>= f78146b0f9230765c6315b2e14f56112513389ad < 3a7b6d75c8f85b09dea893f64a85a356bcf6c3fe3a7b6d75c8f85b09dea893f64a85a356bcf6c3fe
linuxlinux>= f78146b0f9230765c6315b2e14f56112513389ad < 0b16e69d17d8c35c5c9d5918bf596c75a44655d30b16e69d17d8c35c5c9d5918bf596c75a44655d3
linuxlinux_kernel
linuxlinux_kernel>= 3.5 < 6.6.1366.6.136
linuxlinux_kernel>= 6.13 < 6.18.246.18.24
linuxlinux_kernel>= 6.19 < 6.19.146.19.14
linuxlinux_kernel>= 6.7 < 6.12.836.12.83
linuxlinux_kernel>= 7.0 < 7.0.17.0.1
ubuntulinux
ubuntulinux-aws
ubuntulinux-gcp
ubuntulinux-ibm
ubuntulinux-nvidia
ubuntulinux-oracle
ubuntulinux-raspi
ubuntulinux-realtime

CVSS provenance

nvdv3.18.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
vendor_redhat7.0MEDIUM
vendor_ubuntu2.0LOW
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.