Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E0291298CAB for ; Sat, 15 Aug 2026 12:30:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786797061; cv=none; b=YQWu3As7eFBii4mcN66AVklH9I6dNK5FC1+bmjSIXcUU9/cFcZZ7mHu/NB3IiO6gXZQmfGOt+jFLCH0wM4w5KHqlLYZUL+B+s9xVeFsv8Rgpz8vY7ZnPZeZocvS/zeTl5Zhq27MNK2ykabrWTyhJC9csx5X+rRemhoLqIKlNIpc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786797061; c=relaxed/simple; bh=mKqxqcyFVfIeidWrffsLAZbDSK16JqtJ1Dsd1nRun/4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iB/7pjY0L/FrurL4F5h2RWCokU8uvuTye1m1fjxudfve7JOwCkl3ExJ+FTIYzs6ATanAJ60xkRfJzdKCR7SgpqCRWfw9e6P15uNS3NIQKhAlNBsMn1qZ9Bb61WwCxu/s6feq7wZmMQSgNr6XshbMumC1GvtWZosYDlNBxkK7/4c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Ak15mprk; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Ak15mprk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 467D01F000E9; Sat, 15 Aug 2026 12:30:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786797059; bh=ukcMixYMkpNv67s5vgMJC69ANuk1D/EXbE1bW6QGwoo=; h=From:To:Cc:Subject:Date:Reply-To; b=Ak15mprkKOEgALIqUBrqIJGKbHF0HgoYrB8lCdh1z4ybKRAR8q40hDfaUMQsDbv6o dI2hLRpXg7xap495+rqpqBUrhR/DEialhPIB56Cc0zwQTUZmn1ADVwEUfTVbwfIzuq kAUx6HsqXbFGHWsgtQ0uiSPRSb4+57SOpWHrKl2s= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-74517: KVM: x86: Cancel delayed I/O APIC EOI handling before destroying vCPUs Date: Sat, 15 Aug 2026 21:26:38 +0900 Message-ID: <2026081544-CVE-2026-74517-bb1b@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4277; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=tmr7vb+PyaWiqruW78C9/kxXCVyO/XQCbUnA4EbgusY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNUSdEju8RbpA3FbiZlqThW+Q86YLBgp+iuyeKBTxyD F/2ZJtDRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzEwI5hroTD2Ytnak/POvmz ZbpMwOXoX6dz8hnmR/ZFORZ3PWFjr1olpXug+OpqrrqpAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: KVM: x86: Cancel delayed I/O APIC EOI handling before destroying vCPUs Cancel (and flush) the I/O APIC's delayed EOI handling work during the "pre VM destroy" phase, before vCPUs are destroyed, as processing the EOI broadcast will inject another IRQ if the line is asserted, i.e. will try to deliver an IRQ to the target vCPU(s). Canceling the work after vCPUs are destroyed leads to UAF if the delayed work is processed after vCPUs are destroyed. BUG: KASAN: slab-use-after-free in __kvm_irq_delivery_to_apic_fast+0x9bf/0xa20 arch/x86/kvm/lapic.c:1250 Read of size 8 at addr ffff8880499abea0 by task kworker/1:2/1218 CPU: 1 UID: 0 PID: 1218 Comm: kworker/1:2 Not tainted 7.1.0-rc7 #5 PREEMPT(lazy) Hardware name: QEMU Ubuntu 25.10 PC v2 (i440FX + PIIX, + 10.1 machine, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Workqueue: events kvm_ioapic_eoi_inject_work Call Trace: __dump_stack lib/dump_stack.c:94 dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 print_report+0x139/0x4ad mm/kasan/report.c:482 kasan_report+0xe4/0x1d0 mm/kasan/report.c:595 __kvm_irq_delivery_to_apic_fast+0x9bf/0xa20 arch/x86/kvm/lapic.c:1250 __kvm_irq_delivery_to_apic+0xd8/0xbf0 arch/x86/kvm/lapic.c:1345 kvm_irq_delivery_to_apic arch/x86/kvm/lapic.h:129 ioapic_service+0x308/0x590 arch/x86/kvm/ioapic.c:492 kvm_ioapic_eoi_inject_work+0x13c/0x190 arch/x86/kvm/ioapic.c:532 process_one_work+0xa59/0x19a0 kernel/workqueue.c:3314 process_scheduled_works kernel/workqueue.c:3397 worker_thread+0x5eb/0xe50 kernel/workqueue.c:3478 kthread+0x370/0x450 kernel/kthread.c:436 ret_from_fork+0x72b/0xd30 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Note, the VM is unreachable once kvm_destroy_vm() starts, and scheduling new work via kvm_ioapic_send_eoi() can only be done via KVM_RUN, i.e. requires a live vCPU. Alternatively, KVM could simply destroy the I/O APIC during the "pre" phase of VM destruction, but that gets more than a bit sketchy as KVM expects the I/O APIC to exist if ioapic_in_kernel() is true, and nested virtualization in particular has a bad habit of touching VM-scope state during vCPU destruction. E.g. attempting to free the PIC during the pre phase would lead to a NULL pointer dereference in kvm_cpu_has_extint(), and it's not hard to imagine the I/O APIC having a similar flaw. The Linux kernel CVE team has assigned CVE-2026-74517 to this issue. Affected and fixed versions =========================== Issue introduced in 6.14 with commit 17bcd714426386fda741a4bccd96a2870179344b and fixed in 7.1.8 with commit ed56a6b58222f9c1f4115a0bd2788dd6ed6022e2 Issue introduced in 6.14 with commit 17bcd714426386fda741a4bccd96a2870179344b and fixed in 7.2-rc6 with commit 9910e835580fef3bef53b70241dd00c4bffad693 Issue introduced in 6.12.41 with commit c60f5156e62d0be6c53373b623f16a9e37e2208e Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-74517 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: arch/x86/kvm/x86.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/ed56a6b58222f9c1f4115a0bd2788dd6ed6022e2 https://git.kernel.org/stable/c/9910e835580fef3bef53b70241dd00c4bffad693