Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 45F73288A2 for ; Tue, 20 May 2025 16:02:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747756933; cv=none; b=ZwvhTdJn4BNECvQQkXTCqVnS6Ka2PblU492M4+D6S/2DHHOSCeITGkUwDkr8xjF1bi24Kl+ZAyEKL9hKQonazGVzc4jqUm4GkKbS3ZK+K9hk1MF5d8txhnjV57CzSQcS9DrE0sNDulpAPntADvwXkOHWeT1EJHn02jlE1hAzJfo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747756933; c=relaxed/simple; bh=n+M9bHzAmS8jZeaKLVoMDVgkWavy4h/SyIdDDTwdJUY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FBfpHlPk4F8XcGan53sutzGHtH43wu2uj24uBlvyMNuqXdvY3MveSx9cazFaSQGPg3nMnnND78yfBRIeAQVAgQ9qrwWYc+WG+AKbJQg6TZMEpQfdZQJQi6YyziChi/GuvUQi8zhyx/wh5UaC6xq+jZ26YudKkYcmqePbETl22Pw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2FMzosxf; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="2FMzosxf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 62935C4CEE9; Tue, 20 May 2025 16:02:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1747756932; bh=n+M9bHzAmS8jZeaKLVoMDVgkWavy4h/SyIdDDTwdJUY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=2FMzosxfOh18U5ZPiU1LHUQoRFpZUzVcvKl/b2M5Pq7Wk36BnfzZWxphZqhSJjWCA SNDG6UFn1L0exsUmrud82o1bVEjbrzoEEt5SEq4v18uKr5tdoZiN4guBVRzDy7JBC3 KJRSfjVXP+V+j2B19/sfCBp5xDm5UrPg7ClzyKiM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37946: s390/pci: Fix duplicate pci_dev_put() in disable_slot() when PF has child VFs Date: Tue, 20 May 2025 18:02:00 +0200 Message-ID: <2025052059-CVE-2025-37946-e1e3@gregkh> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2497; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=EpkjX4+Dqgp/8NbFZyGuh42KZFnWf0yRJmfjvndEBOE=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk6y8vD5YwPvLFWMViiOkHxePVu9oKmtGnrPb0udX3mk rY/EWjaEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPJ/sIwP3vK220xDzkuyC8q np+84lXlgvbY/wwLVjFx9dn5/f/VcH+L5Io96SdZTXw7AA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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