CVEfocus › CVE database › CVE-2026-42792

CVE-2026-42792epmd permanent DoS via EMFILE on accept(2) in erts

CVSS 6.3 MediumEPSS 0.9% (higher than 56% of CVEs)Published 2026-07-27Updated 2026-11-20Assigner: EEF

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.

CWE-755CWE-770

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

5Fixed
5Fix pending

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04erlangFixed1:27.3.4.6+dfsg-1ubuntu0.1UBUNTU-CVE-2026-42792
Ubuntu 24.04erlangFixed1:25.3.2.8+dfsg-1ubuntu4.7UBUNTU-CVE-2026-42792
Ubuntu 22.04erlangFixed1:24.2.1+dfsg-1ubuntu0.7UBUNTU-CVE-2026-42792
Ubuntu 20.04erlangFix pending1:22.2.7+dfsg-1ubuntu0.5+esm2 (Ubuntu Pro)UBUNTU-CVE-2026-42792
Ubuntu 18.04erlangFix pending1:20.2.2+dfsg-1ubuntu2+esm3 (Ubuntu Pro)UBUNTU-CVE-2026-42792
Ubuntu 16.04erlangFix pending1:18.3-dfsg-1ubuntu3.1+esm3 (Ubuntu Pro)UBUNTU-CVE-2026-42792
Ubuntu 14.04erlangFix pending1:16.b.3-dfsg-1ubuntu2.2+esm2 (Ubuntu Pro)UBUNTU-CVE-2026-42792
Debian 14erlangFixed1:29.0.4+dfsg-1DEBIAN-CVE-2026-42792
Debian 13erlangFixed1:27.3.4.1+dfsg-1+deb13u3DEBIAN-CVE-2026-42792
Debian 12erlangFix pendingDEBIAN-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.

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:

References

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.