Bug 2300535 (CVE-2024-42086)

Summary: CVE-2024-42086 kernel: iio: chemical: bme680: Fix overflows in compensate() functions
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dfreiber, drow, jburrell, vkumar
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kernel 4.19.317, kernel 5.4.279, kernel 5.10.221, kernel 5.15.162, kernel 6.1.97, kernel 6.6.37, kernel 6.9.8, kernel 6.10 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in`iio: chemical: bme680` in the Linux kernel's driver for Bosch BME680 sensors. This issue occurs due to potential overflows in the `compensate()` functions caused by improper bit-shifting operations. These overflows could lead to incorrect sensor data or system instability.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2301738, 2307207    
Bug Blocks:    

Description OSIDB Bzimport 2024-07-29 17:20:40 UTC
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/

Comment 1 Mauro Matteo Cascella 2024-07-30 17:22:45 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024072944-CVE-2024-42086-18b8@gregkh/T

Comment 2 Mauro Matteo Cascella 2024-07-30 17:23:05 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2301738]