CVE-2025-66647
KrytyczneStreszczenie
W systemie operacyjnym RIOT OS w wersji v2025.07 odkryto podatność w implementacji fragmentacji IPv6. Podczas kopiowania zawartości pierwszego fragmentu (offset=0) do bufora reassembly nie jest wykonywana kontrola rozmiaru. Możliwe jest wymuszenie utworzenia małego bufora reassembly poprzez wysłanie krótszego fragmentu (również z offset=0). Przepełnienie bufora reassembly uszkadza stan innych buforów pakietów, co atakujący może wykorzystać do dalszego uszkodzenia pamięci (potencjalnie prowadząc do zdalnego wykonania kodu). Aby wywołać podatność, moduł `gnrc_ipv6_ext_frag` musi być włączony, a atakujący musi być w stanie wysyłać dowolne pakiety IPv6 do ofiary. Wersja 2025.10 naprawia problem.
Ocena ryzyka
Ryzyko obejmuje możliwość zdalnego wykonania kodu na urządzeniach IoT, co może prowadzić do przejęcia kontroli nad urządzeniem i naruszenia integralności danych.
Rekomendacja
Zaleca się aktualizację RIOT OS do wersji 2025.10 lub nowszej oraz, jeśli to możliwe, wyłączenie modułu `gnrc_ipv6_ext_frag` w środowiskach, gdzie nie jest wymagany.
Oryginalny opis (angielski, źródło NVD)
RIOT is an open-source microcontroller operating system, designed to match the requirements of Internet of Things (IoT) devices and other embedded devices. A vulnerability was discovered in the IPv6 fragmentation reassembly implementation of RIOT OS v2025.07. When copying the contents of the first fragment (offset=0) into the reassembly buffer, no size check is performed. It is possible to force the creation of a small reassembly buffer by first sending a shorter fragment (also with offset=0). Overflowing the reassembly buffer corrupts the state of other packet buffers which an attacker might be able to used to achieve further memory corruption (potentially resulting in remote code execution). To trigger the vulnerability, the `gnrc_ipv6_ext_frag` module must be included and the attacker must be able to send arbitrary IPv6 packets to the victim. Version 2025.10 fixes the issue.

