Am I affected?

type your erts version to check

Description

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, OTP 28.5.0.6, and OTP 29.0.6, corresponding to erts from 6.0 before 15.2.7.13, 16.4.0.6, and 17.0.6. Whether OTP before OTP 17.0, corresponding to erts before 6.0, is affected is unknown.

Weaknesses & attack patterns

Weakness

CWE-190 · Integer Overflow or Wraparound in catalog → MITRE ↗
CWE-122 · Heap-based Buffer Overflow in catalog → MITRE ↗

Attack patterns

CAPEC-100 · Overflow Buffers MITRE ↗

Affected — Erlang / erts Repository ↗

≥ 6.0 and up affected
→ 15.2.7.13 not affected
→ 16.4.0.6 not affected
→ 17.0.6 not affected
every other version: unknown
cpe cpe:2.3:a:erlang:erlang/otp:*:*:*:*:*:*:*:*
version type otp

Affected — Erlang

≥ 17.0 and up affected
→ 27.3.4.17 not affected
→ 28.5.0.6 not affected
→ 29.0.6 not affected
every other version: unknown
cpe cpe:2.3:a:erlang:erlang/otp:*:*:*:*:*:*:*:*
version type otp

Affected — GitHub / erlang/otp Repository ↗

≥ 84adefa < 08e8efd affected
≥ 08e8efd and up not affected
every other version: unknown
cpe cpe:2.3:a:erlang:erlang/otp:*:*:*:*:*:*:*:*
version type git

References

Credits

Adam Korcz Finder
Arthur Chan Finder
David Korczynski Finder
RaimoNiskanen / Ericsson Remediation developer
John Högberg / Ericsson Remediation reviewer
Sverker Eriksson / Ericsson Remediation reviewer

CVSS breakdown

CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Exploitability

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None

Vulnerable System

Confidentiality
None
Integrity
None
Availability
High

Subsequent Systems

Confidentiality
None
Integrity
None
Availability
None
« All CVEs