CVE-2026-42806 Information disclosure in BME690 SensorAPI (C)
A compromised I2C/SPI peripheral can trigger an out-of-bounds read in the Bosch BME690 driver, leaking adjacent stack memory and corrupting sensor measurements.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-42806?
CVE-2026-42806 is a medium-severity vulnerability in Bosch Sensortec BME690 SensorAPI (C), published on 10 Sep 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
An out-of-bounds read vulnerability was discovered in the Bosch BME690 SensorAPI (C-driver) in version v1.0.3 and prior, specifically within the field data parsing logic in read_all_field_data (bme69x.c). The driver prefetches heater configuration registers into a contiguous 30-byte stack buffer (set_val) mapping IDAC, RES_HEAT, and GAS_WAIT tables. When parsing sensor field data, the gas_index is extracted using a 4-bit mask (0..15) but lacks boundary verification against the valid range (0..9). An attacker or a compromised peripheral mimicking a sensor on the I2C/SPI bus could return a payload with a gas index value of 10 or higher. This causes the driver to perform an out-of-bounds array access (set_val[20 + gas_index]), reading up to 6 bytes past the stack buffer. The leaked out-of-bounds byte is then written into the public gas_wait field, which may lead to measurement corruption or leak adjacent stack memory when telemetered or logged.
Weakness: CWE-125
Which versions are affected by CVE-2026-42806?
How do I fix CVE-2026-42806?
No fix has been published for CVE-2026-42806 yet. Limit exposure of the affected software until one is available.
Is CVE-2026-42806 being exploited?
There is no known exploitation of CVE-2026-42806 in the wild and no public exploit code.
Sources
Also known as GHSA-wf7g-q2xv-vf8v.