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 DA2DBFC0C for ; Thu, 20 Jun 2024 11:16:35 +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=1718882196; cv=none; b=W3JtMcuL9dZHLMpMhdEP9ajmz8zuQidR7zdTNLsmKo9MS/cCF8KG3Q73MNskypbY3jGkS88Tl0suTXqskplMTycTIl/UNtI6LnAzEq50ghQ0W0hMnM5L4qeVMdxHN4YF2HD4z68XUb/FY2Pu4z057eGK+NvWFnHqHLIEq4bJMoU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718882196; c=relaxed/simple; bh=2KE5QdSo70j70H1+/5Unxpynxn8FH5VFYGgwadukffg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QaUoafhdP/PuaVf/AwH2KjP/47jw7PMO524WKj6w5cl7KOBRSEjqCq+eK5nylMPlq5ySde80YAfHQmHfmZVXIO047AwIQgqWMiDymZHABFE9A//xPlTtpIgOxPxAjNmCATSZ7Oq9p62LHNy6m8D4pZV8+whV+u529m47SSJ7I80= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xqubxkj3; 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="xqubxkj3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 191FEC2BD10; Thu, 20 Jun 2024 11:16:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718882195; bh=2KE5QdSo70j70H1+/5Unxpynxn8FH5VFYGgwadukffg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=xqubxkj3mCiPy7aVDJLLSy5HvymokbPEdeE/o7pntNAfagrJcluDOWG2of87dQE8B c9FwcPvXUurBqdvh9KfXjZUZQ9IC4VkzKybnJZbqF814HJIuBigvGhB9dHoAlemvFI GXlEl40yb3i5QtvDEtTx8QR7i1FsITQjC1FnHKf0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48717: ASoC: max9759: fix underflow in speaker_gain_control_put() Date: Thu, 20 Jun 2024 13:15:57 +0200 Message-ID: <2024062055-CVE-2022-48717-064d@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=2567; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2KE5QdSo70j70H1+/5Unxpynxn8FH5VFYGgwadukffg=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkl/NnZK3uLss98OX7f505Fo92rmrBf0yvEV/F+vbjU6 /KVoq59HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRJz8Y5tnIuwua3Tul9OYy 8+ZX3Zd7vs49Y8+w4IrmPxfvYzZTrxrvevxgQWDch86o3QA= 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: max9759: fix underflow in speaker_gain_control_put() Check for negative values of "priv->gain" to prevent an out of bounds access. The concern is that these might come from the user via: -> snd_ctl_elem_write_user() -> snd_ctl_elem_write() -> kctl->put() The Linux kernel CVE team has assigned CVE-2022-48717 to this issue. Affected and fixed versions =========================== Issue introduced in 4.17 with commit fa8d915172b8 and fixed in 4.19.228 with commit a0f49d12547d Issue introduced in 4.17 with commit fa8d915172b8 and fixed in 5.4.178 with commit 71e60c170105 Issue introduced in 4.17 with commit fa8d915172b8 and fixed in 5.10.99 with commit 5a45448ac95b Issue introduced in 4.17 with commit fa8d915172b8 and fixed in 5.15.22 with commit baead410e5db Issue introduced in 4.17 with commit fa8d915172b8 and fixed in 5.16.8 with commit f114fd6165df Issue introduced in 4.17 with commit fa8d915172b8 and fixed in 5.17 with commit 4c907bcd9dcd 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-48717 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/max9759.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/a0f49d12547d45ea8b0f356a96632dd503941c1e https://git.kernel.org/stable/c/71e60c170105d153e34d01766c1e4db26a4b24cc https://git.kernel.org/stable/c/5a45448ac95b715173edb1cd090ff24b6586d921 https://git.kernel.org/stable/c/baead410e5db49e962a67fffc17ac30e44b50b7c https://git.kernel.org/stable/c/f114fd6165dfb52520755cc4d1c1dfbd447b88b6 https://git.kernel.org/stable/c/4c907bcd9dcd233da6707059d777ab389dcbd964