CVE-2026-99499: s390/pci: Fix use-after-free race in zpci floating interrupt cleanup
In the Linux kernel, the following vulnerability has been resolved:
s390/pci: Fix use-after-free race in zpci floating interrupt cleanup
zpciclearirq() stops the adapter from raising new interrupts for the function, but a zpcifloatingirqhandler() already running on another CPU can still be scanning zdev->aibv when zpcimsiteardownfloating() releases it.
Clear the zpciibv[] entry so no further handler picks the vector up, then wait for a grace period before releasing it. The handler runs inside the rcureadlock() section that doairqinterrupt() holds across airq->handler(), so synchronizercu() 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.
zpciibv 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 zpcidibv and annotate zpciibv rcu, which lets sparse check the accessors above.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.2 - Compensating control
In zpci_msi_teardown_floating(), clear the zpci_ibv[] entry to prevent new handlers from picking up the vector, then wait for an RCU grace period with synchronize_rcu() before releasing the vector and freeing its summary bit.