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 368412F49E9 for ; Wed, 22 Oct 2025 13:24:45 +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=1761139488; cv=none; b=LIgYvdA00/X6+tYJtXhb0TipuXmpxmDGzTTGxuiKgH09ixKi9UfPg9C3C3iDl1DQpo6t2diIpo0K2QYj4wyQxZwKhfpwNiEJ3vRpOZdQcc7yWNF+7iIdnqNwIooFThap/fgKrYVtv2AvEmJhKLO5CuVGpdIPfQ7K1g1tTY+6p9c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761139488; c=relaxed/simple; bh=NFgT5zr4FUUt6CtL8Qjf+mfN/dLjd+Oy4qTjOR3i9wg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Pn1jMuTjewiFhO3WZIt/Ff7Z+DYE4H/SjlIiJYSssmxyZ/VovypMEc2blf3SQbrIitbzkDjjngDm1EF9D40YlfzP37/6nxtC6vLzmqG/MYOctVGZrJdmZx3ETAXddGJfE/cKF1RuLbytaVPSSD2JGDSo0gbOdikuxQ5ExzGo63k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=E+rFSikN; 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="E+rFSikN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8362DC4CEE7; Wed, 22 Oct 2025 13:24:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1761139485; bh=NFgT5zr4FUUt6CtL8Qjf+mfN/dLjd+Oy4qTjOR3i9wg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=E+rFSikNKL9TNWVYAtxKDQDK2TGJkzcbGhQ1tpQuroOip59wD5PKlC+B8vRJEBNes yDdvd15YgKgFwBOugSPFCpsga64c/vN6fRiJ+Y7w8lG6X21xj9f2CFbXERBpUmj4DX Guoyk1+la1A8cVvdnd1FhdvHpblk2InV3KTs8TDo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50572: ASoC: audio-graph-card: fix refcount leak of cpu_ep in __graph_for_each_link() Date: Wed, 22 Oct 2025 15:24:20 +0200 Message-ID: <2025102208-CVE-2022-50572-dbfb@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=2892; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=79wVBk1VxhaqQwPWJTPyRkFO5vcyI4Uz50trG1gc538=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk/bv248cPz8K6/C/nfVSdeSgooLNndsrQtYNKEFsn5R vcflPoJdsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEWtcwLNge+cY/qvCzjP/E FUqPGmaF3puRL8MwP3/urW8RoonfFvxbf3zqq7alqjl6iwA= 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: ASoC: audio-graph-card: fix refcount leak of cpu_ep in __graph_for_each_link() The of_get_next_child() returns a node with refcount incremented, and decrements the refcount of prev. So in the error path of the while loop, of_node_put() needs be called for cpu_ep. The Linux kernel CVE team has assigned CVE-2022-50572 to this issue. Affected and fixed versions =========================== Issue introduced in 5.1 with commit fce9b90c1ab7e915553c57353355700c79b39c86 and fixed in 5.4.229 with commit ed1376f771404917c2ec3ebc617431ec01146134 Issue introduced in 5.1 with commit fce9b90c1ab7e915553c57353355700c79b39c86 and fixed in 5.10.163 with commit 06c9d468c06806dab752eb8e72addbf3792c1023 Issue introduced in 5.1 with commit fce9b90c1ab7e915553c57353355700c79b39c86 and fixed in 5.15.86 with commit 85eb5c952b7fe2d2059beaa4a4dd26688b25547b Issue introduced in 5.1 with commit fce9b90c1ab7e915553c57353355700c79b39c86 and fixed in 6.0.16 with commit 49dad92af6892f46851af989ef3aa7cd7316c389 Issue introduced in 5.1 with commit fce9b90c1ab7e915553c57353355700c79b39c86 and fixed in 6.1.2 with commit 4cc8431ec77a43ea106d8bde0860c61cfdda1cd0 Issue introduced in 5.1 with commit fce9b90c1ab7e915553c57353355700c79b39c86 and fixed in 6.2 with commit 8ab2d12c726f0fde0692fa5d81d8019b3dcd62d0 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-50572 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: sound/soc/generic/audio-graph-card.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/ed1376f771404917c2ec3ebc617431ec01146134 https://git.kernel.org/stable/c/06c9d468c06806dab752eb8e72addbf3792c1023 https://git.kernel.org/stable/c/85eb5c952b7fe2d2059beaa4a4dd26688b25547b https://git.kernel.org/stable/c/49dad92af6892f46851af989ef3aa7cd7316c389 https://git.kernel.org/stable/c/4cc8431ec77a43ea106d8bde0860c61cfdda1cd0 https://git.kernel.org/stable/c/8ab2d12c726f0fde0692fa5d81d8019b3dcd62d0