CVE-2026-99500: s390/pci: Fix resource leak in zpci MSI setup
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
s390/pci: Fix resource leak in zpci MSI setup
If airq_iv_create() fails in __alloc_airq(), the zpci_sbv bit allocated by airq_iv_alloc_bit() is never freed. This permanently leaks one of the ZPCI_NR_DEVICES summary bits, reducing system capacity with each failed device hotplug. In systems with repeated device insertion failures or under memory pressure, all summary bits can be exhausted, preventing new PCI devices from being added until reboot.
Add proper error handling to free the zpci_sbv bit and reset zdev->aisb if the AIBV creation fails.
The Linux kernel CVE team has assigned CVE-2026-99500 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.19 with commit f770950a4709af290f314e691897ec0003fbd8ae and fixed in 7.3.2 with commit 5c1096d6d24aa595decdb229542cf772a7a9e21e Issue introduced in 6.19 with commit f770950a4709af290f314e691897ec0003fbd8ae and fixed in 7.4-rc1 with commit 4a185d99179a307d856dc43610cfe72395d0c42a
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-99500
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/5c1096d6d24aa595decdb229542cf772a7a9e21e https://git.kernel.org/stable/c/4a185d99179a307d856dc43610cfe72395d0c42a