Descrizione
BACnet Stack is a BACnet open source protocol stack C library for embedded systems. Prior to versions 1.4.5, 1.5.1, and 1.6.0, in the official apps/epics client tool on v1.6.0-rc1 (not in the generic BACnet RPM ACK decoder alone) a malicious BACnet/IP endpoint can reply to the EPICS tool’s legitimate ReadPropertyMultiple request with a syntactically valid ReadPropertyMultiple-ACK that contains more heading properties than the tool’s fixed local storage can hold. The response is decoded successfully and later consumed by ProcessRPMData(), which writes property values into a fixed global array using an unbounded linear index. This results in a reproducible global-buffer-overflow in apps/epics/main.c. This is a network-reachable memory corruption in the official epics tool’s response-processing path. The root cause is that apps/epics treats a remotely supplied variable-length RPM property list as if it were a trusted, fixed-size local heading-property set. This issue has been patched in versions 1.4.5, 1.5.1, and 1.6.0.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.1, EPSS 0.2% (percentile 13).
Versioni da aggiornare
- bacnet-stack bacnet-stack: vulnerabile la versione
< 1.4.5→ installare l'ultima release supportata dal vendor. - bacnet-stack bacnet-stack: vulnerabile la versione
< 1.5.1→ installare l'ultima release supportata dal vendor. - bacnet-stack bacnet-stack: vulnerabile la versione
< 1.6.0→ installare l'ultima release supportata dal vendor.
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Ridurre la superficie esposta (disattivare servizi e funzionalità inutilizzati), mantenere attive le protezioni del sistema operativo (ASLR, DEP/NX) e segmentare la rete.
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| bacnet-stack | bacnet-stack | < 1.4.5 | — |
| bacnet-stack | bacnet-stack | < 1.5.1 | — |
| bacnet-stack | bacnet-stack | < 1.6.0 | — |
Riferimenti
- Riferimentohttps://github.com/bacnet-stack/bacnet-stack/pull/1366
- Riferimentohttps://github.com/bacnet-stack/bacnet-stack/pull/1409
- Riferimentohttps://github.com/bacnet-stack/bacnet-stack/security/advisories/GHSA-c4q6-7827-mfg6
- Riferimentohttps://github.com/bacnet-stack/bacnet-stack/security/advisories/GHSA-c4q6-7827-mfg6