CVE-2025-37946

s390/pci: Fix duplicate pci_dev_put() in disable_slot() when PF has child VFs

HIGH
7.8
CVSS Score
Published: May 20, 2025 at 04:01 PM UTC
Updated: June 17, 2026 at 09:15 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%

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().

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

6.13 ≤ v < 6.14.76.9 ≤ v < 6.12.296.9 ≤ v < 6.14.76.9 ≤ v < 6.156.15 rc16.15 rc26.15 rc36.15 rc46.15 rc56.9bcb5d6c769039c8358a2359e7c3ea5d97ce93108
Vendor states this is fixed in 05a2538f2b48500cf4e8a0a0ce76623cc5bafcf1 (fixed)
Vendor states this is fixed in 957529baef142d95e0d1b1bea786675bd47dbe53 (fixed)
Vendor states this is fixed in c488f8b53e156d6dcc0514ef0afa3a33376b8f9e (fixed)
Vendor states this is fixed in 6.12.29 (unaffected)
Vendor states this is fixed in 6.14.7 (unaffected)
Vendor states this is fixed in 6.15 (unaffected)
Vendor states this is fixed in 6.9 (unaffected)

References (3)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/05a2538f2b48500cf4e8a0a0ce76623cc5bafcf1
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/957529baef142d95e0d1b1bea786675bd47dbe53
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c488f8b53e156d6dcc0514ef0afa3a33376b8f9e

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card