{"id":"CVE-2026-42805","aliases":["CVE-2026-42805"],"related":[],"kind":"vulnerability","state":"published","title":"A stack-based buffer overflow vulnerability exists in the Bosch Sensortec BHI385 SensorAPI (C library) within the debug message parser func…","summary":"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). \n\nThe 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.\n\nWhen 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. \n\nThis 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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). \n\nThe 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.\n\nWhen 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. \n\nThis 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":"cvelist"}],"published":"2026-09-10T09:04:09.212Z","modified":"2026-09-10T16:17:12.170Z","severity":{"scorer":"bosch","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.4,"rating":"HIGH"},"severities":[{"scorer":"bosch","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.4,"rating":"HIGH"}],"cwes":["CWE-121"],"affected":[{"ranges":[{"type":"custom","introduced":"1.1.0","lastAffected":"2.1.0","status":"affected"}],"vendor":"Bosch Sensortec","product":"BHI385 SensorAPI (C Library)","source":"cvelist"}],"references":[{"url":"https://psirt.bosch.com/security-advisories/BOSCH-SA-223618.html","tags":["vendor-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"bosch","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-09-10T15:01:13.115Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-42805","url":"https://www.cve.org/CVERecord?id=CVE-2026-42805","licence":"CVE Terms of Use","modified":"2026-09-10T15:01:26.029Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-42805","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42805","licence":"Public domain","modified":"2026-09-10T16:17:12.170Z"}],"updatedAt":"2026-11-25T22:59:37.817Z","epss":{"score":0.00133,"percentile":0.03019,"date":"2026-12-01T12:00:22.000Z"}}