CVE-2025-37946
s390/pci: Fix duplicate pci_dev_put() in disable_slot() when PF has child VFs
Check your servers for CVE-2025-37946
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-37946 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
s390/pci: Fix duplicate pci_dev_put() in disable_slot() when PF has child VFs
With commit bcb5d6c76903 ("s390/pci: introduce lock to synchronize state of zpci_dev's") the code to ignore power off of a PF that has child VFs was changed from a direct return to a goto to the unlock and pci_dev_put() section. The change however left the existing pci_dev_put() untouched resulting in a doubple put. This can subsequently cause a use after free if the struct pci_dev is released in an unexpected state. Fix this by removing the extra pci_dev_put().
Exploitation
EPSS 0.19%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 9.61% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from bcb5d6c769039c8358a2359e7c3ea5d97ce93108, before c488f8b53e156d6dcc0514ef0afa3a33376b8f9e affected from bcb5d6c769039c8358a2359e7c3ea5d97ce93108, before 957529baef142d95e0d1b1bea786675bd47dbe53 affected from bcb5d6c769039c8358a2359e7c3ea5d97ce93108, before 05a2538f2b48500cf4e8a0a0ce76623cc5bafcf1
Other versions: unaffected
|
| Linux |
affected 6.9 unaffected before 6.9 unaffected from 6.12.29 up to and including 6.12.* unaffected from 6.14.7 up to and including 6.14.* unaffected 6.15 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-37946 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-37946
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-37946
trivy image --scanners vuln IMAGE | grep CVE-2025-37946
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/c488f8b53e156d6dcc0514ef0afa3a33376b8f9e git.kernel.org
- https://git.kernel.org/stable/c/957529baef142d95e0d1b1bea786675bd47dbe53 git.kernel.org
- https://git.kernel.org/stable/c/05a2538f2b48500cf4e8a0a0ce76623cc5bafcf1 git.kernel.org
Source: the record CVE-2025-37946 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse