Descrizione
Netatalk is a Free and Open Source file server suite for Unix-like operating systems. Prior to 4.4.3, the afpd Spotlight RPC unmarshalling loop in etc/afpd/spotlight_marshalling.c subtracts an attacker-controlled subcount from the unsigned count variable in sl_unpack_loop without verifying that subcount is not larger. An authenticated AFP client can place an excessive element count in the sl_unpack_ints, sl_unpack_uuid, sl_unpack_floats, or sl_unpack_date handler, or in a null element, so the subtraction wraps near UINT_MAX and the loop continues reading heap memory at increasing offsets up to toc_offset, which is capped at 65000. The out-of-bounds values can be stored in dalloc structures and returned in the Spotlight RPC response, disclosing heap contents. This issue is fixed in version 4.4.3.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.1, EPSS 0.5% (percentile 34).
Versioni da aggiornare
- Netatalk netatalk: vulnerabile la versione
< 4.4.3→ 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 |
|---|---|---|---|
| Netatalk | netatalk | < 4.4.3 | — |
Riferimenti
- Riferimentohttps://github.com/Netatalk/netatalk/commit/795ed7ef539d171f417511abba5b0a666b2a3300
- Riferimentohttps://github.com/Netatalk/netatalk/commit/caffd8b400dec9966cbe289a3b0a8c385c352c01
- Riferimentohttps://github.com/Netatalk/netatalk/releases/tag/netatalk-4-4-3
- Riferimentohttps://github.com/Netatalk/netatalk/security/advisories/GHSA-9963-q595-wm2x
- Riferimentohttps://github.com/Netatalk/netatalk/security/advisories/GHSA-9963-q595-wm2x