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 package | Versions | Reported by |
|---|---|---|
| erts | from 6.0 before * | CVE List |
| otp | from 17.0 before * | CVE List |
| erlang/otp | from 84adefa331c4159d432d22840663c38f155cd4c1 before 3983d495284331c121f600a80bac9fcf4e16381e Not affected: from 3983d495284331c121f600a80bac9fcf4e16381e before * | CVE List |
| erlang | Not specified | CVE List |
| https://github.com/erlang/otp | from 84adefa331c4159d432d22840663c38f155cd4c1 before 3983d495284331c121f600a80bac9fcf4e16381e | Erlang Ecosystem Foundation |
| erlang erlang/otp | from 17.0 before 27.3.4.13, from 28.0 before 28.5.0.2, from 29.0 before 29.0.2 | NVD |
| erlang erts | from 6.0 before 15.2.7.9, from 16.0 before 16.4.0.2, from 17.0 before 17.0.2 | NVD |
All scores
| EEF | 8.8high CVSS:4.0 | CVSS: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-SADP | 8.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H |
| Erlang Ecosystem Foundation | Not scored CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N |
| NVD | 8.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H |
Classification
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
| https://github.com/erlang/otp/security/advisories/GHSA-6f4f-chj5-5g97 | advisory, related, vendor-advisory | |
| https://cna.erlef.org/cves/CVE-2026-49759.html | related, third-party-advisory, web | |
| https://osv.dev/vulnerability/EEF-CVE-2026-49759 | related, third-party-advisory | |
| https://www.erlang.org/doc/system/versions.html#order-of-versions | product, web | |
| https://github.com/erlang/otp/commit/3983d495284331c121f600a80bac9fcf4e16381e | fix, patch | |
| https://access.redhat.com/security/cve/CVE-2026-49759 | vdb-entry | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2487607 | issue-tracking | |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-49759.json | ||
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-49759 changed 2026-11-20 | CVE Terms of Use |
| Erlang Ecosystem Foundation | EEF-CVE-2026-49759 changed 2026-11-25 | CC-BY-4.0 |
| NVD | CVE-2026-49759 changed 2026-11-20 | Public domain |