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 8C6641B0F23 for ; Wed, 26 Feb 2025 02:00:19 +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=1740535219; cv=none; b=fwdPi3w8hFcrl7T/fEsvSYWYGKN9Nt65+jMM05YgMZs42+cZWNGDQP5MkVH1gHU0MbrqgoShbz1XrsFKxbjIiqEuRWFOmwR1XUF0KBdSxyUpeVs4W2O3YJJUu7VGoSCQ1fl7cJaA4v5Je5Vrdfn+gkShTkapZXDqLoq5aVdj8ho= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535219; c=relaxed/simple; bh=o/NIS94F1Dfp8YICrTvvOPj8So1rmoAEF/UzWS+x1f8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JFqLJiBK6MMbdXnzwo+6EgZLgEB9w+mWQkJ2iKbQ2NwXe+V/41VT9uVz+LBDbczDITB9pWCkm738ePjqpRCoEas9wbOZ6zQapf5etu1vLb+8HKc+ySbWiFXNMTSUCydSmCjdjZdXXI/5o0KiGn1IVryvpEGYIh0roFNznf126kg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=GI1uljpc; 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="GI1uljpc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5EF6EC4CEDD; Wed, 26 Feb 2025 02:00:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535219; bh=o/NIS94F1Dfp8YICrTvvOPj8So1rmoAEF/UzWS+x1f8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=GI1uljpcmpw2gE/7rL1P/8ecPdr6W8L9o1xPckutz1shrBAeit5Hg3YfLRBD0FuYV rnT2WPyIJIyQrCvY+tKj2dtSyZt3kEtulY9qx8Bvv1Vah9yqEiAJnOJMsfkTBeatsh UEv+tKO8OYcutZ2P5jJ82V1ctOeQOWUab+aR9Pmg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49246: ASoC: atmel: Fix error handling in snd_proto_probe Date: Wed, 26 Feb 2025 02:57:31 +0100 Message-ID: <2025022625-CVE-2022-49246-0ed0@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=2523; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=o/NIS94F1Dfp8YICrTvvOPj8So1rmoAEF/UzWS+x1f8=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7SoJ8d6fdSFdqlWn4YXlE+JH29/sRFiEdCwwqawscD taXn5fsiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIkoajLMZFxQn2LIH9Py9bfv N84rlhqLGZeUMMwVXhW8Ne25G6dZecuixSXHJKPnq/wEAA== 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: ASoC: atmel: Fix error handling in snd_proto_probe 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 paths. Fix this by calling of_node_put() in error handling too. The Linux kernel CVE team has assigned CVE-2022-49246 to this issue. Affected and fixed versions =========================== Issue introduced in 4.20 with commit a45f8853a5f95e3760dfbd7ba09d3d597d247040 and fixed in 5.15.33 with commit f32ac9bf5e3f594ef9bfedb410aebc98cf784e69 Issue introduced in 4.20 with commit a45f8853a5f95e3760dfbd7ba09d3d597d247040 and fixed in 5.16.19 with commit 0f517480d5888cd54487c5662ce4da95b30ad798 Issue introduced in 4.20 with commit a45f8853a5f95e3760dfbd7ba09d3d597d247040 and fixed in 5.17.2 with commit 8fa969cd8485031294f91fc7184399000cae6355 Issue introduced in 4.20 with commit a45f8853a5f95e3760dfbd7ba09d3d597d247040 and fixed in 5.18 with commit b0bfaf0544d08d093d6211d7ef8816fb0b5b6c75 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-49246 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/atmel/mikroe-proto.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/f32ac9bf5e3f594ef9bfedb410aebc98cf784e69 https://git.kernel.org/stable/c/0f517480d5888cd54487c5662ce4da95b30ad798 https://git.kernel.org/stable/c/8fa969cd8485031294f91fc7184399000cae6355 https://git.kernel.org/stable/c/b0bfaf0544d08d093d6211d7ef8816fb0b5b6c75