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 7C377205AA3 for ; Wed, 16 Apr 2025 14:17:11 +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=1744813031; cv=none; b=lYHwo6+X3+7uOmytciN9zS0WX4KiiV4APpED8K8EltWuTIQzMMAFdx9gsARY0x3nmUO1TIv2OXRVBTxL2+tPGXtkX3XmRq9DCP4v7xFxwYMNC/kd5aCQ78XgB7iaFI6yipX94EXuR2Q1ZB/wLRcitOkjaGOSwlD6Gm1efF5vkUU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744813031; c=relaxed/simple; bh=IrhloO4gNvSkrHD2TupSuFja2MwAEI2vTeForXkxxdc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RzvS7mP7rvli0wRUdfLWUQcDwJpNVzexd+kpStDBHkfW+AU2k5KsKXHA3SmLktlzwYLV1pHnZWDFHudYitBEnf1rXrmI8By5ufwwm98VQU2RIciRJWdZLiQPvFJeK2YKWZG56+ZPF/jkn6sMYK2Lou+yBEsdZkhKQDQzACIJ0NI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=uaIR1as4; 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="uaIR1as4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E0D1CC4CEE2; Wed, 16 Apr 2025 14:17:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744813031; bh=IrhloO4gNvSkrHD2TupSuFja2MwAEI2vTeForXkxxdc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=uaIR1as4Raxkz+o4IBA7KFbAmkHBjKCwRIlrDrefS+GYEwWvzWHt4EczRwiCRbsXV vygmkLYkVgbk64p1UmiB0khOXfD7cojToEyboHAGJA39Tj25eGQDioTuEebcrbAJd4 cGoHQv2meTULJu4SYmqrroPX3ITYyK0xosfpsRzM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-22095: PCI: brcmstb: Fix error path after a call to regulator_bulk_get() Date: Wed, 16 Apr 2025 16:13:06 +0200 Message-ID: <2025041619-CVE-2025-22095-7f29@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=3161; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=IrhloO4gNvSkrHD2TupSuFja2MwAEI2vTeForXkxxdc=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn/dx32S9gdk6QUVl7XYDRPMqLk2JYmcU/lG8lu03fFP T3W+6ujI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbimMcwP3NO3benvqq5E3OF /V2sVt3OfFnwjmFBo0wjx3UNvo1i35gYr3/YVcA4h+8gAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: PCI: brcmstb: Fix error path after a call to regulator_bulk_get() If the regulator_bulk_get() returns an error and no regulators are created, we need to set their number to zero. If we don't do this and the PCIe link up fails, a call to the regulator_bulk_free() will result in a kernel panic. While at it, print the error value, as we cannot return an error upwards as the kernel will WARN() on an error from add_bus(). [kwilczynski: commit log, use comma in the message to match style with other similar messages] The Linux kernel CVE team has assigned CVE-2025-22095 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit 9e6be018b26347c26a93e63fb50a37ee2c9311de and fixed in 6.1.134 with commit 99a0efba9f903acbdece548862b6b4cbe7d999e1 Issue introduced in 6.0 with commit 9e6be018b26347c26a93e63fb50a37ee2c9311de and fixed in 6.6.87 with commit eedd054834930b8d678f0776cd4b091b8fffbb4a Issue introduced in 6.0 with commit 9e6be018b26347c26a93e63fb50a37ee2c9311de and fixed in 6.12.23 with commit df63321a40cc98e52313cffbff376b8ae9ceffa7 Issue introduced in 6.0 with commit 9e6be018b26347c26a93e63fb50a37ee2c9311de and fixed in 6.13.11 with commit 7842e842a9bf6bd5866c84f588353711d131ab1a Issue introduced in 6.0 with commit 9e6be018b26347c26a93e63fb50a37ee2c9311de and fixed in 6.14.2 with commit 6f44e1fdb006db61394aa4d4c25728ada00842e7 Issue introduced in 6.0 with commit 9e6be018b26347c26a93e63fb50a37ee2c9311de and fixed in 6.15-rc1 with commit 3651ad5249c51cf7eee078e12612557040a6bdb4 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-22095 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/controller/pcie-brcmstb.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/99a0efba9f903acbdece548862b6b4cbe7d999e1 https://git.kernel.org/stable/c/eedd054834930b8d678f0776cd4b091b8fffbb4a https://git.kernel.org/stable/c/df63321a40cc98e52313cffbff376b8ae9ceffa7 https://git.kernel.org/stable/c/7842e842a9bf6bd5866c84f588353711d131ab1a https://git.kernel.org/stable/c/6f44e1fdb006db61394aa4d4c25728ada00842e7 https://git.kernel.org/stable/c/3651ad5249c51cf7eee078e12612557040a6bdb4