CVE-2026-99502: s390/pci: Fix double-free and NULL deref in zpci MSI domain cleanup
In the Linux kernel, the following vulnerability has been resolved:
s390/pci: Fix double-free and NULL deref in zpci MSI domain cleanup
zpciremoveparentmsidomain() dereferences zbus->msiparentdomain unconditionally and does not clear it afterwards.
zpcibuscreatepcibus() removes the domain when pcicreaterootbus() fails, then zpcibusrelease() removes it again on the last krefput(), reading ->fwnode from the freed irqdomain and freeing it twice.
If zpciallocdomain() or zpcicreateparentmsidomain() fails, no domain is created at all; zbus is kzalloc'd, so the same release path dereferences NULL.
Return early when there is no domain, and clear the pointer after removing one.
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 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.3-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.176-1Fixed in 6.1.192-2Fixed in 6.12.107-1Fixed in 6.12.117-1Fixed in 7.3.4-1Fixed in 7.3.5-1 - Compensating control
In the s390 PCI MSI domain cleanup, return early when no domain exists and clear the domain pointer after removing it.