Неаутентифицированный удалённый злоумышленник может аварийно завершить общий процесс демультиплексирования DTLS, уничтожив все активные DTLS-сессии на слушателе и вызвав повторяемый отказ в обслуживании.
Исправлено в версиях: 11.2.12.1027.3.4.14
| ssl | с 10.9 → исправлено в 11.2.12.10 |
| otp | с 25.3 → исправлено в 27.3.4.14 |
Команды, использующие Erlang/OTP 25.3 или новее с DTLS-серверными слушателями ssl поверх UDP (ssl:listen/2), принимающие соединения из ненадёжных сетей.
Состояние гонки в демультиплексоре пакетов DTLS может аварийно завершить общий процесс, обрабатывающий входящий DTLS-трафик. Неаутентифицированный удалённый злоумышленник может вызвать это, и аварийное завершение прекращает все активные DTLS-сессии на слушателе, вызывая отказ в обслуживании, который можно повторять.
Затронуты OTP с 25.3 до исправленных выпусков, а также приложение ssl с 10.9 до исправленных версий ssl. Проблема проявляется только когда приложение принимает входящие DTLS-соединения через ssl:listen/2 поверх UDP-транспорта. Проверьте версию вашего OTP-релиза и приложения ssl, а также использует ли ваш код DTLS-слушатели через ssl:listen/2.
Оригинальный заголовок: DTLS listener crash via race condition in dtls_packet_demux causes denial of service for all sessions
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 27.3.4.14, OTP 28.5.0.3, and OTP 29.0.3, corresponding to ssl from 10.9 before 11.2.12.10, 11.6.0.3, and 11.7.3.