CVE-2026-42792
epmd permanent DoS via EMFILE on accept(2) in erts
Mitigation
- Upgrade OTP to 865d203e4a6a8f44179eced9e1428f9259e4a3bb or later.
- Vendor 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.
Who should check
- Anyone running Erlang OTP >= 6.0, < *
- Anyone running Erlang OTP >= 17.0, < *
- Anyone running Erlang OTP >= 07b8f441ca711f9812fad9e9115bab3c3aa92f79, < 865d203e4a6a8f44179eced9e1428f9259e4a3bb
Vulnerability facts
- Affected
- Erlang OTP >= 6.0, < *; Erlang OTP >= 17.0, < *; Erlang OTP >= 07b8f441ca711f9812fad9e9115bab3c3aa92f79, < 865d203e4a6a8f44179eced9e1428f9259e4a3bb
- Fixed in
- Erlang OTP 865d203e4a6a8f44179eced9e1428f9259e4a3bb
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 6.3 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: None
- User interaction: None
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: Low
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.86% chance of exploitation in 30 days (percentile 56, 2026-11-26)
- CWE
- CWE-755, CWE-770
- Modified
Description
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.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-42792. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-42792.md Affected: Erlang OTP >= 6.0, < *; Erlang OTP >= 17.0, < *; Erlang OTP >= 07b8f441ca711f9812fad9e9115bab3c3aa92f79, < 865d203e4a6a8f44179eced9e1428f9259e4a3bb Fixed in: Erlang OTP 865d203e4a6a8f44179eced9e1428f9259e4a3bb Steps: 1. Search this machine and project for Erlang OTP: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
FAQ
Is CVE-2026-42792 being exploited?
There is no confirmed exploitation: CVE-2026-42792 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.86% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-42792?
Medium: CVSS 6.3 (v4.0, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-42792?
Erlang OTP >= 6.0, < *; Erlang OTP >= 17.0, < *; Erlang OTP >= 07b8f441ca711f9812fad9e9115bab3c3aa92f79, < 865d203e4a6a8f44179eced9e1428f9259e4a3bb.
Is there a fix for CVE-2026-42792?
Yes. Fixed in Erlang OTP 865d203e4a6a8f44179eced9e1428f9259e4a3bb. Upgrade OTP to 865d203e4a6a8f44179eced9e1428f9259e4a3bb or later. Vendor 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.
How do I check if I'm affected by CVE-2026-42792?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.