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 E95FF1A3BA1 for ; Wed, 26 Feb 2025 01:59:57 +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=1740535198; cv=none; b=Apbt4TmcB7Nop69Ezncke7/pEgNcMymVP0Xe7I7eSjxER2KSW9mh/UgNXMKJixtxhbuZF6NEXvfoDvDmFBY11hDp81xDS4U6/oZ9JR5nWuGom65u3gHogXouG32uNvPlf8bGayUp4OpGbpz3zBYm27XGsAulOqF+hBnnly3HsYs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535198; c=relaxed/simple; bh=USht1p1J3HPcfXu7LDeAH5yg39M6VQ6vyEfj2jPlHK8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sXNIqRihlxhp1gvJuxp1ivUqYkPnfpCGE0UCNb4EYoNC2vCsUQhk4YYbTQ0vu7TOAIdasUofScgRm26XBLIM8TQ/ts5BpyasJp4pMRimTReZ4Zh/BmFWPIvCZH2pA4yMPfG3tE+NVtVkqfLDi1FexELS2Y0fVffCuh0qVSKhbII= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1w+vIzpR; 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="1w+vIzpR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C1306C4CEDD; Wed, 26 Feb 2025 01:59:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535197; bh=USht1p1J3HPcfXu7LDeAH5yg39M6VQ6vyEfj2jPlHK8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=1w+vIzpRdYGbhi8FnE9DLtXla9ZmxvHT4K1r9O8PeVv8LErEkvGVUjtuz+c3TQSSo A9Un3dQnRO7UH1RS8zq69umBxCy860fB6GKdCzkksEM/34Ak7FmXmMsV7XwVhgJX3K v3MSrQkYpUYULs/lziAVD3BmN6kjNvujbaRpJV80= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49241: ASoC: atmel: Fix error handling in sam9x5_wm8731_driver_probe Date: Wed, 26 Feb 2025 02:57:26 +0100 Message-ID: <2025022625-CVE-2022-49241-928c@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=2706; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=USht1p1J3HPcfXu7LDeAH5yg39M6VQ6vyEfj2jPlHK8=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7SgJzSzTYbpiY9RUu6o9Y1bXDLud41zr2U/xm7j4ZX 3KsJE90xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwES8XBjmF9ziK/u/fNOahm0z fZd//666r0dvAsM81W0tdaVLzv/f63Pvy4qCBRFsvUo3AA== 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 sam9x5_wm8731_driver_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 path. The Linux kernel CVE team has assigned CVE-2022-49241 to this issue. Affected and fixed versions =========================== Issue introduced in 3.12 with commit fdbcb3cba54b29a37dfe42acdc0e72c543e0807d and fixed in 5.10.110 with commit 90ac679aa6a01841da90ec5a4aaa4b5e0badddf0 Issue introduced in 3.12 with commit fdbcb3cba54b29a37dfe42acdc0e72c543e0807d and fixed in 5.15.33 with commit f589063b585ac6dd2081bde6c145411cf48d8d92 Issue introduced in 3.12 with commit fdbcb3cba54b29a37dfe42acdc0e72c543e0807d and fixed in 5.16.19 with commit 14228225091a0854b1de23e5b4fe8bdeeca9683b Issue introduced in 3.12 with commit fdbcb3cba54b29a37dfe42acdc0e72c543e0807d and fixed in 5.17.2 with commit f43ad5dc43240289f4cf13c16cc506f4f7087931 Issue introduced in 3.12 with commit fdbcb3cba54b29a37dfe42acdc0e72c543e0807d and fixed in 5.18 with commit 740dc3e846537c3743da98bf106f376023fd085c 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-49241 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/sam9x5_wm8731.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/90ac679aa6a01841da90ec5a4aaa4b5e0badddf0 https://git.kernel.org/stable/c/f589063b585ac6dd2081bde6c145411cf48d8d92 https://git.kernel.org/stable/c/14228225091a0854b1de23e5b4fe8bdeeca9683b https://git.kernel.org/stable/c/f43ad5dc43240289f4cf13c16cc506f4f7087931 https://git.kernel.org/stable/c/740dc3e846537c3743da98bf106f376023fd085c