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 78AF41BC39 for ; Thu, 22 Aug 2024 03:32:48 +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=1724297568; cv=none; b=Zc9mVdhTnZlO3fLh8S0szZ2OsxWCflf1d0TjrkxxY3rmksy4jS6/Vtt+w5zjCPF2nSrt6k4yzhunPu+jOtTqgXWiHIGdgghGzSHLTLX+qSzszY4I3hKfCfMsH9sSpY6jBqz4Zv0taIWnxoS/j7Eh8RU2ZRT3ha769wP7VI4UxEM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724297568; c=relaxed/simple; bh=b5soyOKSd0dKd+8jQSEuHiGKI2TQv78jfS4FUfLJzIk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Ehok3t68uni+ZctMQR9LmkmjQL1ieHrRFMCPlhtc0N3HR+2AENEAYixWPgt4zJr4x9Vp3b/1nBYAHSmgM3WjrdLVdaE+ur8neb24+jNhI0ypIXwIvVB3NOzUcwZoVEeYplL9Yo2wxtzqkgeFhOrk8wiDcBWMKbwhS8vPklGFEBc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rcLbcF2U; 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="rcLbcF2U" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7198C4AF0B; Thu, 22 Aug 2024 03:32:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1724297568; bh=b5soyOKSd0dKd+8jQSEuHiGKI2TQv78jfS4FUfLJzIk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=rcLbcF2UQlR3kp3fP+1ILzXXjZNfluxbgDyrt2Qk4Qo51LxZbTpNu8CJoqrIT/a5D +PkraOGDwVBp9zfD3UmETo8bmnSyZsxgmJz0KXmGqWMpwzhrmjwShso2kXhFAnxg0c D9LVTaoBMRp8DJ/YYWHwvl/XQti3XOBRJOW511vg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48917: ASoC: ops: Shift tested values in snd_soc_put_volsw() by +min Date: Thu, 22 Aug 2024 11:31:18 +0800 Message-ID: <2024082217-CVE-2022-48917-9b2a@gregkh> X-Mailer: git-send-email 2.46.0 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=2889; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=b5soyOKSd0dKd+8jQSEuHiGKI2TQv78jfS4FUfLJzIk=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnHNrKun6TA06Wp4dMo8GTFnp8rZQs890yc9W3xmt4wB WPpjWfNO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAizxIYFnR/TXs2hU9q95N8 CeZd2XVpjyNXFzEs6LL4P//Au4tR90pUjcQ2+D8Ri9vrCAA= 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: ops: Shift tested values in snd_soc_put_volsw() by +min While the $val/$val2 values passed in from userspace are always >= 0 integers, the limits of the control can be signed integers and the $min can be non-zero and less than zero. To correctly validate $val/$val2 against platform_max, add the $min offset to val first. The Linux kernel CVE team has assigned CVE-2022-48917 to this issue. Affected and fixed versions =========================== Issue introduced in 4.9.300 with commit 40f598698129 and fixed in 4.9.305 with commit 69f42e41256d Issue introduced in 4.14.265 with commit 586ef863c943 and fixed in 4.14.270 with commit 7e0e4bc93811 Issue introduced in 4.19.228 with commit 65a61b1f56f5 and fixed in 4.19.233 with commit 0b2ecc916347 Issue introduced in 5.4.178 with commit 68fd71872428 and fixed in 5.4.183 with commit f3537f1b2bfd Issue introduced in 5.10.99 with commit a9394f21fba0 and fixed in 5.10.104 with commit 6951a5888165 Issue introduced in 5.15.22 with commit 9e8895f1b3d4 and fixed in 5.15.27 with commit 050b1821f27c Issue introduced in 5.16.8 with commit bb72d2dda855 and fixed in 5.16.13 with commit 70712d5afbbe 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-48917 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/soc-ops.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/69f42e41256d5a234d3ae0d35fa66dc6d8171846 https://git.kernel.org/stable/c/7e0e4bc93811cf600508ff36f07abea7b40643ed https://git.kernel.org/stable/c/0b2ecc9163472128e7f30b517bee92dcd27ffc34 https://git.kernel.org/stable/c/f3537f1b2bfd3b1df15723df49fc26eccd5112fe https://git.kernel.org/stable/c/6951a5888165a38bb7c39a2d18f5668b2f1241c7 https://git.kernel.org/stable/c/050b1821f27c5d4fd5a298f6e62c3d3c9335e622 https://git.kernel.org/stable/c/70712d5afbbea898d5f51fa02e315fe0a4835043 https://git.kernel.org/stable/c/9bdd10d57a8807dba0003af0325191f3cec0f11c