Skip to main content
Reconnecting to live updates…
EPSS 0.1%top 96%

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

0
High
Published: 09/10/2026 (09/10/2026, 09:31:33 UTC)
Source: GCVE Database

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 v3.1

Score 8.4high

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/10/2026, 13:28:54 UTC

Technical Analysis

The vulnerability exists in the Bosch Sensortec BHI385 SensorAPI's debug message parser function (bhi385_parse_debug_message in bhi385_parse.c). The function reads an 8-bit message length from attacker-controlled data without validating it against the fixed buffer size of 17 bytes. If the length byte exceeds 16, memcpy writes beyond the stack buffer boundary, causing a stack-based buffer overflow. This flaw can be exploited by a malicious or compromised sensor or bus participant to corrupt adjacent stack memory, potentially leading to firmware crashes, DoS, or arbitrary code execution.

Potential Impact

Exploitation of this vulnerability can cause memory corruption resulting in firmware crashes and Denial of Service. Due to the nature of stack-based buffer overflows, there is also potential for arbitrary code execution, which could compromise the affected device's integrity and security.

Mitigation Recommendations

No patch or official fix information is currently available. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is released, avoid using untrusted or potentially compromised sensors or bus participants that could send malicious debug messages.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-7h94-3r4w-8qw8
Osv Schema Version
1.4.0
Aliases
["CVE-2026-42805"]
Ecosystems
[]
Database Specific Severity
HIGH
Cvss Version
3.1

Threat ID: 6aa2af60acd9273b4925a64a

Added to database: 09/10/2026, 13:23:44 UTC

Last enriched: 09/10/2026, 13:28:54 UTC

Last updated: 09/10/2026, 16:52:45 UTC

Views: 4

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses