CVE-2025-66647
JSON

1.7low

RIOT OS has buffer overflow in gnrc_ipv6_ext_frag_reass

Severity
1.7low CVSS:4.0 by GitHub_M
Exploit likelihood
1.04% (higher than 64% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

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.

Affected

Product or packageVersionsReported by
RIOT-OS RIOT< 2025.10, before 2025.10, 2025.10CVE List, NVD

All scores

GitHub_M1.7low CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-120

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

RIOT es un sistema operativo de microcontroladores de código abierto, diseñado para cumplir los requisitos de los dispositivos de internet de las cosas (IoT) y otros dispositivos embebidos. Se descubrió una vulnerabilidad en la implementación de reensamblaje de fragmentación IPv6 de RIOT OS v2025.07. Al copiar el contenido del primer fragmento (offset=0) en el búfer de reensamblaje, no se realiza ninguna comprobación de tamaño. Es posible forzar la creación de un búfer de reensamblaje pequeño enviando primero un fragmento más corto (también con offset=0). Desbordar el búfer de reensamblaje corrompe el estado de otros búferes de paquetes que un atacante podría usar para lograr una mayor corrupción de memoria (lo que podría resultar en ejecución remota de código). Para activar la vulnerabilidad, el módulo 'gnrc_ipv6_ext_frag' debe estar incluido y el atacante debe poder enviar paquetes IPv6 arbitrarios a la víctima. La versión 2025.10 soluciona el problema.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-66647 changed 2025-12-17CVE Terms of Use
NVDCVE-2025-66647 changed 2026-10-13Public domain