CVE-2026-42805
Received Received - Intake

Stack-Based Buffer Overflow in Bosch Sensortec BHI385 SensorAPI

Vulnerability report for CVE-2026-42805, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-10

Last updated on: 2026-09-10

Assigner: Robert Bosch GmbH

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-10
Last Modified
2026-09-10
Generated
2026-09-10
AI Q&A
2026-09-10
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
bosch sensortec_bhi385_sensorapi *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-121 A stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function).

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a stack-based buffer overflow in the Bosch Sensortec BHI385 SensorAPI library. The vulnerability occurs in the debug message parser function bhi385_parse_debug_message. It allows an attacker to write past a fixed 17-byte stack buffer by providing a malicious payload length greater than 16. This can cause memory corruption, leading to crashes, denial of service, or potential arbitrary code execution.

Detection Guidance

This vulnerability involves a stack-based buffer overflow in the Bosch Sensortec BHI385 SensorAPI library. Detection requires checking if the vulnerable function bhi385_parse_debug_message is present in the library and if the system uses the affected SensorAPI version. Inspect the library files for the function and review sensor communication logs for malformed debug messages.

Impact Analysis

If you use devices with the vulnerable Bosch Sensortec BHI385 SensorAPI, an attacker could exploit this flaw to crash the device firmware, disrupt operations, or execute malicious code. This could affect system reliability, security, and availability, especially in embedded or IoT environments where the sensor is deployed.

Mitigation Strategies

Immediately update the Bosch Sensortec BHI385 SensorAPI to the latest patched version provided by Bosch. If an update is not available, disable debug message parsing or restrict sensor communication to trusted sources. Monitor sensor logs for unusual activity or crashes that may indicate exploitation attempts.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-42805. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart