CVE-2026-26264
JSON

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 packageVersionsReported by
bacnet-stack bacnet-stack>= 1.5.0rc1, < 1.5.0rc4, < 1.4.3rc2CVE List
bacnetstack bacnet_stackfrom 1.4.0 before 1.4.3, 1.4.3, 1.5.0NVD

All scores

GitHub_M7.8high CVSS:4.0CVSS: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
NVD8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

Classification

CWE-125

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 &lt;= 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

SourceRecordLicence
CVE ListCVE-2026-26264 changed 2026-02-13CVE Terms of Use
NVDCVE-2026-26264 changed 2026-06-17Public domain