Skip to content
OpenAdvisories
High · 7.5 CVE-2025-30211 EUVD-2025-14809

KEX init error results with excessive memory usage

Published Mar 28, 2025 · Updated Nov 3, 2025 · Assigned by GitHub_M

Description

Erlang/OTP is a set of libraries for the Erlang programming language. Prior to versions OTP-27.3.1, 26.2.5.10, and 25.3.2.19, a maliciously formed KEX init message can result with high memory usage. Implementation does not verify RFC specified limits on algorithm names (64 characters) provided in KEX init message. Big KEX init packet may lead to inefficient processing of the error data. As a result, large amount of memory will be allocated for processing malicious data. Versions OTP-27.3.1, OTP-26.2.5.10, and OTP-25.3.2.19 fix the issue. Some workarounds are available. One may set option `parallel_login` to `false` and/or reduce the `max_sessions` option.

Affected products

VendorProductAffectedFixed
erlang otp < OTP-27.3.1, < OTP-26.2.5.10, < OTP-25.3.2.19 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 erlang 1:27.3.1+dfsg-1 —
Debian 13 erlang 1:27.3.1+dfsg-1 —
Debian 12 erlang 1:25.2.3+dfsg-1+deb12u1 DSA-5906-1
Debian 11 erlang 1:23.2.6+dfsg-1+deb11u2 DLA-4132-1
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS erlang 1:27.3.4.6+dfsg-1ubuntu0.2 USN-8901-1
Ubuntu 25.10 erlang 1:27.3+dfsg-1ubuntu1 —
Ubuntu 24.04 LTS erlang 1:25.3.2.8+dfsg-1ubuntu4.2 USN-8901-1, USN-7425-1
Ubuntu 22.04 LTS erlang 1:24.2.1+dfsg-1ubuntu0.3 USN-8901-1, USN-7425-1
Ubuntu 20.04 LTS erlang 1:22.2.7+dfsg-1ubuntu0.4 USN-7425-1
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS erlang 1:22.2.7+dfsg-1ubuntu0.5+esm3 USN-8901-1
Ubuntu Pro 18.04 LTS erlang 1:20.2.2+dfsg-1ubuntu2+esm4 USN-8901-1
Ubuntu Pro 16.04 LTS erlang 1:18.3-dfsg-1ubuntu3.1+esm4 USN-8901-1
Ubuntu Pro 14.04 LTS erlang 1:16.b.3-dfsg-1ubuntu2.2+esm3 USN-8901-1
ReleasePackageFixed inAdvisory
SLES 15 SP6 erlang26 26.2.1-150300.7.11.1 SUSE-SU-2025:1356-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.6 erlang26 26.2.1-150300.7.11.1 SUSE-SU-2025:1356-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 erlang 26.2.5.10-1 —
Azure Linux 2 (CBL-Mariner) erlang 25.3.2.20-1 —

Advisories 6

References