Am I affected?

This record states its affected versions in a form that can't be compared automatically.

10.9 and up affected
11.7.3 not affected
11.6.0.3 not affected
11.2.12.10 not affected
every other version: unaffected

Description

Time-of-check Time-of-use (TOCTOU) race condition vulnerability in Erlang/OTP ssl (dtls_packet_demux module) allows an unauthenticated remote attacker to crash all active DTLS sessions on a listener.

A DTLS server listener uses a single shared dtls_packet_demux gen_server process to route incoming UDP datagrams to the correct connection handler. When a DTLS client reconnects rapidly from the same source address and port (sending multiple ClientHello messages in quick succession), a race condition in the demux's internal gb_trees key-value store causes a {key_exists, {old, Client}} crash, terminating the demux process. Because the demux is shared across all DTLS associations on that listener, its crash immediately kills every active DTLS session, not just the attacker's.

The attack is pre-authentication: the attacker only needs to send UDP datagrams containing valid ClientHello messages from the same source IP and port before the intermediate DOWN monitor message is processed by the gen_server. No credentials, no completed handshake, and no special configuration are required, and the crash can be repeated indefinitely to create a persistent denial of service for all clients of that listener.

This vulnerability is associated with program file lib/ssl/src/dtls_packet_demux.erl.

This issue affects OTP from OTP 25.3 before OTP 29.0.3, OTP 28.5.0.3 and OTP 27.3.4.14, corresponding to ssl from 10.9 before 11.7.3, 11.6.0.3 and 11.2.12.10.

Weaknesses & attack patterns

Weakness

CWE-367 · Time-of-check Time-of-use (TOCTOU) Race Condition in catalog → MITRE ↗

Attack patterns

CAPEC-29 · Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions MITRE ↗

Affected — Erlang / ssl Repository ↗

10.9 and up affected
11.7.3 not affected
11.6.0.3 not affected
11.2.12.10 not affected
every other version: unaffected
default status unaffected
cpe cpe:2.3:a:erlang:erlang/otp:*:*:*:*:*:*:*:*
modules · source files · routines
modules dtls_packet_demux
source files src/dtls_packet_demux.erl
routines dtls_packet_demux:handle_call/3 · dtls_packet_demux:handle_info/2 · dtls_packet_demux:new_connection/2

Affected — GitHub / erlang/otp Repository ↗

25.3 and up affected
29.0.3 not affected
28.5.0.3 not affected
27.3.4.14 not affected
44dcb4c < e44d2bf affected
every other version: unaffected
default status unaffected
cpe cpe:2.3:a:erlang:erlang/otp:*:*:*:*:*:*:*:*
modules · source files · routines
modules dtls_packet_demux
source files lib/ssl/src/dtls_packet_demux.erl
routines dtls_packet_demux:handle_call/3 · dtls_packet_demux:handle_info/2 · dtls_packet_demux:new_connection/2

Configurations

The application must accept incoming DTLS connections via ssl:listen/2 with a UDP-based transport. TLS-only deployments are not affected.

References

Credits

Lukas Backström Finder
Ingela Anderton Andin Remediation developer
Dan Gudmundsson Remediation reviewer

CVSS breakdown

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
« All CVEs