{"id":"CVE-2026-99502","state":"PUBLISHED","title":"s390/pci: Fix double-free and NULL deref in zpci MSI domain cleanup","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ns390/pci: Fix double-free and NULL deref in zpci MSI domain cleanup\n\nzpci_remove_parent_msi_domain() dereferences zbus->msi_parent_domain\nunconditionally and does not clear it afterwards.\n\nzpci_bus_create_pci_bus() removes the domain when pci_create_root_bus()\nfails, then zpci_bus_release() removes it again on the last kref_put(),\nreading ->fwnode from the freed irq_domain and freeing it twice.\n\nIf zpci_alloc_domain() or zpci_create_parent_msi_domain() fails, no domain\nis created at all; zbus is kzalloc'd, so the same release path dereferences\nNULL.\n\nReturn early when there is no domain, and clear the pointer after removing\none.","publishedAt":"2026-11-19T14:43:51.304Z","updatedAt":"2026-11-19T14:43:51.304Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f770950a4709af290f314e691897ec0003fbd8ae","status":"affected","lessThan":"5259b258f234cca127651cd983ea879a7ad4ea8c","versionType":"git"},{"version":"f770950a4709af290f314e691897ec0003fbd8ae","status":"affected","lessThan":"31c66bd273303590fe69fad370e72a12faa0bf76","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/s390/pci/pci_irq.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.19","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/s390/pci/pci_irq.c"]}],"references":["https://git.kernel.org/stable/c/5259b258f234cca127651cd983ea879a7ad4ea8c","https://git.kernel.org/stable/c/31c66bd273303590fe69fad370e72a12faa0bf76"],"weaknesses":[],"ingestedAt":"2026-11-19T14:48:06.147Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/99xxx/CVE-2026-99502.json","commit":"783f6d4140a34eaf92c5bfee971cfe497fa6394e","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99502","state":"PUBLISHED","datePublished":"2026-11-19T14:43:51.304Z","dateUpdated":"2026-11-19T14:43:51.304Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.418Z"},"containers":{"cna":{"title":"s390/pci: Fix double-free and NULL deref in zpci MSI domain cleanup","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ns390/pci: Fix double-free and NULL deref in zpci MSI domain cleanup\n\nzpci_remove_parent_msi_domain() dereferences zbus->msi_parent_domain\nunconditionally and does not clear it afterwards.\n\nzpci_bus_create_pci_bus() removes the domain when pci_create_root_bus()\nfails, then zpci_bus_release() removes it again on the last kref_put(),\nreading ->fwnode from the freed irq_domain and freeing it twice.\n\nIf zpci_alloc_domain() or zpci_create_parent_msi_domain() fails, no domain\nis created at all; zbus is kzalloc'd, so the same release path dereferences\nNULL.\n\nReturn early when there is no domain, and clear the pointer after removing\none."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f770950a4709af290f314e691897ec0003fbd8ae","status":"affected","lessThan":"5259b258f234cca127651cd983ea879a7ad4ea8c","versionType":"git"},{"version":"f770950a4709af290f314e691897ec0003fbd8ae","status":"affected","lessThan":"31c66bd273303590fe69fad370e72a12faa0bf76","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/s390/pci/pci_irq.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.19","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/s390/pci/pci_irq.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/5259b258f234cca127651cd983ea879a7ad4ea8c"},{"url":"https://git.kernel.org/stable/c/31c66bd273303590fe69fad370e72a12faa0bf76"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-19T14:43:51.304Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.19","versionEndExcluding":"7.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.19","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}