7.8high
BACnet Stack WriteProperty decoding length underflow leads to OOB read and crash
- Severity
- 7.8high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.65% (higher than 46% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
BACnet Stack is a BACnet open source protocol stack C library for embedded systems. Prior to 1.5.0rc4 and 1.4.3rc2, a malformed WriteProperty request can trigger a length underflow in the BACnet stack, leading to an out‑of‑bounds read and a crash (DoS). The issue is in wp.c within wp_decode_service_request. When decoding the optional priority context tag, the code passes apdu_len - apdu_size to bacnet_unsigned_context_decode without validating that apdu_size <= apdu_len. If a truncated APDU reaches this path, apdu_len - apdu_size underflows, resulting in a large size being used for decoding and an out‑of‑bounds read. This vulnerability is fixed in 1.5.0rc4 and 1.4.3rc2.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| bacnet-stack bacnet-stack | >= 1.5.0rc1, < 1.5.0rc4, < 1.4.3rc2 | CVE List |
| bacnetstack bacnet_stack | from 1.4.0 before 1.4.3, 1.4.3, 1.5.0 | NVD |
All scores
| GitHub_M | 7.8high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N/E:P |
| NVD | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
BACnet Stack is a BACnet open source protocol stack C library for embedded systems. Prior to 1.5.0rc4 and 1.4.3rc2, a malformed WriteProperty request can trigger a length underflow in the BACnet stack, leading to an out‑of‑bounds read and a crash (DoS). The issue is in wp.c within wp_decode_service_request. When decoding the optional priority context tag, the code passes apdu_len - apdu_size to bacnet_unsigned_context_decode without validating that apdu_size <= apdu_len. If a truncated APDU reaches this path, apdu_len - apdu_size underflows, resulting in a large size being used for decoding and an out‑of‑bounds read. This vulnerability is fixed in 1.5.0rc4 and 1.4.3rc2.
NVD (es)
BACnet Stack es una librería C de pila de protocolo de código abierto BACnet para sistemas embebidos. Antes de 1.5.0rc4 y 1.4.3rc2, una solicitud WriteProperty malformada puede desencadenar un desbordamiento negativo de longitud en la pila BACnet, lo que lleva a una lectura fuera de límites y un fallo (DoS). El problema está en wp.c dentro de wp_decode_service_request. Al decodificar la etiqueta de contexto de prioridad opcional, el código pasa apdu_len - apdu_size a bacnet_unsigned_context_decode sin validar que apdu_size <= apdu_len. Si una APDU truncada alcanza esta ruta, apdu_len - apdu_size sufre un desbordamiento negativo, lo que resulta en un tamaño grande siendo utilizado para la decodificación y una lectura fuera de límites. Esta vulnerabilidad está corregida en 1.5.0rc4 y 1.4.3rc2.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-26264 changed 2026-02-13 | CVE Terms of Use |
| NVD | CVE-2026-26264 changed 2026-06-17 | Public domain |