CVE-2026-99499: s390/pci: Fix use-after-free race in zpci floating interrupt cleanup
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
s390/pci: Fix use-after-free race in zpci floating interrupt cleanup
zpci_clear_irq() stops the adapter from raising new interrupts for the function, but a zpci_floating_irq_handler() already running on another CPU can still be scanning zdev->aibv when zpci_msi_teardown_floating() releases it.
Clear the zpci_ibv[] entry so no further handler picks the vector up, then wait for a grace period before releasing it. The handler runs inside the rcu_read_lock() section that do_airq_interrupt() holds across airq->handler(), so synchronize_rcu() drains any handler still in flight. Release the vector and free the summary bit only after the grace period, so neither can be reused while a reader still holds the old pointer.
zpci_ibv served both delivery modes, indexed by function under FLOATING and by cpu under DIRECTED. Only the floating vectors are published to and torn down under the interrupt handler, so split the directed vectors out into zpci_dibv and annotate zpci_ibv __rcu, which lets sparse check the accessors above.
The Linux kernel CVE team has assigned CVE-2026-99499 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.19 with commit f770950a4709af290f314e691897ec0003fbd8ae and fixed in 7.3.2 with commit da15d34d6cb9cdca309c59d1ae0f155da31ed2c2 Issue introduced in 6.19 with commit f770950a4709af290f314e691897ec0003fbd8ae and fixed in 7.4-rc1 with commit 422d75ad5bc96b8eb9cb3cfd9d68fc685a0a9b75
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-99499
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/s390/pci/pci_irq.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/da15d34d6cb9cdca309c59d1ae0f155da31ed2c2 https://git.kernel.org/stable/c/422d75ad5bc96b8eb9cb3cfd9d68fc685a0a9b75