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 B53A62F616A for ; Wed, 22 Oct 2025 13:24:59 +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=1761139499; cv=none; b=mQPibOdIyjAeIo8S/9SJJowapmFEAlKYmgmh0mAl0k8Qgok2PH5VnUQBXtgvmD8Gqo1SINehSXt8jAofXZ7gccsWiwuXY0EBxmNozr4OLgyiz4hehOTX9PRnc2vHJEo3fDjbFGRrmyF3SqLap8hUZVKVvppM5KtlTbLcLQ2/vA4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761139499; c=relaxed/simple; bh=bHUnsVqwX7ybDircV+n2Pd/G2c4xqU0bqrpUiTxFL9Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ftQQrG/vYeq4opORpoEmvNyxgQlUs8XYXDzjju7yBfufJKttogIhVsyYGN7UqqkIG+BcLUJKI13SAukqRLTa5z8EoCYN9JAg1wW2UrJVf9ocJAcT5AWo0aDviMRJE/CtQjDIH9k4sBjvT8uQaNAU8JNTz3YnDClDlyaHx0y7iKY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=oMykKw1h; 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="oMykKw1h" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED5EDC4CEE7; Wed, 22 Oct 2025 13:24:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1761139499; bh=bHUnsVqwX7ybDircV+n2Pd/G2c4xqU0bqrpUiTxFL9Y=; h=From:To:Cc:Subject:Date:Reply-to:From; b=oMykKw1hvtD+6wVlYmxLuJTdO3CTT+4Ql8ZW3jjFnMYZvxjDD3vvWZfHROoq9jM7T g9hM3IL4a3/RfpO9JV0Qn65nceow/kbiYOsfBWVca20NK+KpKwDbFjO5AGebzFQ0vn cfPfbrjoXBAWyrGFV41LF8PyrGWlGGqJ76k05E5E= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50576: serial: pch: Fix PCI device refcount leak in pch_request_dma() Date: Wed, 22 Oct 2025 15:24:24 +0200 Message-ID: <2025102209-CVE-2022-50576-98f3@gregkh> X-Mailer: git-send-email 2.51.1 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=3752; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ggMq4LfQINYka+QF3Wuqqtb5SKm9E/knCoSUOR/5Q40=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk/bv0sfTW5+7fto57dnxr8u4ocFj7Z8PL3S5lbEicfp U7MS3sk2BHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATOS7CsGDSi7+du3fwuakF LLu3/KQiH9fOd/0MCxa0Xfl/+UDveu7IWw9OL7WcIW+ylx8A 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: serial: pch: Fix PCI device refcount leak in pch_request_dma() As comment of pci_get_slot() says, it returns a pci_device with its refcount increased. The caller must decrement the reference count by calling pci_dev_put(). Since 'dma_dev' is only used to filter the channel in filter(), we can call pci_dev_put() before exiting from pch_request_dma(). Add the missing pci_dev_put() for the normal and error path. The Linux kernel CVE team has assigned CVE-2022-50576 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.38 with commit 3c6a483275f47a2ef7119309ad3d791c10cf30da and fixed in 4.9.337 with commit 90ff030ca10b69feeebda1427550ebf9ed2ad868 Issue introduced in 2.6.38 with commit 3c6a483275f47a2ef7119309ad3d791c10cf30da and fixed in 4.14.303 with commit 56e5a7c5ee3f0dc8978b5df2b1a98a1b060c5e2a Issue introduced in 2.6.38 with commit 3c6a483275f47a2ef7119309ad3d791c10cf30da and fixed in 4.19.270 with commit dfd15c5550b9190d5b0f9bcacb3e6436322f3854 Issue introduced in 2.6.38 with commit 3c6a483275f47a2ef7119309ad3d791c10cf30da and fixed in 5.4.229 with commit d165388227aa7e46a9751b90bae6337b5335cdbb Issue introduced in 2.6.38 with commit 3c6a483275f47a2ef7119309ad3d791c10cf30da and fixed in 5.10.163 with commit 07f4ca68b0f6bf84b6b391c14b59fd179fcde9c5 Issue introduced in 2.6.38 with commit 3c6a483275f47a2ef7119309ad3d791c10cf30da and fixed in 5.15.86 with commit 6f7d82380fbeaed3a940efc33c23f0c4bbd0fc02 Issue introduced in 2.6.38 with commit 3c6a483275f47a2ef7119309ad3d791c10cf30da and fixed in 6.0.16 with commit 4f5d28865c665c9064de631a518f9bc8099d9ce4 Issue introduced in 2.6.38 with commit 3c6a483275f47a2ef7119309ad3d791c10cf30da and fixed in 6.1.2 with commit 516614a371c26e3334625b4bca19a5362bf658d6 Issue introduced in 2.6.38 with commit 3c6a483275f47a2ef7119309ad3d791c10cf30da and fixed in 6.2 with commit 8be3a7bf773700534a6e8f87f6ed2ed111254be5 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-2022-50576 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/tty/serial/pch_uart.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/90ff030ca10b69feeebda1427550ebf9ed2ad868 https://git.kernel.org/stable/c/56e5a7c5ee3f0dc8978b5df2b1a98a1b060c5e2a https://git.kernel.org/stable/c/dfd15c5550b9190d5b0f9bcacb3e6436322f3854 https://git.kernel.org/stable/c/d165388227aa7e46a9751b90bae6337b5335cdbb https://git.kernel.org/stable/c/07f4ca68b0f6bf84b6b391c14b59fd179fcde9c5 https://git.kernel.org/stable/c/6f7d82380fbeaed3a940efc33c23f0c4bbd0fc02 https://git.kernel.org/stable/c/4f5d28865c665c9064de631a518f9bc8099d9ce4 https://git.kernel.org/stable/c/516614a371c26e3334625b4bca19a5362bf658d6 https://git.kernel.org/stable/c/8be3a7bf773700534a6e8f87f6ed2ed111254be5