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 08D7026B09F for ; Fri, 9 May 2025 06:42:30 +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=1746772951; cv=none; b=DJdk+UZ+X0XNOf2L+hLkcyhKWuJU2ZRRXW+kxgl3khNmhFApcoc+ATO0igb5nFcHCswkeKEBs0LsnrsWN2UrDP0A7wi7qvwtZHN1r+emRc8V+9EEgiItS8eLXl8d94FIzyXxQf3f2CZyGl9kF94lD257l8JpbPn2yNduflJbDKM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746772951; c=relaxed/simple; bh=TRtIJRQ/2ptCiodwIgfLJ2BMAPZ+E1iV3JmxgPO6QUk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bza9Lv0t+6NXZss2H93nt+11JpoLDsBwG/AD3ZO8qAoazgApEZv08ZjzwZYAfYZfmgxgZjpyr0mlljwFuBrpDiNW1iq46t/Q32BWSB+ypd73VX8+AFX7B7BrvpR8XVkZSdqeeTGitAmIwecVmSCerTZ942kKzMmlM+gAzvqhK+I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yF3nnlMc; 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="yF3nnlMc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09961C4CEE4; Fri, 9 May 2025 06:42:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746772950; bh=TRtIJRQ/2ptCiodwIgfLJ2BMAPZ+E1iV3JmxgPO6QUk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=yF3nnlMcVk/4DyHyrtc0w9PdqfzViphxmfGo7lbn4Ue0K2BvFNgpyTaFaZC3gNW/1 vlBPg8V4mSAGDQAEnYMTfM7U2kqzcMtogtR+izVV3SQiQ/kNuM+/h6UcuYPpt7flrt XHWXDq/uSuIVzoyKa1x4phSFedIG3UJ6qtLA9DuU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37836: PCI: Fix reference leak in pci_register_host_bridge() Date: Fri, 9 May 2025 08:42:15 +0200 Message-ID: <2025050914-CVE-2025-37836-5ccf@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=3433; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=hpyr04Pz9XcznRdbGDUEEcD+d4H83cXfUaue6/L29XY=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmyi4+1SezkejghU+KBSdXqo1Gu0d+3teiKVq7b3x1yY 9OVfJOdHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARLh+GBT03V4XMXX3ZfPmX 0gPSZ1NM/h19eYVhfnZEwf0tywL+ixpt2Z6tyLVe4MbhEgA= 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: Fix reference leak in pci_register_host_bridge() If device_register() fails, call put_device() to give up the reference to avoid a memory leak, per the comment at device_register(). Found by code review. [bhelgaas: squash Dan Carpenter's double free fix from https://lore.kernel.org/r/db806a6c-a91b-4e5a-a84b-6b7e01bdac85@stanley.mountain] The Linux kernel CVE team has assigned CVE-2025-37836 to this issue. Affected and fixed versions =========================== Issue introduced in 4.10 with commit 37d6a0a6f4700ad3ae7bbf8db38b4557e97b3fe4 and fixed in 5.10.237 with commit f4db1b2c9ae3d013733c302ee70cac943b7070c0 Issue introduced in 4.10 with commit 37d6a0a6f4700ad3ae7bbf8db38b4557e97b3fe4 and fixed in 5.15.181 with commit 3297497ad2246eb9243849bfbbc57a0dea97d76e Issue introduced in 4.10 with commit 37d6a0a6f4700ad3ae7bbf8db38b4557e97b3fe4 and fixed in 6.1.136 with commit b783478e0c53ffb4f04f25fb4e21ef7f482b05df Issue introduced in 4.10 with commit 37d6a0a6f4700ad3ae7bbf8db38b4557e97b3fe4 and fixed in 6.6.89 with commit bd2a352a0d72575f1842d28c14c10089f0cfe1ae Issue introduced in 4.10 with commit 37d6a0a6f4700ad3ae7bbf8db38b4557e97b3fe4 and fixed in 6.12.24 with commit 9707d0c932f41006a2701afc926b232b50e356b4 Issue introduced in 4.10 with commit 37d6a0a6f4700ad3ae7bbf8db38b4557e97b3fe4 and fixed in 6.13.12 with commit bbba4c50a2d2a1d3f3bf31cc4b8280cb492bf2c7 Issue introduced in 4.10 with commit 37d6a0a6f4700ad3ae7bbf8db38b4557e97b3fe4 and fixed in 6.14.3 with commit f9208aec86226524ec1cb68a09ac70e974ea6536 Issue introduced in 4.10 with commit 37d6a0a6f4700ad3ae7bbf8db38b4557e97b3fe4 and fixed in 6.15-rc1 with commit 804443c1f27883926de94c849d91f5b7d7d696e9 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-37836 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/probe.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/f4db1b2c9ae3d013733c302ee70cac943b7070c0 https://git.kernel.org/stable/c/3297497ad2246eb9243849bfbbc57a0dea97d76e https://git.kernel.org/stable/c/b783478e0c53ffb4f04f25fb4e21ef7f482b05df https://git.kernel.org/stable/c/bd2a352a0d72575f1842d28c14c10089f0cfe1ae https://git.kernel.org/stable/c/9707d0c932f41006a2701afc926b232b50e356b4 https://git.kernel.org/stable/c/bbba4c50a2d2a1d3f3bf31cc4b8280cb492bf2c7 https://git.kernel.org/stable/c/f9208aec86226524ec1cb68a09ac70e974ea6536 https://git.kernel.org/stable/c/804443c1f27883926de94c849d91f5b7d7d696e9