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 CF26A1F37D6 for ; Fri, 27 Dec 2024 14:24:00 +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=1735309440; cv=none; b=gGAeln5EkbLgG68TaPsPnIGjH02ldD8+MrGbE+Z2RFYvnbMhXh7JSAuUNjOlcT+mcCB9yf+Z4JIzfWPkq7yjpJNrNwaeElLIsYDZlPgCokPfriTNnl79z0aVD47irYAgZE5/sLUTT06RWlZlj2wbELgVI7ishR134knxlZC6nCE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735309440; c=relaxed/simple; bh=G1xt3jXY4xno7yY1KjbzPeYKRP+E7/lzm/2TsWJXixM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IyEXPdv6U+XLLzoJ2JN3NcYggqPpw9OHxcWwRe/FKx/yV+VJV/+4ORQF6FyQju3IwsQ4nuoT68s/ZmN86MJxredFguH5vMoe3yLK+TcqG+uvIa27YVyCL5KzC0+IDbH6ZjdhOt5ZQudUkDHT5HftSJpcoERfSwIER25QVtS+uFc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ay8adJ8J; 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="ay8adJ8J" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E89B3C4CED0; Fri, 27 Dec 2024 14:23:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735309440; bh=G1xt3jXY4xno7yY1KjbzPeYKRP+E7/lzm/2TsWJXixM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ay8adJ8JgGfEFDIpQ5YDPEAi/p/kxZzz2g8GjYBI9gOPMVZfCOoFDYvB3JSu6hd/j t8QKVGvEvRNb8WBxm7bxATQFjryrdNMX5x9LNQftahixkSv1CvGzbSrXZSCkZHd+9D ISAskAOMGrnd1cwKystEPEe20bbwNpTqrjk26skg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56567: ad7780: fix division by zero in ad7780_write_raw() Date: Fri, 27 Dec 2024 15:23:18 +0100 Message-ID: <2024122715-CVE-2024-56567-a306@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=3179; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=G1xt3jXY4xno7yY1KjbzPeYKRP+E7/lzm/2TsWJXixM=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl5O4Lds3gnlGhvXhB4QeLG7QX/djxQkkxPs7nYkZr9W V1Mh/FCRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEykWodhfsqa5c75Me8Wrr3/ J3xe/ukTNg/nBTHM97CUDu9cuPRw2C29vqv8B3KcV8wRBwA= 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: ad7780: fix division by zero in ad7780_write_raw() In the ad7780_write_raw() , val2 can be zero, which might lead to a division by zero error in DIV_ROUND_CLOSEST(). The ad7780_write_raw() is based on iio_info's write_raw. While val is explicitly declared that can be zero (in read mode), val2 is not specified to be non-zero. The Linux kernel CVE team has assigned CVE-2024-56567 to this issue. Affected and fixed versions =========================== Issue introduced in 5.2 with commit 9085daa4abcc3a1c19ae4eb00e609842ef28275a and fixed in 5.4.287 with commit 18fb33df1de83a014d7f784089f9b124facc157f Issue introduced in 5.2 with commit 9085daa4abcc3a1c19ae4eb00e609842ef28275a and fixed in 5.10.231 with commit afc1e3c00b3f5f0b4f1bc3e974fb9803cb938a90 Issue introduced in 5.2 with commit 9085daa4abcc3a1c19ae4eb00e609842ef28275a and fixed in 5.15.174 with commit 68e79b848196a0b0ec006009cc69da1f835d1ae8 Issue introduced in 5.2 with commit 9085daa4abcc3a1c19ae4eb00e609842ef28275a and fixed in 6.1.120 with commit 022e13518ba6cc1b4fdd291f49e4f57b2d5718e0 Issue introduced in 5.2 with commit 9085daa4abcc3a1c19ae4eb00e609842ef28275a and fixed in 6.6.64 with commit 7e3a8ea3d1ada7f707de5d9d504774b4191eab66 Issue introduced in 5.2 with commit 9085daa4abcc3a1c19ae4eb00e609842ef28275a and fixed in 6.12.4 with commit f25a9f1df1f6738acf1fa05595fb6060a2c08ff1 Issue introduced in 5.2 with commit 9085daa4abcc3a1c19ae4eb00e609842ef28275a and fixed in 6.13-rc1 with commit c174b53e95adf2eece2afc56cd9798374919f99a 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-56567 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/ad7780.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/18fb33df1de83a014d7f784089f9b124facc157f https://git.kernel.org/stable/c/afc1e3c00b3f5f0b4f1bc3e974fb9803cb938a90 https://git.kernel.org/stable/c/68e79b848196a0b0ec006009cc69da1f835d1ae8 https://git.kernel.org/stable/c/022e13518ba6cc1b4fdd291f49e4f57b2d5718e0 https://git.kernel.org/stable/c/7e3a8ea3d1ada7f707de5d9d504774b4191eab66 https://git.kernel.org/stable/c/f25a9f1df1f6738acf1fa05595fb6060a2c08ff1 https://git.kernel.org/stable/c/c174b53e95adf2eece2afc56cd9798374919f99a