Katalog CVE

CVE-2026-107467

ŚrednieCVSS 6.3
Opublikowano: Zaktualizowano: Przetłumaczono: NVD NIST

Streszczenie

Serwer dystrybucji firmware Bluetooth Mesh w handle_receivers_get() (subsys/bluetooth/mesh/dfd_srv.c) ogranicza liczbę zwracanych wpisów przez MIN(cnt, srv->target_cnt - first), gdzie first to First Index z wiadomości. Gdy first jest większe niż srv->target_cnt, odejmowanie daje wartość ujemną, która po zapisaniu do uint16_t zawija się do dużej liczby, a pętla odczytuje srv->targets[first + i] poza granicami tablicy. Dowolny węzeł mesh z kluczem aplikacji powiązanym z modelem Firmware Distribution Server może wysłać 4-bajtową wiadomość Receivers Get z indeksem poza zakresem, co powoduje wyciek fragmentów pamięci RAM urządzenia w odpowiedzi Receivers List lub błąd i awarię węzła dystrybutora.

Ocena ryzyka

Atakujący w zasięgu radiowym lub przekaźnikowym może ujawnić fragmenty pamięci urządzenia oraz doprowadzić do awarii węzła dystrybutora, zakłócając aktualizacje firmware w sieci mesh. Wyciek może obejmować dane wrażliwe sąsiadujące z tablicą celów.

Rekomendacja

Zaktualizuj Zephyr do wersji z poprawką, która zwraca pustą listę, gdy First Index jest poza zakresem, zgodnie ze specyfikacją Mesh DFU. Do czasu aktualizacji ogranicz dostęp do kluczy aplikacji powiązanych z modelem Firmware Distribution Server.

Powiązane podatności

Oryginalny opis (angielski, źródło NVD)

The Bluetooth Mesh Firmware Distribution Server handles Receivers Get in handle_receivers_get() (subsys/bluetooth/mesh/dfd_srv.c). This handler limits the number of returned entries with MIN(cnt, srv->target_cnt - first), where first is the First Index taken from the message. When first is greater than srv->target_cnt, the subtraction is negative after integer promotion. The MIN() macro then returns that negative value, and storing it in the uint16_t cnt wraps it to a large count. The loop then reads srv->targets[first + i] with no bound other than the response buffer's tailroom. Any mesh node holding an application key bound to the Firmware Distribution Server model can trigger this. Within radio or relay range, it sends a 4-byte Receivers Get message whose First Index is beyond the current receiver count. For example, any non-zero index when no receivers are configured, which is the default state. Because First Index can be as large as 65535, the reads can land up to roughly 1.3 MB past the targets array (with the default CONFIG_BT_MESH_DFD_SRV_TARGETS_MAX of 8). The server copies bit fields from the out-of-bounds memory into the Receivers List response and sends it to the requester. This leaks fragments of adjacent device RAM. A large index can also make the read hit unmapped or protected memory and fault, crashing the distributor node. The fix sends an empty list when First Index is out of range, as the Mesh DFU specification requires.

Dane podatności pochodzą z NVD (NIST) · CISA KEV · EPSS