Skip to content
RedCVE

CVE-2026-42805Bosch Sensortec BHI385 SensorAPI (C Library) stack-based buffer overflow

Bosch SensortecPublished:

CVSS score

8.4

High

CVSS 3.1 from bosch.com

Exploit probability (EPSS)

0.19%

0.19% chance of exploitation in the next 30 days, higher than 8.69% of all CVEs.

CISA KEV

Not in KEV

No confirmed exploitation reported by CISA so far.

Official 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.

Source: NVD · CNA: psirt@bosch.com

How to fix it, step by step

  1. Check whether you're affected

    Find every system running Bosch Sensortec BHI385 SensorAPI (C Library) and compare its version with the affected versions.

  2. Watch for an official fix

    No fix or advisory is listed in the official record yet. Follow the vendor's security announcements; this page updates when one is published.

Was this useful?

How it can be exploited

Attack vector
Local
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

Affected productsVersions
Bosch Sensortec BHI385 SensorAPI (C Library)≥ 1.1.0, ≤ 2.1.0

Weakness

  • CWE-121 stack-based buffer overflow

Timeline

  1. Published:
  2. Last modified:

Frequently asked questions

Is CVE-2026-42805 being exploited?

There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.2% probability of exploitation in the next 30 days.

What is the CVSS score of CVE-2026-42805?

CVE-2026-42805 has a CVSS 3.1 base score of 8.4 (high).

Which versions are affected?

Bosch Sensortec BHI385 SensorAPI (C Library) (≥ 1.1.0, ≤ 2.1.0)

Is there a patch for CVE-2026-42805?

No patch is linked in the official record yet. Watch the vendor's security advisories.

References

Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.