# CVE-2026-42805: A stack-based buffer overflow vulnerability exists in the Bosch Sensortec BHI385 SensorAPI (C library) within the debug message parser func…

- Severity: High 8.4 (CVSS:3.1, scored by bosch) `CVSS:3.1/AV:L/AC:L/PR:N/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.13%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-09-10T09:04:09.212Z
- Modified: 2026-09-10T16:17:12.170Z
- Weaknesses: CWE-121
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: bosch

## Description

A stack-based buffer overflow vulnerability exists in the Bosch Sensortec BHI385 SensorAPI (C library) within the debug message parser function bhi385_parse_debug_message (located in bhi385_parse.c). 

The function parses FIFO events and extracts an 8-bit message length directly from the attacker-controlled event payload (callback_info->data_ptr[0]) without enforcing bounds checks or clamping the value.

When copying the payload into a fixed-size stack buffer of 17 bytes (uint8_t debug_msg[17]) via memcpy, providing a length byte greater than 16 causes the function to write past the allocated stack boundary. 

This memory corruption can be triggered by a malicious or compromised sensor or bus participant, leading to a firmware crash, Denial of Service (DoS), or potentially the execution of arbitrary code via adjacent stack data corruption.

(As written by CVE List.)

## Affected

- Bosch Sensortec BHI385 SensorAPI (C Library): from 1.1.0 up to 2.1.0

## References

- <https://psirt.bosch.com/security-advisories/BOSCH-SA-223618.html> (vendor-advisory)

## Sources

- CVE List: [CVE-2026-42805](https://www.cve.org/CVERecord?id=CVE-2026-42805), CVE Terms of Use, modified 2026-09-10
- NVD: [CVE-2026-42805](https://nvd.nist.gov/vuln/detail/CVE-2026-42805), Public domain, modified 2026-09-10

---

Page: https://cve.day/CVE-2026-42805 · Whole record: https://cve.day/CVE-2026-42805.json · Rebuilt by cve.day 2026-11-25T22:59:37.817Z
