CVE-2026-125658Use after free in erts 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.
What to do
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | erlang | Under investigation | ||
| Ubuntu 24.04 | erlang | Under investigation | ||
| Ubuntu 22.04 | erlang | Under investigation |
What the vendor says
As published in the CVE record by EEF, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Erlang OTP: affected: 6.0 and later; fixed in
15.2.7.15,16.4.0.8,17.1.2 - Erlang OTP: affected: 17.0 and later; fixed in
27.3.4.20,28.5.0.9,29.1.3 - Erlang OTP: affected: 9622ab2132e2501ee5769357a914dcc6635e515c to before 322b04488d9445c7258abce3e7f3bc79aa7c45d8; fixed in
322b04488d9445c7258abce3e7f3bc79aa7c45d8
Workaround: Start the VM with the +fnl flag, for example through ERL_FLAGS. The VM then does not decode or normalize file names. This changes the result of file name functions for names outside ASCII: the VM returns each byte of the name as one Latin-1 character.
Vendor advisories:
- https://github.com/erlang/otp/security/advisories/GHSA-2pqq-qr2r-wgcc (vendor-advisory)
- https://github.com/erlang/otp/commit/322b04488d9445c7258abce3e7f3bc79aa7c45d8 (patch)
References
- https://github.com/erlang/otp/security/advisories/GHSA-2pqq-qr2r-wgcc
- https://cna.erlef.org/cves/CVE-2026-125658.html
- https://osv.dev/vulnerability/EEF-CVE-2026-125658
- https://www.erlang.org/doc/system/versions.html#order-of-versions
- https://github.com/erlang/otp/commit/9622ab2132e2501ee5769357a914dcc6635e515c
- https://github.com/erlang/otp/commit/322b04488d9445c7258abce3e7f3bc79aa7c45d8
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.