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… (CVE-2026-42806)
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.
AI Analysis
Technical Summary
The Bosch BME690 SensorAPI C-driver up to version 1.0.3 contains an out-of-bounds read vulnerability in the read_all_field_data function. The driver prefetches heater configuration registers into a 30-byte stack buffer. When parsing sensor data, the gas_index is extracted using a 4-bit mask but is not checked to ensure it is within the valid range of 0 to 9. An attacker or a compromised peripheral device on the I2C/SPI bus could supply a gas_index of 10 or greater, causing the driver to read up to 6 bytes beyond the stack buffer boundary. This out-of-bounds data is then written into a public gas_wait field, which could result in measurement corruption or leakage of adjacent stack memory when the data is logged or transmitted.
Potential Impact
The vulnerability allows an attacker or malicious peripheral device to cause the driver to read memory beyond the intended buffer, potentially leaking sensitive stack data. This can corrupt sensor measurement data or expose adjacent stack memory contents, which may be logged or telemetered. The CVSS score of 4.3 reflects a moderate impact with limited confidentiality, integrity, and availability effects. There is no indication of remote code execution or privilege escalation.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should ensure that only trusted peripherals are connected to the I2C/SPI bus to prevent malicious payload injection. Monitoring for anomalous sensor data may help detect exploitation attempts. Avoid relying on untrusted sensor data sources.
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… (CVE-2026-42806)
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.
CVSS v3.1
Score 4.3medium
Affected software
pkg:github/bosch/BME690-SensorAPIRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Bosch BME690 SensorAPI C-driver up to version 1.0.3 contains an out-of-bounds read vulnerability in the read_all_field_data function. The driver prefetches heater configuration registers into a 30-byte stack buffer. When parsing sensor data, the gas_index is extracted using a 4-bit mask but is not checked to ensure it is within the valid range of 0 to 9. An attacker or a compromised peripheral device on the I2C/SPI bus could supply a gas_index of 10 or greater, causing the driver to read up to 6 bytes beyond the stack buffer boundary. This out-of-bounds data is then written into a public gas_wait field, which could result in measurement corruption or leakage of adjacent stack memory when the data is logged or transmitted.
Potential Impact
The vulnerability allows an attacker or malicious peripheral device to cause the driver to read memory beyond the intended buffer, potentially leaking sensitive stack data. This can corrupt sensor measurement data or expose adjacent stack memory contents, which may be logged or telemetered. The CVSS score of 4.3 reflects a moderate impact with limited confidentiality, integrity, and availability effects. There is no indication of remote code execution or privilege escalation.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should ensure that only trusted peripherals are connected to the I2C/SPI bus to prevent malicious payload injection. Monitoring for anomalous sensor data may help detect exploitation attempts. Avoid relying on untrusted sensor data sources.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-wf7g-q2xv-vf8v
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-42806"]
- Ecosystems
- []
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6aa2af5facd9273b4925a618
Added to database: 09/10/2026, 13:23:43 UTC
Last enriched: 09/10/2026, 13:28:11 UTC
Last updated: 09/10/2026, 17:00:27 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.