Descrizione
BACnet Stack is a BACnet open source protocol stack C library for embedded systems. Prior to versions 1.4.6, 1.5.2, and 1.6.1, the BACnet/SC hub's Linux WebSocket server reassembles fragmented WebSocket messages into a per-connection fragment_buffer. It grows that buffer with realloc() on every non-final frame, with no upper bound. A peer that streams binary continuation fragments and never sets FIN keeps the hub reallocating until the box runs out of memory or the process is OOM-killed. The buffer starts at the maximum legal BVLC-SC NPDU size, but nothing after that ties its growth back to that limit. This issue has been patched in versions 1.4.6, 1.5.2, 1.6.1, and 1.7.0.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.5, EPSS 0.5% (percentile 45).
Versioni da aggiornare
- bacnet-stack bacnet-stack: vulnerabile la versione
< 1.4.6→ installare l'ultima release supportata dal vendor. - bacnet-stack bacnet-stack: vulnerabile la versione
>= 1.5.0, < 1.5.2→ installare l'ultima release supportata dal vendor. - bacnet-stack bacnet-stack: vulnerabile la versione
>= 1.6.0, < 1.6.1→ installare l'ultima release supportata dal vendor.
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Applicare rate limiting e limiti sulle risorse a monte del servizio e monitorarne la disponibilità.
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.6 | — |
| bacnet-stack | bacnet-stack | >= 1.5.0, < 1.5.2 | — |
| bacnet-stack | bacnet-stack | >= 1.6.0, < 1.6.1 | — |