{"id":"CVE-2026-80620","aliases":["CVE-2026-80620"],"related":[],"kind":"vulnerability","state":"published","title":"Revert \"PCI/MSI: Unmap MSI-X region on error\"","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nRevert \"PCI/MSI: Unmap MSI-X region on error\"\n\nThis reverts commit 1a8d4c6ecb4c81261bcdf13556abd4a958eca202.\n\nCommit 1a8d4c6ecb4c (\"PCI/MSI: Unmap MSI-X region on error\") added an\niounmap(dev->msix_base) on the error path of msix_capability_init() to\nrelease the MSI-X region when msix_setup_interrupts() fails.\n\nWhen msix_setup_interrupts() fails, the call chain is:\n\n  msix_setup_interrupts()\n    -> __msix_setup_interrupts()\n         struct pci_dev *dev __free(free_msi_irqs) = __dev;\n         ...\n         return ret;  // __free cleanup fires on error\n\nThe __free(free_msi_irqs) cleanup calls pci_free_msi_irqs(), which\nalready handles the unmap:\n\n  void pci_free_msi_irqs(struct pci_dev *dev)\n  {\n      pci_msi_teardown_msi_irqs(dev);\n      if (dev->msix_base) {\n          iounmap(dev->msix_base);   // already unmapped here\n          dev->msix_base = NULL;     // and set to NULL\n      }\n  }\n\nSo dev->msix_base is unmapped and set to NULL before\nmsix_setup_interrupts() returns to msix_capability_init(). The\n\"goto out_unmap\" introduced by commit 1a8d4c6ecb4c (\"PCI/MSI: Unmap\nMSI-X region on error\") then calls iounmap() a second time on a NULL\npointer.\n\nThis was reproduced on Intel Emerald Rapids (192 CPUs) while\nrunning tools/testing/selftests/kexec/test_kexec_jump.sh:\n\n  WARNING: CPU#44 at iounmap+0x2a/0xe0\n  RIP: 0010:iounmap+0x2a/0xe0\n  RDI: 0000000000000000\n  Call Trace:\n   msix_capability_init+0x317/0x3f0\n   __pci_enable_msix_range+0x21d/0x2c0\n   pci_alloc_irq_vectors_affinity+0xa9/0x130\n   nvme_setup_io_queues+0x2a8/0x420 [nvme]\n   nvme_reset_work+0x151/0x340 [nvme]\n   ...\n\nRDI=0 confirms iounmap() is called with NULL.\n\nRestore the original \"goto out_disable\" and leave the unmap to the\nexisting __free(free_msi_irqs) cleanup.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nRevert \"PCI/MSI: Unmap MSI-X region on error\"\n\nThis reverts commit 1a8d4c6ecb4c81261bcdf13556abd4a958eca202.\n\nCommit 1a8d4c6ecb4c (\"PCI/MSI: Unmap MSI-X region on error\") added an\niounmap(dev->msix_base) on the error path of msix_capability_init() to\nrelease the MSI-X region when msix_setup_interrupts() fails.\n\nWhen msix_setup_interrupts() fails, the call chain is:\n\n  msix_setup_interrupts()\n    -> __msix_setup_interrupts()\n         struct pci_dev *dev __free(free_msi_irqs) = __dev;\n         ...\n         return ret;  // __free cleanup fires on error\n\nThe __free(free_msi_irqs) cleanup calls pci_free_msi_irqs(), which\nalready handles the unmap:\n\n  void pci_free_msi_irqs(struct pci_dev *dev)\n  {\n      pci_msi_teardown_msi_irqs(dev);\n      if (dev->msix_base) {\n          iounmap(dev->msix_base);   // already unmapped here\n          dev->msix_base = NULL;     // and set to NULL\n      }\n  }\n\nSo dev->msix_base is unmapped and set to NULL before\nmsix_setup_interrupts() returns to msix_capability_init(). The\n\"goto out_unmap\" introduced by commit 1a8d4c6ecb4c (\"PCI/MSI: Unmap\nMSI-X region on error\") then calls iounmap() a second time on a NULL\npointer.\n\nThis was reproduced on Intel Emerald Rapids (192 CPUs) while\nrunning tools/testing/selftests/kexec/test_kexec_jump.sh:\n\n  WARNING: CPU#44 at iounmap+0x2a/0xe0\n  RIP: 0010:iounmap+0x2a/0xe0\n  RDI: 0000000000000000\n  Call Trace:\n   msix_capability_init+0x317/0x3f0\n   __pci_enable_msix_range+0x21d/0x2c0\n   pci_alloc_irq_vectors_affinity+0xa9/0x130\n   nvme_setup_io_queues+0x2a8/0x420 [nvme]\n   nvme_reset_work+0x151/0x340 [nvme]\n   ...\n\nRDI=0 confirms iounmap() is called with NULL.\n\nRestore the original \"goto out_disable\" and leave the unmap to the\nexisting __free(free_msi_irqs) cleanup.","source":"cvelist"}],"published":"2026-08-28T06:48:40.340Z","modified":"2026-11-06T17:19:55.553Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"4a7589b615a3db6792d36b874add86cd22188c95","fixed":"82e120a7dd566c476ba923d30e3fb78e8118a1dd","status":"affected"},{"type":"git","introduced":"5f007c6acaa7d9a543b492c1e48c48a0ea1d7147","fixed":"6848ca381edff84f87dd1b6973848c271541e813","status":"affected"},{"type":"git","introduced":"76f7abd4ee0188f06465bdd3c053fdc5e8595152","fixed":"0a2aeb02894b839ecc3ece6dc7e5c3d6c3def16f","status":"affected"},{"type":"git","introduced":"aee8db5f048616990dbdefcc25689ade0a2620ec","fixed":"f79519f636059b007d6abc91652f36dea4f54a20","status":"affected"},{"type":"git","introduced":"1a8d4c6ecb4c81261bcdf13556abd4a958eca202","fixed":"3691a82be2095abaf3326a1cbf7b25858a1d959c","status":"affected"},{"type":"git","introduced":"1a8d4c6ecb4c81261bcdf13556abd4a958eca202","fixed":"f64e03da0d83cb173743888bff4a7e61476a8fc2","status":"affected"},{"type":"git","version":"19bf27b450fcd5309bacd614b12bd7de1ac6535b","status":"affected"},{"type":"semver","introduced":"6.1.165","fixed":"6.1.178","status":"affected"},{"type":"semver","introduced":"6.6.128","fixed":"6.6.145","status":"affected"},{"type":"semver","introduced":"6.12.75","fixed":"6.12.97","status":"affected"},{"type":"semver","introduced":"6.18.16","fixed":"6.18.40","status":"affected"},{"type":"semver","introduced":"6.19.6","fixed":"6.20","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"7.0","status":"affected"},{"type":"semver","introduced":"0","fixed":"7.0","status":"unaffected"},{"type":"semver","introduced":"6.1.178","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.145","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.97","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.40","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.5","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/82e120a7dd566c476ba923d30e3fb78e8118a1dd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6848ca381edff84f87dd1b6973848c271541e813","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0a2aeb02894b839ecc3ece6dc7e5c3d6c3def16f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f79519f636059b007d6abc91652f36dea4f54a20","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3691a82be2095abaf3326a1cbf7b25858a1d959c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f64e03da0d83cb173743888bff4a7e61476a8fc2","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-06T17:02:14.673Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-80620","url":"https://www.cve.org/CVERecord?id=CVE-2026-80620","licence":"CVE Terms of Use","modified":"2026-11-06T17:05:52.238Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-80620","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-80620","licence":"Public domain","modified":"2026-11-06T17:19:55.553Z"}],"updatedAt":"2026-11-25T22:59:35.590Z","epss":{"score":0.00173,"percentile":0.07066,"date":"2026-12-01T12:00:22.000Z"}}