CVE-2026-49759
JSON

8.8high

Stack buffer overflow in SCTP error cause parsing in inet_drv allows remote VM crash

Severity
8.8high CVSS:4.0 by EEF
Exploit likelihood
0.86% (higher than 56% of CVEs)
Published
Last changed
Assigned by
EEF
Also known as
EEF-CVE-2026-49759GHSA-6f4f-chj5-5g97

Description

Stack-based Buffer Overflow vulnerability in Erlang OTP erts (inet_drv) allows an unauthenticated remote attacker to crash the BEAM VM by sending a crafted SCTP ERROR chunk. The sctp_parse_error_chunk function in erts/emulator/drivers/common/inet_drv.c parses SCTP ERROR chunks and writes cause codes into a fixed-size stack-allocated ErlDrvTermData spec[] array without checking bounds. A remote attacker who has established an SCTP association to a listening port can send a single crafted SCTP ERROR chunk containing enough cause codes to overflow the stack buffer, crashing the VM. The attacker can only write 16-bit values interleaved with a fixed tag, so the overflow does not provide a controlled return address, limiting exploitation to Denial of Service. A crafted SCTP ERROR chunk may also leak bits and pieces of Erlang VM memory into the received error packet observed by the Erlang process. Such data is already readable by the user running the Erlang VM, so the disclosure scope is limited. This issue affects OTP from OTP 17.0 before OTP 27.3.4.13, OTP 28.5.0.2, and OTP 29.0.2, corresponding to erts from 6.0 before 15.2.7.9, 16.4.0.2, and 17.0.2. Whether OTP before OTP 17.0, corresponding to erts before 6.0, is affected is unknown.

Affected

Product or packageVersionsReported by
ertsfrom 6.0 before *CVE List
otpfrom 17.0 before *CVE List
erlang/otpfrom 84adefa331c4159d432d22840663c38f155cd4c1 before 3983d495284331c121f600a80bac9fcf4e16381e
Not affected: from 3983d495284331c121f600a80bac9fcf4e16381e before *
CVE List
erlangNot specifiedCVE List
https://github.com/erlang/otpfrom 84adefa331c4159d432d22840663c38f155cd4c1 before 3983d495284331c121f600a80bac9fcf4e16381eErlang Ecosystem Foundation
erlang erlang/otpfrom 17.0 before 27.3.4.13, from 28.0 before 28.5.0.2, from 29.0 before 29.0.2NVD
erlang ertsfrom 6.0 before 15.2.7.9, from 16.0 before 16.4.0.2, from 17.0 before 17.0.2NVD

All scores

EEF8.8high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
redhat-SADP8.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
Erlang Ecosystem FoundationNot scored CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
NVD8.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H

Classification

CWE-120CWE-121

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

What each source says

CVE List

Stack-based Buffer Overflow vulnerability in Erlang OTP erts (inet_drv) allows an unauthenticated remote attacker to crash the BEAM VM by sending a crafted SCTP ERROR chunk. The sctp_parse_error_chunk function in erts/emulator/drivers/common/inet_drv.c parses SCTP ERROR chunks and writes cause codes into a fixed-size stack-allocated ErlDrvTermData spec[] array without checking bounds. A remote attacker who has established an SCTP association to a listening port can send a single crafted SCTP ERROR chunk containing enough cause codes to overflow the stack buffer, crashing the VM. The attacker can only write 16-bit values interleaved with a fixed tag, so the overflow does not provide a controlled return address, limiting exploitation to Denial of Service. A crafted SCTP ERROR chunk may also leak bits and pieces of Erlang VM memory into the received error packet observed by the Erlang process. Such data is already readable by the user running the Erlang VM, so the disclosure scope is limited. This issue affects OTP from OTP 17.0 before OTP 27.3.4.13, OTP 28.5.0.2, and OTP 29.0.2, corresponding to erts from 6.0 before 15.2.7.9, 16.4.0.2, and 17.0.2. Whether OTP before OTP 17.0, corresponding to erts before 6.0, is affected is unknown.

Erlang Ecosystem Foundation

Summary

Stack-based Buffer Overflow vulnerability in Erlang OTP erts (inet_drv) allows an unauthenticated remote attacker to crash the BEAM VM by sending a crafted SCTP ERROR chunk.

The sctp_parse_error_chunk function in erts/emulator/drivers/common/inet_drv.c parses SCTP ERROR chunks and writes cause codes into a fixed-size stack-allocated ErlDrvTermData spec[] array without checking bounds. A remote attacker who has established an SCTP association to a listening port can send a single crafted SCTP ERROR chunk containing enough cause codes to overflow the stack buffer, crashing the VM. The attacker can only write 16-bit values interleaved with a fixed tag, so the overflow does not provide a controlled return address, limiting exploitation to Denial of Service.

A crafted SCTP ERROR chunk may also leak bits and pieces of Erlang VM memory into the received error packet observed by the Erlang process. Such data is already readable by the user running the Erlang VM, so the disclosure scope is limited.

This issue affects OTP from OTP 17.0 before OTP 27.3.4.13, OTP 28.5.0.2, and OTP 29.0.2, corresponding to erts from 6.0 before 15.2.7.9, 16.4.0.2, and 17.0.2. Whether OTP before OTP 17.0, corresponding to erts before 6.0, is affected is unknown.

Configurations

SCTP support must be compiled into OTP. A listening SCTP socket must be opened via gen_sctp with the default inet backend and must be reachable from the attacker's network. Windows builds are unaffected as SCTP is not supported on Windows.

NVD (es)

Una vulnerabilidad de desbordamiento de búfer basado en pila en Erlang OTP erts (inet_drv) permite a un atacante remoto no autenticado bloquear la VM BEAM enviando un fragmento SCTP ERROR manipulado. La función sctp_parse_error_chunk en erts/emulator/drivers/common/inet_drv.c analiza fragmentos SCTP ERROR y escribe códigos de causa en un array ErlDrvTermData spec[] de tamaño fijo asignado en pila sin comprobar los límites. Un atacante remoto que ha establecido una asociación SCTP a un puerto de escucha puede enviar un único fragmento SCTP ERROR manipulado que contenga suficientes códigos de causa para desbordar el búfer de pila, bloqueando la VM. El atacante solo puede escribir valores de 16 bits intercalados con una etiqueta fija, por lo que el desbordamiento no proporciona una dirección de retorno controlada, limitando la explotación a Denegación de Servicio. Un fragmento SCTP ERROR manipulado también puede filtrar fragmentos de memoria de la VM de Erlang en el paquete de error recibido observado por el proceso Erlang. Dichos datos ya son legibles por el usuario que ejecuta la VM de Erlang, por lo que el alcance de la divulgación es limitado. Este problema afecta a OTP desde OTP 17.0 antes de 27.3.4.13, 28.5.0.2 y 29.0.2, correspondiente a erts desde 6.0 antes de 15.2.7.9, 16.4.0.2 y 17.0.2.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-49759 changed 2026-11-20CVE Terms of Use
Erlang Ecosystem FoundationEEF-CVE-2026-49759 changed 2026-11-25CC-BY-4.0
NVDCVE-2026-49759 changed 2026-11-20Public domain