CVE-2026-42792 Details
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.
A denial-of-service vulnerability has been identified in the Erlang Open Telecom Platform (OTP) in the Erlang Runtime System (ERTS) component, specifically within the Erlang Port Mapper Daemon (epmd). This vulnerability allows an unauthenticated remote attacker to permanently terminate the epmd service by exhausting its connection slots. The issue arises because the 'do_accept' function in 'epmd_srv.c' improperly handles exceptional conditions. When the 'accept' system call fails due to reaching the per-process or system-wide file descriptor limits, the daemon is terminated instead of recovering. An attacker can exploit this by keeping multiple TCP connections open, sending occasional bytes to prevent timeout, and then causing 'accept' to fail, which kills the daemon. This attack can be executed from a single source IP, as epmd does not limit connections by source. The default packaging of Erlang OTP on Debian and Ubuntu amplifies the impact, as it sets a low file descriptor limit and exposes epmd to untrusted networks, requiring manual intervention to restore the service after it fails.
Users can restrict epmd to loopback only by adding a systemd socket override. On systemd-managed systems, the file descriptor limit can be raised and the service configured to restart automatically. Additionally, network access to TCP port 4369 can be restricted via firewall rules.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 27, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://cna.erlef.org/cves/CVE-2026-42792.html | EEF | PatchThird Party Advisory |
| https://github.com/erlang/otp/commit/07b8f441ca711f9812fad9e9115bab3c3aa92f79 | EEF | |
| https://github.com/erlang/otp/commit/865d203e4a6a8f44179eced9e1428f9259e4a3bb | EEF | Patch |
| https://github.com/erlang/otp/security/advisories/GHSA-h6f3-hx58-xhj6 | EEF | Vendor Advisory |
| https://osv.dev/vulnerability/EEF-CVE-2026-42792 | EEF | PatchThird Party Advisory |
| https://www.erlang.org/doc/system/versions.html#order-of-versions | EEF | Release Notes |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-755 | Improper Handling of Exceptional Conditions | EEF |
| CWE-770 | Allocation of Resources Without Limits or Throttling | EEF |
Affected Products
| Product | Versions |
|---|---|
| erlang erlang/otp | >= 17.0, < 27.3.4 >= 28.0, < 28.5.0.4 >= 29.0, < 29.0.4 |
CPE
Remediation
| |
| erlang erts | >= 6.0, < 15.2.7.11 >= 16.0, < 16.4.0.4 >= 17.0, < 17.0.4 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 20, 2026 | CVE Modified | EEF |
| Nov 11, 2026 | CVE Modified | EEF |
| Oct 24, 2026 | CVE Translated | [email protected] |
| Aug 10, 2026 | Initial Analysis | [email protected] |
| Jul 27, 2026 | CVE Modified | CISA-ADP |
| Jul 27, 2026 | New CVE Received | EEF |