Отказ в обслуживании (DoS) в Erlang OTP при нормализации имён файлов на macOS
Erlang OTP
Кратко
Уязвимость использования после освобождения (use-after-free) в обработке имён файлов в Erlang/OTP на macOS позволяет локальному пользователю с низкими привилегиями вызвать зависание или аварийное завершение виртуальной машины Erlang путём создания записи файловой системы со специально сформированным именем. Продемонстрирована только потеря доступности.
Резюме сгенерировано ИИ по данным источников и переведено автоматически.
Исправление
Исправлено в версиях: 15.2.7.1527.3.4.20
Затронутые версии
| erts | с 6.0 → исправлено в 15.2.7.15 |
| otp | с 17.0 → исправлено в 27.3.4.20 |
Оригинальное описание (EN)
Оригинальный заголовок: Erlang OTP denial of service in file name normalization on macOS
Use After Free vulnerability in Erlang/OTP erts allows an attacker who can create a file system entry with a chosen name to hang or abort the Erlang VM on macOS. On macOS, the VM decodes file names with do_utf8_to_list_normalize in erts/emulator/beam/erl_unicode.c. When a name starts with a combining mark, such as U+0301, cleanup_norm builds the first list cells but does not return its advanced heap pointer. The caller then releases the heap words that hold those cells, and the returned list refers to released process heap memory that the next allocation overwrites. file:list_dir/1, file:list_dir_all/1, file:del_dir_r/1 and filelib:wildcard/1 on a directory that contains such a name do not return, and the VM does not stop on SIGTERM. file:read_link/1 on a symbolic link with such a target aborts the VM with size_object: bad tag. Only loss of availability was demonstrated. This issue affects OTP from OTP 17.0 before OTP 27.3.4.20, OTP 28.5.0.9, and OTP 29.1.3, corresponding to erts from 6.0 before 15.2.7.15, 16.4.0.8, and 17.1.2.
Ссылки
- Вендорgithub.com/erlang/otp/security/advisories/GHSA-2pqq-qr2r-wgcc
- Прочееcna.erlef.org/cves/CVE-2026-125658.html
- Прочееosv.dev/vulnerability/EEF-CVE-2026-125658
- Вендорwww.erlang.org/doc/system/versions.html#order-of-versions
- Прочееgithub.com/erlang/otp/commit/9622ab2132e2501ee5769357a914dcc6635e515c
- Прочееgithub.com/erlang/otp/commit/322b04488d9445c7258abce3e7f3bc79aa7c45d8