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 13CD73D092F for ; Fri, 28 Aug 2026 06:50:01 +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=1787899802; cv=none; b=AtdPXWdapj3ZV9VOAh4zBw58Usa9OuYbMnmcbMa8VKcahw9iz3mJhXSMwABOknwjkGh6dBxhpxforhqSnJDKs2X/G6MUzdbTdZrGINjqj9fUybQVN3LKmstclFmgFw87eV1iv0AsoS52yiHyZ/7dW2IhpIumg6GlfWnXws6C7vA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787899802; c=relaxed/simple; bh=HPyBn3lzbD8E6gOP6EVe5o5ARdysfNBPGyvFZiX83OI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nEQq9PLX2PMJWtiEJxVW39QUdU3f7S1+kVjzhz9PcIRxRDVxICw4FZVYU6IihkGxjhpltIwSjZr04OddDR4eH7HyC46l0bIJJvdkGMAdM7oQ/XLJNq80rB4BipNpYlcsnpV6AMUQVAwREoQDQxFVJUoGBtlVbWMxlM83gqRGU3s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NWfq3eTi; 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="NWfq3eTi" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 93A4E1F000E9; Fri, 28 Aug 2026 06:50:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1787899800; bh=D/+aHNyyqBeNnFNdNKE1Swgbsh9RdS49XX/W0TXWhHM=; h=From:To:Cc:Subject:Date:Reply-To; b=NWfq3eTiJXvgtYM2Sa+rVqcgnmoA6HsR+Sl5mkPrpDG+1zR/8Zu4GCuS47jPhcwzE 0zZLLy988jO29Z8Gn78UgmeD0zORCobjpnnL34OEyOu6jLyK1rjaDbo0pof61Dg1n9 mIW3eh5BQVRt47wkX0LJT9yoJ6Xsit/EkVADvyx4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-80620: Revert "PCI/MSI: Unmap MSI-X region on error" Date: Fri, 28 Aug 2026 08:48:57 +0200 Message-ID: <2026082836-CVE-2026-80620-c4a2@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=4509; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=mrENC9ekeusx8YbKphQ6bvtPl6CB0Ek9IuRTf7tmfTM=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkT9V00pzboWVd+1p230q5QT/QpX+byTdNi7K09Io8td yqcP3FtRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExEKothJuPzDyslPTduv/8+ o8Z2puTftL23Oxjm+2i/X32gW3/DB4c9LxSttXJdvr6ZBQA= 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: Revert "PCI/MSI: Unmap MSI-X region on error" This reverts commit 1a8d4c6ecb4c81261bcdf13556abd4a958eca202. Commit 1a8d4c6ecb4c ("PCI/MSI: Unmap MSI-X region on error") added an iounmap(dev->msix_base) on the error path of msix_capability_init() to release the MSI-X region when msix_setup_interrupts() fails. When msix_setup_interrupts() fails, the call chain is: msix_setup_interrupts() -> __msix_setup_interrupts() struct pci_dev *dev __free(free_msi_irqs) = __dev; ... return ret; // __free cleanup fires on error The __free(free_msi_irqs) cleanup calls pci_free_msi_irqs(), which already handles the unmap: void pci_free_msi_irqs(struct pci_dev *dev) { pci_msi_teardown_msi_irqs(dev); if (dev->msix_base) { iounmap(dev->msix_base); // already unmapped here dev->msix_base = NULL; // and set to NULL } } So dev->msix_base is unmapped and set to NULL before msix_setup_interrupts() returns to msix_capability_init(). The "goto out_unmap" introduced by commit 1a8d4c6ecb4c ("PCI/MSI: Unmap MSI-X region on error") then calls iounmap() a second time on a NULL pointer. This was reproduced on Intel Emerald Rapids (192 CPUs) while running tools/testing/selftests/kexec/test_kexec_jump.sh: WARNING: CPU#44 at iounmap+0x2a/0xe0 RIP: 0010:iounmap+0x2a/0xe0 RDI: 0000000000000000 Call Trace: msix_capability_init+0x317/0x3f0 __pci_enable_msix_range+0x21d/0x2c0 pci_alloc_irq_vectors_affinity+0xa9/0x130 nvme_setup_io_queues+0x2a8/0x420 [nvme] nvme_reset_work+0x151/0x340 [nvme] ... RDI=0 confirms iounmap() is called with NULL. Restore the original "goto out_disable" and leave the unmap to the existing __free(free_msi_irqs) cleanup. The Linux kernel CVE team has assigned CVE-2026-80620 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1.165 with commit 4a7589b615a3db6792d36b874add86cd22188c95 and fixed in 6.1.178 with commit 82e120a7dd566c476ba923d30e3fb78e8118a1dd Issue introduced in 6.6.128 with commit 5f007c6acaa7d9a543b492c1e48c48a0ea1d7147 and fixed in 6.6.145 with commit 6848ca381edff84f87dd1b6973848c271541e813 Issue introduced in 6.12.75 with commit 76f7abd4ee0188f06465bdd3c053fdc5e8595152 and fixed in 6.12.97 with commit 0a2aeb02894b839ecc3ece6dc7e5c3d6c3def16f Issue introduced in 6.18.16 with commit aee8db5f048616990dbdefcc25689ade0a2620ec and fixed in 6.18.40 with commit f79519f636059b007d6abc91652f36dea4f54a20 Issue introduced in 7.0 with commit 1a8d4c6ecb4c81261bcdf13556abd4a958eca202 and fixed in 7.1.5 with commit 3691a82be2095abaf3326a1cbf7b25858a1d959c Issue introduced in 7.0 with commit 1a8d4c6ecb4c81261bcdf13556abd4a958eca202 and fixed in 7.2 with commit f64e03da0d83cb173743888bff4a7e61476a8fc2 Issue introduced in 6.19.6 with commit 19bf27b450fcd5309bacd614b12bd7de1ac6535b 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-80620 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: drivers/pci/msi/msi.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/82e120a7dd566c476ba923d30e3fb78e8118a1dd https://git.kernel.org/stable/c/6848ca381edff84f87dd1b6973848c271541e813 https://git.kernel.org/stable/c/0a2aeb02894b839ecc3ece6dc7e5c3d6c3def16f https://git.kernel.org/stable/c/f79519f636059b007d6abc91652f36dea4f54a20 https://git.kernel.org/stable/c/3691a82be2095abaf3326a1cbf7b25858a1d959c https://git.kernel.org/stable/c/f64e03da0d83cb173743888bff4a7e61476a8fc2