CVE-2024-42086·Kernel vulnerability
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/
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.9.8
- Published
- 2024-07-29
Affected versions
From: 6.7
Until: 6.9.8
Fixed in: 6.9.8
How to fix this CVE
Update your Linux kernel to version 6.9.8 or later to resolve integer overflow vulnerabilities in the BME680 chemical sensor driver's compensation functions. These overflows could occur during bit-shifting operations when processing sensor calibration data, potentially leading to incorrect readings or system instability. Apply the kernel update and reboot your system to ensure the fix is active.
sudo dnf update kernel kernel-devel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Check installed kernel version: uname -r | grep -E '^6\.(7|8|9\.[0-7])'
- Verify if BME680 driver is loaded: lsmod | grep -i bme680 or grep -i bme680 /proc/modules
- Search kernel logs for compensation calculation warnings: dmesg | grep -i 'bme680\|overflow\|compensation'
- Confirm the fix is applied: uname -r should show version 6.9.8 or higher; verify with cat /proc/version
FAQ
What is CVE-2024-42086?
CVE-2024-42086 is an integer overflow vulnerability in the Linux kernel's BME680 chemical sensor driver compensation functions, where bit-shifting operations on calibration data could exceed variable limits and cause incorrect sensor calculations or system errors.
Is CVE-2024-42086 being actively exploited?
No, CVE-2024-42086 is not being actively exploited in the wild, and no public exploits have been disclosed. The vulnerability requires local access and is primarily a data integrity and stability issue.
What versions of Kernel are affected by CVE-2024-42086?
Linux kernel versions 6.7 through 6.9.7 are affected. Version 6.9.8 and later contain the fix.
How do I check if my server is vulnerable to CVE-2024-42086?
Run 'uname -r' and check if the output shows kernel 6.7.x through 6.9.7; if so, you are vulnerable. Then confirm BME680 support with 'lsmod | grep bme680' to determine if the affected driver is in use.
Does Defensia detect CVE-2024-42086?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2024-42086 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/3add41bbda92938e9a528d74659dfc552796be4e
- https://git.kernel.org/stable/c/6fa31bbe2ea8665ee970258eb8320cbf231dbe9e
- https://git.kernel.org/stable/c/7a13d1357658d3a3c1cd7b3b9543c805a6e5e6e9
- https://git.kernel.org/stable/c/b0af334616ed425024bf220adda0f004806b5feb
- https://git.kernel.org/stable/c/b5967393d50e3c6e632efda3ea3fdde14c1bfd0e
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-42086. Free for 1 server.
Get started free