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 9514715CD77 for ; Mon, 29 Jul 2024 16:26:58 +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=1722270418; cv=none; b=Yl1/tB5q+ZwRg2lAFuOQobqT/bYkCZxKBEkvgkfXdn0LgfHzWkny0IQnwhP2QiRTeg9hk0QRPoisprc1qer3T71aJz1/XsCAyQMILt0FbCH1gLLYVqQo9Wjv+meQPKJ/MknBEWUb55crSt6aLclCp2RUy1QPBhRLLc2u//RYhCY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722270418; c=relaxed/simple; bh=AhA/cd/kQtI6R0NHtWaHxX4PxcCSufd/VtCHXZK6s7Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OdZFYDfOidm/OGJp+Gkn6q6/zFoMICqvUkq/vloUA9oiqmKk6vKzLR0QtukZ1lAVENYhsizFsk6hkmd/t3dwvXD55J8bYFSdIpAd/AEWCqZ565L97RxQa5sWOYVWVY2moAYjToGMFo1ZfOEoWIVL+auFAL9zsowD48bWCuKf3LY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CNX++3e4; 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="CNX++3e4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B0D8C32786; Mon, 29 Jul 2024 16:26:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722270418; bh=AhA/cd/kQtI6R0NHtWaHxX4PxcCSufd/VtCHXZK6s7Q=; h=From:To:Cc:Subject:Date:Reply-to:From; b=CNX++3e4Qo14Hk4QmKH9lB1gd1M2WZ1JEVmtuB2HAXEnW67VA6LOaHXEXbfzk3gmN spG6QIibvu+i3grujNyUWHQ48gjkIVq1n1/WvdgzqqFmHjC8vbFkuEaIHpc2b6DAjL AKI9Jmw7Oi/O/5Nc9CARk97L2p+BGVM4Ty6nZvuo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42086: iio: chemical: bme680: Fix overflows in compensate() functions Date: Mon, 29 Jul 2024 18:26:45 +0200 Message-ID: <2024072944-CVE-2024-42086-18b8@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=3083; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=AhA/cd/kQtI6R0NHtWaHxX4PxcCSufd/VtCHXZK6s7Q=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnLDx29pLBVYBrfi/kX6zrUzV23VgTlLdt0NkrVSNxzg u61fzLNHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR/UsZFnQKCJ3tPHfj8Oa9 qRtnPD85La3x4XOGBbvepHmucrARdPPdGMm2df9BSeEv7AA= 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: chemical: bme680: Fix overflows in compensate() functions There are cases in the compensate functions of the driver that there could be overflows of variables due to bit shifting ops. These implications were initially discussed here [1] and they were mentioned in log message of Commit 1b3bd8592780 ("iio: chemical: Add support for Bosch BME680 sensor"). [1]: https://lore.kernel.org/linux-iio/20180728114028.3c1bbe81@archlinux/ The Linux kernel CVE team has assigned CVE-2024-42086 to this issue. Affected and fixed versions =========================== Issue introduced in 4.19 with commit 1b3bd8592780 and fixed in 4.19.317 with commit 6fa31bbe2ea8 Issue introduced in 4.19 with commit 1b3bd8592780 and fixed in 5.4.279 with commit b0af334616ed Issue introduced in 4.19 with commit 1b3bd8592780 and fixed in 5.10.221 with commit c326551e99f5 Issue introduced in 4.19 with commit 1b3bd8592780 and fixed in 5.15.162 with commit 7a13d1357658 Issue introduced in 4.19 with commit 1b3bd8592780 and fixed in 6.1.97 with commit ba1bb3e2a38a Issue introduced in 4.19 with commit 1b3bd8592780 and fixed in 6.6.37 with commit b5967393d50e Issue introduced in 4.19 with commit 1b3bd8592780 and fixed in 6.9.8 with commit 3add41bbda92 Issue introduced in 4.19 with commit 1b3bd8592780 and fixed in 6.10 with commit fdd478c3ae98 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-42086 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/chemical/bme680_core.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/6fa31bbe2ea8665ee970258eb8320cbf231dbe9e https://git.kernel.org/stable/c/b0af334616ed425024bf220adda0f004806b5feb https://git.kernel.org/stable/c/c326551e99f5416986074ce78bef94f6a404b517 https://git.kernel.org/stable/c/7a13d1357658d3a3c1cd7b3b9543c805a6e5e6e9 https://git.kernel.org/stable/c/ba1bb3e2a38a7fef1c1818dd4f2d9abbfdde553a https://git.kernel.org/stable/c/b5967393d50e3c6e632efda3ea3fdde14c1bfd0e https://git.kernel.org/stable/c/3add41bbda92938e9a528d74659dfc552796be4e https://git.kernel.org/stable/c/fdd478c3ae98c3f13628e110dce9b6cfb0d9b3c8