REDHAT-BUG-2487607: Buffer Overflow
Stack-based Buffer Overflow vulnerability in Erlang OTP erts (inetdrv) allows an unauthenticated remote attacker to crash the BEAM VM by sending a crafted SCTP ERROR chunk.
The sctpparseerrorchunk function in erts/emulator/drivers/common/inetdrv.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 27.3.4.13, 28.5.0.2 and 29.0.2, corresponding to erts from 6.0 before 15.2.7.9, 16.4.0.2 and 17.0.2.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Erlang OTP (erts/inet_drv)to a version that resolves this vulnerability.Fixed in 27.3.4.13 - Upgrade
Upgrade
Erlang OTP (erts/inet_drv)to a version that resolves this vulnerability.Fixed in 28.5.0.2 - Upgrade
Upgrade
Erlang OTP (erts/inet_drv)to a version that resolves this vulnerability.Fixed in 29.0.2 - Upgrade
Upgrade
Erlang erts (inet_drv)to a version that resolves this vulnerability.Fixed in 15.2.7.9 - Upgrade
Upgrade
Erlang erts (inet_drv)to a version that resolves this vulnerability.Fixed in 16.4.0.2 - Upgrade
Upgrade
Erlang erts (inet_drv)to a version that resolves this vulnerability.Fixed in 17.0.2
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2487607?
The severity of REDHAT-BUG-2487607 is classified as high with a score of 7.
How do I fix REDHAT-BUG-2487607?
To fix REDHAT-BUG-2487607, update to the latest version of Erlang OTP which contains the necessary patches.
What systems are affected by REDHAT-BUG-2487607?
Erlang OTP erts systems are affected by REDHAT-BUG-2487607, particularly those utilizing the inet_drv.
What type of vulnerability is REDHAT-BUG-2487607?
REDHAT-BUG-2487607 is a stack-based buffer overflow vulnerability.
Can REDHAT-BUG-2487607 be exploited remotely?
Yes, REDHAT-BUG-2487607 can be exploited by an unauthenticated remote attacker.