CVE-2026-42792epmd permanent DoS via EMFILE on accept(2) in erts
Improper Handling of Exceptional Conditions vulnerability in Erlang OTP erts (epmd) allows an unauthenticated remote attacker to permanently terminate the Erlang Port Mapper Daemon (epmd) via connection slot exhaustion. The do_accept function in erts/epmd/src/epmd_srv.c calls epmd_cleanup_exit() when accept(2) returns EMFILE (per-process file descriptor limit reached) or ENFILE (system-wide file descriptor limit reached), rather than treating these as recoverable conditions. An attacker can exhaust epmd's file descriptor slots by holding many TCP connections open while periodically sending a single byte to reset the idle timeout, then causing accept(2) to return EMFILE, which kills the daemon. epmd has no per-source-IP connection cap, making the attack feasible from a single source. On Debian/Ubuntu default packaging the impact is amplified: the systemd unit inherits a low file descriptor soft limit, and repeated daemon deaths trigger systemd's start-rate-limit, permanently failing both epmd.service and epmd.socket and requiring manual operator intervention to recover. This issue affects OTP from OTP 17.0 before OTP 27.3.4.15, OTP 28.5.0.4, and OTP 29.0.4, corresponding to erts from 6.0 before 15.2.7.11, 16.4.0.4, and 17.0.4.
What to do
Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | erlang | Fixed | 1:27.3.4.6+dfsg-1ubuntu0.1 | UBUNTU-CVE-2026-42792 |
| Ubuntu 24.04 | erlang | Fixed | 1:25.3.2.8+dfsg-1ubuntu4.7 | UBUNTU-CVE-2026-42792 |
| Ubuntu 22.04 | erlang | Fixed | 1:24.2.1+dfsg-1ubuntu0.7 | UBUNTU-CVE-2026-42792 |
| Ubuntu 20.04 | erlang | Fix pending | 1:22.2.7+dfsg-1ubuntu0.5+esm2 (Ubuntu Pro) | UBUNTU-CVE-2026-42792 |
| Ubuntu 18.04 | erlang | Fix pending | 1:20.2.2+dfsg-1ubuntu2+esm3 (Ubuntu Pro) | UBUNTU-CVE-2026-42792 |
| Ubuntu 16.04 | erlang | Fix pending | 1:18.3-dfsg-1ubuntu3.1+esm3 (Ubuntu Pro) | UBUNTU-CVE-2026-42792 |
| Ubuntu 14.04 | erlang | Fix pending | 1:16.b.3-dfsg-1ubuntu2.2+esm2 (Ubuntu Pro) | UBUNTU-CVE-2026-42792 |
| Debian 14 | erlang | Fixed | 1:29.0.4+dfsg-1 | DEBIAN-CVE-2026-42792 |
| Debian 13 | erlang | Fixed | 1:27.3.4.1+dfsg-1+deb13u3 | DEBIAN-CVE-2026-42792 |
| Debian 12 | erlang | Fix pending | DEBIAN-CVE-2026-42792 |
What the vendor says
As published in the CVE record by EEF, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Erlang OTP: affected: 6.0 and later; fixed in
15.2.7.11,16.4.0.4,17.0.4 - Erlang OTP: affected: 17.0 and later; fixed in
27.3.4.15,28.5.0.4,29.0.4 - Erlang OTP: affected: 07b8f441ca711f9812fad9e9115bab3c3aa92f79 to before 865d203e4a6a8f44179eced9e1428f9259e4a3bb; fixed in
865d203e4a6a8f44179eced9e1428f9259e4a3bb
Workaround: * Restrict epmd to loopback only by adding a systemd socket override: set ListenStream= (empty, to clear), then ListenStream=127.0.0.1:4369 and ListenStream=[::1]:4369 in /etc/systemd/system/epmd.socket.d/override.conf. * On systemd-managed systems, raise the file descriptor limit and configure automatic restart by adding LimitNOFILE=65536 and Restart=always with a suitable RestartSec in /etc/systemd/system/epmd.service.d/override.conf. * Restrict network access to TCP port 4369 via firewall rules to trusted hosts only.
Vendor advisories:
- https://github.com/erlang/otp/security/advisories/GHSA-h6f3-hx58-xhj6 (vendor-advisory)
- https://github.com/erlang/otp/commit/865d203e4a6a8f44179eced9e1428f9259e4a3bb (patch)
References
- https://github.com/erlang/otp/security/advisories/GHSA-h6f3-hx58-xhj6
- https://cna.erlef.org/cves/CVE-2026-42792.html
- https://osv.dev/vulnerability/EEF-CVE-2026-42792
- https://www.erlang.org/doc/system/versions.html#order-of-versions
- https://github.com/erlang/otp/commit/07b8f441ca711f9812fad9e9115bab3c3aa92f79
- https://github.com/erlang/otp/commit/865d203e4a6a8f44179eced9e1428f9259e4a3bb
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.