CVE-2026-12236
ŚrednieCVSS 6.5Prawdopodobieństwo exploitacji (EPSS)
Niskie ryzykoPercentyl 1 - wyżej niż 1% wszystkich znanych CVE
Streszczenie
Podatność w funkcji parse_read_std_char_desc() w podsystemie Bluetooth hosta (subsys/bluetooth/host/gatt.c) pozwala zdalnemu, nieuwierzytelnionemu urządzeniu na zawieszenie wątku obsługi Bluetooth przez wysłanie odpowiedzi ATT z zerową długością wpisu (rsp->len = 0). Pętla parsowania nie sprawdza minimalnej wartości rsp->len, co prowadzi do nieskończonej pętli (CWE-835) i braku możliwości zakończenia odkrywania deskryptorów.
Ocena ryzyka
Atakujący w zasięgu Bluetooth może wywołać denial of service (DoS) podsystemu Bluetooth, co może doprowadzić do zawieszenia urządzenia lub restartu przez watchdog. Atak nie wymaga parowania ani szyfrowania, wystarczy, że urządzenie nawiąże połączenie z złośliwym peerem i zainicjuje odkrywanie standardowych deskryptorów.
Rekomendacja
Należy natychmiast zastosować poprawkę dostarczoną przez producenta, która dodaje walidację rsp->len < sizeof(struct bt_att_data) przed pętlą. Jeśli poprawka nie jest dostępna, należy ograniczyć możliwość łączenia się z nieznanymi urządzeniami Bluetooth lub wyłączyć funkcję GATT discovery, jeśli nie jest niezbędna.
Oryginalny opis (angielski, źródło NVD)
The Bluetooth host GATT client function parse_read_std_char_desc() in subsys/bluetooth/host/gatt.c parses an ATT Read By Type Response received from a remote GATT server during BT_GATT_DISCOVER_STD_CHAR_DESC discovery. The per-entry stride rsp->len is taken directly from the peer's PDU, and the parse loop both tests its exit condition (length >= rsp->len) and advances (length -= rsp->len, pdu += rsp->len) using that value. The minimum value of rsp->len was never validated before the loop. A malicious or malfunctioning peer can reply with rsp->len = 0. Because length is unsigned and never decreases, the loop condition stays true forever and the read pointer never advances; as long as the body is at least a few bytes with a non-zero handle and a matching descriptor UUID, the host repeatedly re-parses the same bytes and invokes the discovery callback, never terminating. This hangs the Bluetooth host processing thread (CWE-835, loop with unreachable exit condition). The condition is reachable by any connected peer once the local device initiates standard-descriptor-value discovery; GATT discovery does not require bonding or encryption, so an unauthenticated adjacent attacker that the device connects to can trigger it. The impact is denial of service of the Bluetooth subsystem (and likely a watchdog reset on constrained targets); there is no memory disclosure or corruption. The fix adds a rsp->len < sizeof(struct bt_att_data) check before the loop, rejecting under-length responses so the stride is always non-zero and the loop terminates. The sibling parsers parse_include() and parse_characteristic() already validated rsp->len and are unaffected.

