{"id":"CVE-2025-37946","state":"PUBLISHED","title":"s390/pci: Fix duplicate pci_dev_put() in disable_slot() when PF has child VFs","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ns390/pci: Fix duplicate pci_dev_put() in disable_slot() when PF has child VFs\n\nWith commit bcb5d6c76903 (\"s390/pci: introduce lock to synchronize state\nof zpci_dev's\") the code to ignore power off of a PF that has child VFs\nwas changed from a direct return to a goto to the unlock and\npci_dev_put() section. The change however left the existing pci_dev_put()\nuntouched resulting in a doubple put. This can subsequently cause a use\nafter free if the struct pci_dev is released in an unexpected state.\nFix this by removing the extra pci_dev_put().","publishedAt":"2025-05-20T16:01:43.162Z","updatedAt":"2026-05-11T21:18:09.660Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"bcb5d6c769039c8358a2359e7c3ea5d97ce93108","status":"affected","lessThan":"c488f8b53e156d6dcc0514ef0afa3a33376b8f9e","versionType":"git"},{"version":"bcb5d6c769039c8358a2359e7c3ea5d97ce93108","status":"affected","lessThan":"957529baef142d95e0d1b1bea786675bd47dbe53","versionType":"git"},{"version":"bcb5d6c769039c8358a2359e7c3ea5d97ce93108","status":"affected","lessThan":"05a2538f2b48500cf4e8a0a0ce76623cc5bafcf1","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/pci/hotplug/s390_pci_hpc.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.9","versionType":"semver"},{"version":"6.12.29","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.14.7","status":"unaffected","lessThanOrEqual":"6.14.*","versionType":"semver"},{"version":"6.15","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/pci/hotplug/s390_pci_hpc.c"]}],"references":["https://git.kernel.org/stable/c/c488f8b53e156d6dcc0514ef0afa3a33376b8f9e","https://git.kernel.org/stable/c/957529baef142d95e0d1b1bea786675bd47dbe53","https://git.kernel.org/stable/c/05a2538f2b48500cf4e8a0a0ce76623cc5bafcf1"],"weaknesses":[],"ingestedAt":"2026-10-29T20:09:03.054Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/37xxx/CVE-2025-37946.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-37946","state":"PUBLISHED","datePublished":"2025-05-20T16:01:43.162Z","dateUpdated":"2026-05-11T21:18:09.660Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-04-16T04:51:23.972Z"},"containers":{"cna":{"title":"s390/pci: Fix duplicate pci_dev_put() in disable_slot() when PF has child VFs","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ns390/pci: Fix duplicate pci_dev_put() in disable_slot() when PF has child VFs\n\nWith commit bcb5d6c76903 (\"s390/pci: introduce lock to synchronize state\nof zpci_dev's\") the code to ignore power off of a PF that has child VFs\nwas changed from a direct return to a goto to the unlock and\npci_dev_put() section. The change however left the existing pci_dev_put()\nuntouched resulting in a doubple put. This can subsequently cause a use\nafter free if the struct pci_dev is released in an unexpected state.\nFix this by removing the extra pci_dev_put()."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"bcb5d6c769039c8358a2359e7c3ea5d97ce93108","status":"affected","lessThan":"c488f8b53e156d6dcc0514ef0afa3a33376b8f9e","versionType":"git"},{"version":"bcb5d6c769039c8358a2359e7c3ea5d97ce93108","status":"affected","lessThan":"957529baef142d95e0d1b1bea786675bd47dbe53","versionType":"git"},{"version":"bcb5d6c769039c8358a2359e7c3ea5d97ce93108","status":"affected","lessThan":"05a2538f2b48500cf4e8a0a0ce76623cc5bafcf1","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/pci/hotplug/s390_pci_hpc.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.9","versionType":"semver"},{"version":"6.12.29","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.14.7","status":"unaffected","lessThanOrEqual":"6.14.*","versionType":"semver"},{"version":"6.15","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/pci/hotplug/s390_pci_hpc.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/c488f8b53e156d6dcc0514ef0afa3a33376b8f9e"},{"url":"https://git.kernel.org/stable/c/957529baef142d95e0d1b1bea786675bd47dbe53"},{"url":"https://git.kernel.org/stable/c/05a2538f2b48500cf4e8a0a0ce76623cc5bafcf1"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T21:18:09.660Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"6.12.29"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"6.14.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"6.15"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}