REDHAT-BUG-2526856: High severity Ericsson Erlang/OTP vulnerability
An attacker that connects to an open Erlang TCP port that uses the inet driver with {packet,4} mode can use a signed overflow in an incorrect packet length calculation to overflow the receive buffer into the VM allocator area and beyond up to about 2 GB.
This would easily trash the allocated block's allocator metadata footer, and the next block, if any, and most likely cause the BEAM VM to crash. Utilizing this with precision enough to achieve Remote Code Execution would be extremely unfeasible.
This issue affects OTP from OTP 17.0 before OTP 27.3.4.17, from OTP 28.0 before OTP 28.5.0.6, and from OTP 29.0 before OTP 29.0.6, corresponding to erts from 6.0 before 15.2.7.13, from 16.0 before 16.4.0.6, and from 17.0 before 17.0.6. Whether OTP before OTP 17.0, corresponding to erts before 6.0, is affected is unknown.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Deployments are exposed if they accept connections on an open Erlang TCP port using the inet driver with {packet,4} mode. The issue affects the listed OTP/ERTS release ranges; whether releases before OTP 17.0 or ERTS 6.0 are affected is unknown.
What does an attacker need to exploit it?
An attacker needs network connectivity to an exposed Erlang TCP port configured with the inet driver and {packet,4} packet mode. No additional prerequisite is stated.
Is remote code execution a realistic outcome?
The overflow can corrupt allocator metadata and is most likely to crash the BEAM VM. Achieving remote code execution would require enough precision to make it extremely unfeasible.
What versions contain the fixes?
Fixed versions are OTP 27.3.4.17, OTP 28.5.0.6, and OTP 29.0.6, corresponding to ERTS 15.2.7.13, 16.4.0.6, and 17.0.6. Upgrade within the applicable release branch to at least the stated fixed version.