[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025052059-CVE-2025-37946-e1e3@gregkh>
Date: Tue, 20 May 2025 18:02:00 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2025-37946: s390/pci: Fix duplicate pci_dev_put() in disable_slot() when PF has child VFs
From: Greg Kroah-Hartman <gregkh@...nel.org>
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().
The Linux kernel CVE team has assigned CVE-2025-37946 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.9 with commit bcb5d6c769039c8358a2359e7c3ea5d97ce93108 and fixed in 6.12.29 with commit c488f8b53e156d6dcc0514ef0afa3a33376b8f9e
Issue introduced in 6.9 with commit bcb5d6c769039c8358a2359e7c3ea5d97ce93108 and fixed in 6.14.7 with commit 957529baef142d95e0d1b1bea786675bd47dbe53
Issue introduced in 6.9 with commit bcb5d6c769039c8358a2359e7c3ea5d97ce93108 and fixed in 6.15-rc6 with commit 05a2538f2b48500cf4e8a0a0ce76623cc5bafcf1
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2025-37946
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/pci/hotplug/s390_pci_hpc.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes. Individual
changes are never tested alone, but rather are part of a larger kernel
release. Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all. If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
https://git.kernel.org/stable/c/c488f8b53e156d6dcc0514ef0afa3a33376b8f9e
https://git.kernel.org/stable/c/957529baef142d95e0d1b1bea786675bd47dbe53
https://git.kernel.org/stable/c/05a2538f2b48500cf4e8a0a0ce76623cc5bafcf1
Powered by blists - more mailing lists