Descrizione

BACnet Stack is a BACnet open source protocol stack C library for embedded systems. Prior to 1.4.3, an off-by-one out-of-bounds read vulnerability in bacnet-stack's ReadPropertyMultiple service decoder allows unauthenticated remote attackers to read one byte past an allocated buffer boundary by sending a crafted RPM request with a truncated object identifier. The vulnerability is in rpm_decode_object_id(), which checks apdu_len < 5 but then accesses all 6 byte positions (indices 0-5) — consuming 1 byte for the context tag, 4 bytes for the object ID, then reading apdu[5] for the opening tag check. A 5-byte input passes the length check but causes a 1-byte OOB read, leading to crashes on embedded BACnet devices. The vulnerability exists in src/bacnet/rpm.c and affects any deployment that enables the ReadPropertyMultiple confirmed service handler (enabled by default in the reference server). This vulnerability is fixed in 1.4.3.

Testo originale del record CVE (in inglese).

Come correggere

Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.5.

Versioni da aggiornare

  • Bacnetstack Bacnet Stack: vulnerabili le versioni dalla 1.4.0 precedenti alla 1.4.3 → aggiornare alla 1.4.3 o successiva.
  • Bacnetstack Bacnet Stack: vulnerabile la versione 1.5.0 rc1 → installare l'ultima release supportata dal vendor.
  • Bacnetstack Bacnet Stack: vulnerabile la versione 1.5.0 rc2 → installare l'ultima release supportata dal vendor.
  • Bacnetstack Bacnet Stack: vulnerabile la versione 1.5.0 rc3 → 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

  1. Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
  2. Confrontare la versione installata con quelle indicate sopra.
  3. Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
  4. Ripetere la scansione per confermare la correzione.

Configurazioni interessate

VendorProdottoVersioni vulnerabiliCorretta in
Bacnetstack Bacnet Stack ≥ 1.4.0 < 1.4.3 1.4.3
Bacnetstack Bacnet Stack 1.5.0 rc1 —
Bacnetstack Bacnet Stack 1.5.0 rc2 —
Bacnetstack Bacnet Stack 1.5.0 rc3 —

Riferimenti