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 BCE641AA791 for ; Wed, 26 Feb 2025 01:59:33 +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=1740535173; cv=none; b=lwFCgTeBjve0s1gQ1wlcUD1ct8OdDxGYxXC7ep0BIGixGtoJbLnQ3ssTYm/L+gZ98aIMD/OrE2epwH7jvOZL/aKwsXsGhE10plT3Ny6Os7+QAU4HhhPa33KX7j3MGIXLtjvcvxLJPBRpUWO1Kq0xJCl2XeQM1bMBZkV4JJNCyCc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535173; c=relaxed/simple; bh=KHQWzrUyTVAuIb5g7hhVaLcoHaQNPNVc9xjbM2yTcKA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IWRxgP2Na5S3b3tsvrukbH6z9c5DFYcAAX9X3BH1UHyvtjRZMzWUUSKvNM+o7cWqOHkHYFmsiKfFkltq9k6w1sXxMcyOK1AkObBZIXzUVH8HvIBulPXWFUbA39kGfK0zp8WpZyc6tf9yQwKyKnHU41flpJbkLY6Lv0ZRPFQ6jvk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=E3rdNA0Y; 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="E3rdNA0Y" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 93359C4CEDD; Wed, 26 Feb 2025 01:59:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535173; bh=KHQWzrUyTVAuIb5g7hhVaLcoHaQNPNVc9xjbM2yTcKA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=E3rdNA0YwQcFWqNTMfURHaJvnzqCOnnTdOv9QtyMXC/S5xhOpO6Za1d+z6TR5PiAs e5YzxQe2mw64/iX+bDbtkr7xZ93d/dXqQcNzXs1irJpRoxz/Ce8OOLg46N9Ar4sSEc S6gRptiaTu4MjDQjdJ10cWsUpfHrDgu4CFd3spAg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49213: ath10k: Fix error handling in ath10k_setup_msa_resources Date: Wed, 26 Feb 2025 02:56:58 +0100 Message-ID: <2025022620-CVE-2022-49213-6ce9@gregkh> X-Mailer: git-send-email 2.48.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=2702; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=KHQWzrUyTVAuIb5g7hhVaLcoHaQNPNVc9xjbM2yTcKA=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7Snzk1LbND+1bzMp/9PBVwbzVsepGyvdaw58frws9k ZAoqbO1I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYy9zrD/PqsQ5vL1+39WHey idnhRlsKk3nUBYYFByd53WGLWPN6YfCbFdvc3YwveOYcBAA= 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: ath10k: Fix error handling in ath10k_setup_msa_resources The device_node pointer is returned by of_parse_phandle() with refcount incremented. We should use of_node_put() on it when done. This function only calls of_node_put() in the regular path. And it will cause refcount leak in error path. The Linux kernel CVE team has assigned CVE-2022-49213 to this issue. Affected and fixed versions =========================== Issue introduced in 5.8 with commit 727fec790ead3d75e2735f66209949c2163523ea and fixed in 5.10.110 with commit 315772133a4b960859e4f5efe0e738e347188cdc Issue introduced in 5.8 with commit 727fec790ead3d75e2735f66209949c2163523ea and fixed in 5.15.33 with commit 32939187f254171a5666badc058bc3787fe454af Issue introduced in 5.8 with commit 727fec790ead3d75e2735f66209949c2163523ea and fixed in 5.16.19 with commit 74b1d41e1b6410eed5c76d00eedb262036e9eff5 Issue introduced in 5.8 with commit 727fec790ead3d75e2735f66209949c2163523ea and fixed in 5.17.2 with commit 4ed37d611ea5d222c3ecb3549e4c2d34b8f3c335 Issue introduced in 5.8 with commit 727fec790ead3d75e2735f66209949c2163523ea and fixed in 5.18 with commit 9747a78d5f758a5284751a10aee13c30d02bd5f1 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-49213 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/net/wireless/ath/ath10k/snoc.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/315772133a4b960859e4f5efe0e738e347188cdc https://git.kernel.org/stable/c/32939187f254171a5666badc058bc3787fe454af https://git.kernel.org/stable/c/74b1d41e1b6410eed5c76d00eedb262036e9eff5 https://git.kernel.org/stable/c/4ed37d611ea5d222c3ecb3549e4c2d34b8f3c335 https://git.kernel.org/stable/c/9747a78d5f758a5284751a10aee13c30d02bd5f1