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 ED594302176 for ; Wed, 12 Nov 2025 10:24:35 +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=1762943076; cv=none; b=CBf7PxzWiBx/SWne/+BfOV0L5JPQ+arout746xWZ9CLDDy8HlDQFr9ZZa6z6Coif5ZogjtpfHdtxfYOedOGERfJeVoYElDir51+KXvb/qMhTl99r84IRiuSix4Hhvs1oFK3kNZ8VKSj6EGsOb9TveAQ75G+763MpdJ4+x2kMoVs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762943076; c=relaxed/simple; bh=jDSg00xmcJJx5pbsmSdKU4MlPEe0fyOu1RKdPQCbxng=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AWYT23x9t65pzjROTODpDzaEDgs2Q6SIvLOVO0h421PmyNGRFoiTPLrZfDFLQyL/fasbU0R4M3/m1SY/Klgp8UOHZ2y5EZeTx6O81GGt1SREhJauCa1YaPPeGMPC3caS3zPgUbvpf2Ia6IYH97nJb7gW6/qTKO4u3Wedvoz+I0Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RI97cTSR; 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="RI97cTSR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC2D7C19421; Wed, 12 Nov 2025 10:24:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1762943075; bh=jDSg00xmcJJx5pbsmSdKU4MlPEe0fyOu1RKdPQCbxng=; h=From:To:Cc:Subject:Date:Reply-to:From; b=RI97cTSRbDzrD6UCGGQDv1Kz4MFTLnAWd+Ay41xIk1ce1rxKcm/RU3uwWLl3ksiOp P1H1J/EpOTKO1JXrcK1Qd0FncjeNivy3qA1wq0LDN7G0iuIV10Ui9FTSLglOGaPG9Y bGjvABwwk0bAjXvxXkRTJQlhrS0tf9QlVsDvkWPg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40145: PCI/pwrctrl: Fix double cleanup on devm_add_action_or_reset() failure Date: Wed, 12 Nov 2025 19:24:21 +0900 Message-ID: <2025111256-CVE-2025-40145-9b0c@gregkh> X-Mailer: git-send-email 2.51.2 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=2042; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=bBSdhUZK90pm42lgjK+8N2SlfNmuMlBxM3YezDjqTMA=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkiCTZiNRuW+1+dcmlh8LGGJ5yc6/mW7fjf9qdDyPTut NUrF0UqdMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEBJcxzC95LZ+2qLZBe9Yj Ptulf65O/BHnIsOwYOrxjR3hNwx1Nwfk/g6Wtqru39rGCAA= 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: PCI/pwrctrl: Fix double cleanup on devm_add_action_or_reset() failure When devm_add_action_or_reset() fails, it calls the passed cleanup function. Hence the caller must not repeat that cleanup. Replace the "goto err_regulator_free" by the actual freeing, as there will never be a need again for a second user of this label. The Linux kernel CVE team has assigned CVE-2025-40145 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit 75996c92f4de309f855471927e6489f5a354cfd4 and fixed in 6.17.3 with commit 77732c58fef6247b71493dc3997af0ec0aaad5c7 Issue introduced in 6.15 with commit 75996c92f4de309f855471927e6489f5a354cfd4 and fixed in 6.18-rc1 with commit ab81f2f79c683c94bac622aafafbe8232e547159 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-40145 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/pwrctrl/slot.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/77732c58fef6247b71493dc3997af0ec0aaad5c7 https://git.kernel.org/stable/c/ab81f2f79c683c94bac622aafafbe8232e547159