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 2CDB81F3D24 for ; Fri, 27 Dec 2024 14:23:53 +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=1735309434; cv=none; b=RO5tRhGIkRZVc+1pE9fYh4rIBwUiEScZyZyyTctUw697yCbyW8ddNtfNQptuTZAyJnBjr/HqZGrmHEhYM/GaZSZDeHCflIt6crt/Y6n2AAcDfxEek/QdMBZ+adLIiG+1e4uYsLt+WWZHV95nfORojtefwgTvnUMi9HLElMrt87A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735309434; c=relaxed/simple; bh=L3lU9RiHy1JUmYGZ7w0kav2BpKj/Py+esQ/k5dWPsAw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UXmlnNCfk1zchSJlmrTGV6tPJ5PWdemgTyH+pW0ZkqW64aECBy5eiq6+8Jox9IGLg6X8zzYUK6AsKPG5RnDmVavYXB9vqF7XHsLxusevFOEeZV27zJObujeMXNW6XSBaHnzhpFIzbkiRByVCaUEpnVegcWh5gQyQvBk535T9Jqc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JOgG3Kew; 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="JOgG3Kew" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1AC37C4CED0; Fri, 27 Dec 2024 14:23:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735309433; bh=L3lU9RiHy1JUmYGZ7w0kav2BpKj/Py+esQ/k5dWPsAw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=JOgG3KewR1Fn9BBE7Qo37FbafBMc5wzv4JMOy1nkMP7/rfVk30J+56xV4fJSjwciP u7tOo2RSBOdNzMpUFb9u9706C3UquGIhDQoX6fIqq7KL9gUfSOlvjNcsaHCQAUtC7o W4Aix5nSc7bLjsh+j0RabAmumyMhLkQgChRKBq7M= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56557: iio: adc: ad7923: Fix buffer overflow for tx_buf and ring_xfer Date: Fri, 27 Dec 2024 15:23:08 +0100 Message-ID: <2024122711-CVE-2024-56557-7440@gregkh> X-Mailer: git-send-email 2.47.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=2424; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=L3lU9RiHy1JUmYGZ7w0kav2BpKj/Py+esQ/k5dWPsAw=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl5OwIORwgk3br5cIfagTeqLIoWcnJGQtOnzF5fFhnBx HkqrPt1RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyE4QXDfN81r3Yvei1lxi5v Eu743bHvb/WU/wzzlJ9c3vw6lWn2gROvQsM3CKfza9xgBwA= 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: iio: adc: ad7923: Fix buffer overflow for tx_buf and ring_xfer The AD7923 was updated to support devices with 8 channels, but the size of tx_buf and ring_xfer was not increased accordingly, leading to a potential buffer overflow in ad7923_update_scan_mode(). The Linux kernel CVE team has assigned CVE-2024-56557 to this issue. Affected and fixed versions =========================== Issue introduced in 5.6 with commit 851644a60d200c9a294de5a5594004bcf13d34c7 and fixed in 6.1.120 with commit 00663d3e000c31d0d49ef86a809f5c107c2d09cd Issue introduced in 5.6 with commit 851644a60d200c9a294de5a5594004bcf13d34c7 and fixed in 6.6.64 with commit e5cac32721997cb8bcb208a29f4598b3faf46338 Issue introduced in 5.6 with commit 851644a60d200c9a294de5a5594004bcf13d34c7 and fixed in 6.12.4 with commit 218ecc35949129171ca39bcc0d407c8dc4cd0bbc Issue introduced in 5.6 with commit 851644a60d200c9a294de5a5594004bcf13d34c7 and fixed in 6.13-rc1 with commit 3a4187ec454e19903fd15f6e1825a4b84e59a4cd 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-2024-56557 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: drivers/iio/adc/ad7923.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/00663d3e000c31d0d49ef86a809f5c107c2d09cd https://git.kernel.org/stable/c/e5cac32721997cb8bcb208a29f4598b3faf46338 https://git.kernel.org/stable/c/218ecc35949129171ca39bcc0d407c8dc4cd0bbc https://git.kernel.org/stable/c/3a4187ec454e19903fd15f6e1825a4b84e59a4cd