CVE-2026-42804
Last modified
CVE-2026-42804 is a high-severity vulnerability rated 7.6/10 on the CVSS scale. A stack-based buffer overflow vulnerability exists in the Bosch Sensortec BHI360 SensorAPI(C-Library) in versions up to and including commit d6b200416a. The vulnerability is located within the FIFO parsing and debug logging subsystem inside the function bhi360_parse_debug_message() in bhi360_parse.c (lines 1852-1875). The parser trusts the first payload byte of a debug frame as the message length (msg_length) and copies that many bytes into a fixed-size 17-byte stack buffer (debug_msg) via memcpy without performing any bounds checking. A locally or physically positioned attacker (e.g., via a malicious sensor, counterfeit hardware module, or a Man-in-the-Middle on the communication bus) can exploit this vulnerability by injecting a crafted debug frame with a length byte exceeding 16. This corrupts adjacent stack data, including the saved return address. Furthermore, because the overflowed buffer is subsequently passed to a printf-style logging sink, the attacker can supply format string specifiers (e.g., %n) to execute arbitrary code on the host microcontroller/SoC or cause a reliable system crash (Denial of Service).. EPSS estimates a 0.25% chance of exploitation in the next 30 days.
Description
A stack-based buffer overflow vulnerability exists in the Bosch Sensortec BHI360 SensorAPI(C-Library) in versions up to and including commit d6b200416a. The vulnerability is located within the FIFO parsing and debug logging subsystem inside the function bhi360_parse_debug_message() in bhi360_parse.c (lines 1852-1875). The parser trusts the first payload byte of a debug frame as the message length (msg_length) and copies that many bytes into a fixed-size 17-byte stack buffer (debug_msg) via memcpy without performing any bounds checking. A locally or physically positioned attacker (e.g., via a malicious sensor, counterfeit hardware module, or a Man-in-the-Middle on the communication bus) can exploit this vulnerability by injecting a crafted debug frame with a length byte exceeding 16. This corrupts adjacent stack data, including the saved return address. Furthermore, because the overflowed buffer is subsequently passed to a printf-style logging sink, the attacker can supply format string specifiers (e.g., %n) to execute arbitrary code on the host microcontroller/SoC or cause a reliable system crash (Denial of Service).
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Bosch Sensortec | BHI360_SensorAPI (C-Library) | >= 2.1.0, <= 2.2.0 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-42804?
How severe is CVE-2026-42804?
How do I fix CVE-2026-42804?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-42797Exposure of Sensitive Information Through Data Queries vulne…4.9
- CVE-2026-42798Little CMS (lcms2) 2.16 through 2.18 before 2.19 has an inte…4
- CVE-2026-42799Out-of-bounds read vulnerability in ASR Kestrel (nr_fw modul…9.8
- CVE-2026-4280The Breaking News WP plugin for WordPress is vulnerable to L…6.5
- CVE-2026-42800NULL pointer dereference vulnerability in ASR1903 in ASR Lap…5.3
- CVE-2026-42801NULL pointer dereference vulnerability in ASR Crane,Falcon o…7.4
- CVE-2026-42805A stack-based buffer overflow vulnerability exists in the Bo…8.4
- CVE-2026-42806An out-of-bounds read vulnerability was discovered in the Bo…4.3
- CVE-2026-42807A heap-based buffer overflow vulnerability in the PC bridge …8
- CVE-2026-42808An issue was discovered in Bosch Sensortec COINES_SDK versio…6.8
- CVE-2026-42809Apache Polaris can issue broad temporary ("vended") storage …9.9
- CVE-2026-4281The FormLift for Infusionsoft Web Forms plugin for WordPress…5.3
Are you affected by CVE-2026-42804?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
