# CVE-2024-42086: iio: chemical: bme680: Fix overflows in compensate() functions

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-07-29T16:26:27.075Z
- Modified: 2026-06-17T07:48:46.803Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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/

(As written by CVE List.)

## Affected

- Linux Linux: from 1b3bd8592780c87c5eddabbe98666b086bbaee36 before 6fa31bbe2ea8665ee970258eb8320cbf231dbe9e; from 1b3bd8592780c87c5eddabbe98666b086bbaee36 before b0af334616ed425024bf220adda0f004806b5feb; from 1b3bd8592780c87c5eddabbe98666b086bbaee36 before c326551e99f5416986074ce78bef94f6a404b517; from 1b3bd8592780c87c5eddabbe98666b086bbaee36 before 7a13d1357658d3a3c1cd7b3b9543c805a6e5e6e9; from 1b3bd8592780c87c5eddabbe98666b086bbaee36 before ba1bb3e2a38a7fef1c1818dd4f2d9abbfdde553a; from 1b3bd8592780c87c5eddabbe98666b086bbaee36 before b5967393d50e3c6e632efda3ea3fdde14c1bfd0e; from 1b3bd8592780c87c5eddabbe98666b086bbaee36 before 3add41bbda92938e9a528d74659dfc552796be4e; from 1b3bd8592780c87c5eddabbe98666b086bbaee36 before fdd478c3ae98c3f13628e110dce9b6cfb0d9b3c8; 4.19 (not affected: before 4.19; from 4.19.317 up to 4.19.*; from 5.4.279 up to 5.4.*; from 5.10.221 up to 5.10.*; from 5.15.162 up to 5.15.*; from 6.1.97 up to 6.1.*; from 6.6.37 up to 6.6.*; from 6.9.8 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: from 4.19 before 4.19.317; from 4.20 before 5.4.279; from 5.5 before 5.10.221; from 5.11 before 5.15.162; from 5.16 before 6.1.97; from 6.2 before 6.6.37; from 6.7 before 6.9.8; 6.10

## References

- <https://git.kernel.org/stable/c/6fa31bbe2ea8665ee970258eb8320cbf231dbe9e> (patch)
- <https://git.kernel.org/stable/c/b0af334616ed425024bf220adda0f004806b5feb> (patch)
- <https://git.kernel.org/stable/c/c326551e99f5416986074ce78bef94f6a404b517> (patch)
- <https://git.kernel.org/stable/c/7a13d1357658d3a3c1cd7b3b9543c805a6e5e6e9> (patch)
- <https://git.kernel.org/stable/c/ba1bb3e2a38a7fef1c1818dd4f2d9abbfdde553a> (patch)
- <https://git.kernel.org/stable/c/b5967393d50e3c6e632efda3ea3fdde14c1bfd0e> (patch)
- <https://git.kernel.org/stable/c/3add41bbda92938e9a528d74659dfc552796be4e> (patch)
- <https://git.kernel.org/stable/c/fdd478c3ae98c3f13628e110dce9b6cfb0d9b3c8> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Sources

- CVE List: [CVE-2024-42086](https://www.cve.org/CVERecord?id=CVE-2024-42086), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-42086](https://nvd.nist.gov/vuln/detail/CVE-2024-42086), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-42086 · Whole record: https://cve.day/CVE-2024-42086.json · Rebuilt by cve.day 2026-11-25T22:58:43.345Z
