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.
Published: 2026-09-10
Score: 8.4 High
EPSS: < 1% Very Low
KEV: No
Impact: Potential arbitrary code execution or Denial of Service due to stack-based buffer overflow
Action: Apply Patch
AI Analysis

Impact

A stack-based buffer overflow in the BHI385 SensorAPI debug message parser allows an attacker to control the length byte of a payload, causing a memcpy into a fixed‑size 17‑byte buffer to write past the boundary. The resulting memory corruption can crash the firmware, produce a denial of service, or, if adjacent stack data is overwritten, lead to execution of attacker‑supplied code. The flaw is present in the parsing function bhi385_parse_debug_message and is triggered by data received via a callback tied to the sensor’s FIFO events.

Affected Systems

The vulnerability affects the Bosch Sensortec BHI385 SensorAPI C library, which is used in sensor firmware that processes debug messages from the BHI385 sensor module. No specific vendor version is listed in the advisories, so users should check the firmware revision of their devices against the Bosch PSIRT release notes for a fix.

Risk and Exploitability

With a CVSS score of 8.4 the vulnerability is classified as high severity. No EPSS score is available and it is not yet listed in the CISA KEV catalog. The likely attack vector is a compromised sensor or bus participant that can send crafted payloads to the device. An attacker with access to the sensor data stream can exploit the unchecked length byte to overflow the stack and potentially take control of the firmware process.

Generated by OpenCVE AI on September 10, 2026 at 10:51 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the BHI385 SensorAPI firmware to the latest version released by Bosch that addresses the buffer overflow.
  • If an update is not yet available, disable the debug message parser or reduce the debug logging level to prevent the parsing function from being called with untrusted data.
  • Implement isolation or input validation on the bus interface so that only authenticated sensor devices can provide debug data.
  • Monitor device logs for abnormal crashes or pattern of stack corruption to detect exploitation attempts.

Generated by OpenCVE AI on September 10, 2026 at 10:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 10 Sep 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 10 Sep 2026 11:15:00 +0000

Type Values Removed Values Added
Title Stack-Based Buffer Overflow in Bosch Sensortec BHI385 SensorAPI Debug Message Parser

Thu, 10 Sep 2026 09:15:00 +0000

Type Values Removed Values Added
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.
Weaknesses CWE-121
References
Metrics cvssV3_1

{'score': 8.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: bosch

Published:

Updated: 2026-09-10T15:01:26.029Z

Reserved: 2026-04-30T08:03:11.875Z

Link: CVE-2026-42805

cve-icon Vulnrichment

Updated: 2026-09-10T15:01:19.071Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-09-10T09:17:02.013

Modified: 2026-09-10T15:43:03.760

Link: CVE-2026-42805

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-10T11:00:10Z

Weaknesses
  • CWE-121

    Stack-based Buffer Overflow