Katalog CVE

CVE-2026-107468

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

Streszczenie

Generator początkowych numerów sekwencji (ISN) w stosie TCP Zephyr (funkcje tcpv4_init_isn() i tcpv6_init_isn()) wywoływał psa_hash_compute() dla SHA-256 z buforem 16 bajtów zamiast wymaganych 32, ignorując błąd PSA_ERROR_BUFFER_TOO_SMALL. W efekcie składnik hash był stały (0x21212121) lub zawierał niezainicjalizowane dane stosu, przez co ISN nie zależał od klucza ani od czwórki połączenia. ISN każdego połączenia TCP stawał się przewidywalny — stała plus zgrubny licznik uptime.

Ocena ryzyka

Atakujący z sieci (off-path) może pojedynczym SYN-ACK poznać fazę licznika i przewidzieć numery sekwencji innych połączeń, co umożliwia blind-spoofing z zaufanych adresów, wstrzykiwanie danych do niezaszyfrowanych sesji TCP oraz resetowanie ustanowionych połączeń segmentami RST. Sesje chronione end-to-end (np. TLS) są narażone tylko na resety połączeń.

Rekomendacja

Zaktualizuj Zephyr do wersji zawierającej poprawkę, która rozmiar bufora ustala przez PSA_HASH_LENGTH(), sprawdza status PSA i w razie błędu korzysta z sys_rand32_get(). Jeśli aktualizacja nie jest możliwa, rozważ wyłączenie CONFIG_NET_TCP_ISN_RFC6528 lub ograniczenie ekspozycji stosu TCP na niezaufane sieci.

Powiązane podatności

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

The RFC 6528 initial sequence number (ISN) generator in the Zephyr TCP stack (subsys/net/ip/tcp.c, tcpv4_init_isn() / tcpv6_init_isn()) asked psa_hash_compute() for a SHA-256 digest into a 16-byte buffer and ignored the return status. SHA-256 needs 32 bytes, so the call always failed with PSA_ERROR_BUFFER_TOO_SMALL. With the built-in Mbed TLS / TF-PSA-Crypto driver, the output buffer is filled with '!' on failure, so the keyed hash term was the constant 0x21212121. With other PSA drivers the term was uninitialized stack contents. In both cases the ISN no longer depends on the secret key or on the connection four-tuple. As a result, the ISN of every TCP connection (active and passive opens) was a constant plus a coarse uptime-derived counter (k_ticks_to_ns_floor32(k_uptime_ticks()) >> 6). This affects any build with CONFIG_NET_TCP and CONFIG_NET_TCP_ISN_RFC6528. That option is enabled by default whenever PSA_WANT_ALG_SHA_256 is selected, for example by the TLS ciphersuites, tls_credentials, mcumgr, updatehub, or the IPv6 privacy options. An off-path network attacker can learn the current counter phase by observing a single SYN-ACK from the device, then predict the sequence numbers of other connections. With predictable ISNs, an off-path attacker can blind-spoof TCP connections from trusted source addresses, inject data into unencrypted TCP sessions, or reset established connections with in-window RST segments. This is the attack class RFC 6528 is meant to prevent. Sessions protected end to end (for example by TLS) are exposed only to connection resets. The fix sizes the buffer with PSA_HASH_LENGTH(), checks the PSA status, and falls back to sys_rand32_get() when the hash cannot be computed.

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