Bug 2367585 (CVE-2025-37946) - CVE-2025-37946 kernel: s390/pci: Fix duplicate pci_dev_put() in disable_slot() when PF has child VFs
Summary: CVE-2025-37946 kernel: s390/pci: Fix duplicate pci_dev_put() in disable_slot(...
Keywords:
Status: NEW
Alias: CVE-2025-37946
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-05-20 17:02 UTC by OSIDB Bzimport
Modified: 2025-05-21 02:47 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-05-20 17:02:09 UTC
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().


Note You need to log in before you can comment on or make changes to this bug.