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 ED3C8FC0C for ; Thu, 20 Jun 2024 11:16:32 +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=1718882193; cv=none; b=Ab+DUbMwfyVFyhQG9AkYUmV/DKpSJwyzAHQQ03SwIu7SvavwBVHqhAGO5M45Q95jL18fQoXiyiCXJ2DDTkNRtMt5TjkkBoKszr6LKMZiizZ/cFWcsm2Au80jhlIfPWjZ+CttX6EAh2LqB2IHMSXKmQ1ca8bFteQ1fHMM2ifbYhE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718882193; c=relaxed/simple; bh=duIYk1x4PEAVfAqwMjW6t6IPWWeo1vRzDxOAKya7/Qg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ehSwlkCXbbUeFn1RWtnXc18AtefwzFdRsyeqkjsU/iQdQZtV97GSOO0TFFg/N2HxFW6q+6dWyvXTno+to4MJE4BsRH1er3A6cs/hW6c0FK6QM70X2/sMyv0/d4YTz/toSiAAs3ei0mEHauLrcSjZAL2nrvYZEvRnIfd4QJCTxM8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=j7jVeXAZ; 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="j7jVeXAZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 284BDC2BD10; Thu, 20 Jun 2024 11:16:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718882192; bh=duIYk1x4PEAVfAqwMjW6t6IPWWeo1vRzDxOAKya7/Qg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=j7jVeXAZVXm7KOB+yh872Zz9S8kFrctDG7Z5NiepRUn3P35147XdHL/qCm6nwNkjt ZXxrxw46c944IkARuNSOwCKhIdDl8KmHJADPb4bJmDlprsVdeNu4UHEfjBwm96JAAO pvsE2Z1VEQ2bnXhKUpw9a1DriV6Frpbs26yiCndY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48716: ASoC: codecs: wcd938x: fix incorrect used of portid Date: Thu, 20 Jun 2024 13:15:56 +0200 Message-ID: <2024062055-CVE-2022-48716-7621@gregkh> X-Mailer: git-send-email 2.45.2 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=2116; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=duIYk1x4PEAVfAqwMjW6t6IPWWeo1vRzDxOAKya7/Qg=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkl/NkMOVMllsw7aO98ctEet9jFMRPr7Qpnf7o2qfbLX P+TpededcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmcCGcHEKwERqvzAs6Jtdumbfa/PJuR7O n9+v+h5ivyLqIMNcWRMh07m53zRPhZTcuttwTsA1LtEZAA== 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: wcd938x: fix incorrect used of portid Mixer controls have the channel id in mixer->reg, which is not same as port id. port id should be derived from chan_info array. So fix this. Without this, its possible that we could corrupt struct wcd938x_sdw_priv by accessing port_map array out of range with channel id instead of port id. The Linux kernel CVE team has assigned CVE-2022-48716 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit e8ba1e05bdc0 and fixed in 5.15.22 with commit aa7152f9f117 Issue introduced in 5.14 with commit e8ba1e05bdc0 and fixed in 5.16.8 with commit 9167f2712dc8 Issue introduced in 5.14 with commit e8ba1e05bdc0 and fixed in 5.17 with commit c5c1546a654f 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-48716 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/wcd938x.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/aa7152f9f117b3e66b3c0d4158ca4c6d46ab229f https://git.kernel.org/stable/c/9167f2712dc8c24964840a4d1e2ebf130e846b95 https://git.kernel.org/stable/c/c5c1546a654f613e291a7c5d6f3660fc1eb6d0c7