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 6B76712BF3E for ; Fri, 24 May 2024 15:02:08 +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=1716562928; cv=none; b=RSdZDoM/R46tTPllG9RyvQsNYqie72M5DH3MDZ0plbr+mklFMRak7B/jlm1fnWmRTbujSVTr0kM/Yu2F2/yLzwME2R30OlwMMEDMn0qjmNVZNj3esqApW5nSSY5X26mj75LzIRtVN5TAlVN00RxZvMoMiuN1BVI4zTSl3rBtOwA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716562928; c=relaxed/simple; bh=ttKT9kIwg9yhLizvuYwDn7SV1Vq3WYHpc82JHGG15q0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QeMHHkf5/ukE8EX3xYt3MbRqxlH8lG37yUMTvkQpZoYn103kA0N2GAc7muo75VkG6YkwCqnjzYid1QPVnyU8BCdj7GFTWGFwp0RgRaEjfCMKT88GIktYEOiFYIOtI1O1/3KfzNCx/DSOcth/tKbLJCVw5wH8r5DotddpXI7a+yI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jPFmUtoe; 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="jPFmUtoe" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E43BC2BBFC; Fri, 24 May 2024 15:02:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716562928; bh=ttKT9kIwg9yhLizvuYwDn7SV1Vq3WYHpc82JHGG15q0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=jPFmUtoePh3/U0g05FzZXJStXQvcPMXGLPaHuvVUTWowESu0nFvROxPaltrBxTRD1 Clqu/8W/k0M1FHvL2+ylA38BNrjv+VOMaLI2Irj8ZV0AX17UqdTp7/tpfS7U2MsqAU qUlkKnstAQWZllfvpfxSf8I+UKmZRMCbm0M3AIxw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47502: ASoC: codecs: wcd934x: handle channel mappping list correctly Date: Fri, 24 May 2024 17:01:51 +0200 Message-ID: <2024052451-CVE-2021-47502-8650@gregkh> X-Mailer: git-send-email 2.45.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=2339; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ttKT9kIwg9yhLizvuYwDn7SV1Vq3WYHpc82JHGG15q0=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkBq++f0U+35RHbedGO85UGmwOfacPEG1nOZ/QOPA17l dDtefVdRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEwkxYphwck1D3wTf9xVudy9 cVdW4kPddZlPahjm1yfxipbGxr7SrZrz9f6kkoU1G67eAAA= 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: codecs: wcd934x: handle channel mappping list correctly Currently each channel is added as list to dai channel list, however there is danger of adding same channel to multiple dai channel list which endups corrupting the other list where its already added. This patch ensures that the channel is actually free before adding to the dai channel list and also ensures that the channel is on the list before deleting it. This check was missing previously, and we did not hit this issue as we were testing very simple usecases with sequence of amixer commands. The Linux kernel CVE team has assigned CVE-2021-47502 to this issue. Affected and fixed versions =========================== Issue introduced in 5.6 with commit a70d9245759a and fixed in 5.10.85 with commit 1089dac26c6b Issue introduced in 5.6 with commit a70d9245759a and fixed in 5.15.8 with commit 339ffb5b5600 Issue introduced in 5.6 with commit a70d9245759a and fixed in 5.16 with commit 23ba28616d30 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-2021-47502 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/codecs/wcd934x.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/1089dac26c6b4b833323ae6c0ceab29fb30ede72 https://git.kernel.org/stable/c/339ffb5b56005582aacc860524d2d208604049d1 https://git.kernel.org/stable/c/23ba28616d3063bd4c4953598ed5e439ca891101