Skip to content
DayZeroHub
Medium Not yet writtenCVSS 5.7CVE-2026-125658

CVE-2026-125658: Use after free in erts file name normalization on macOS

Erlang OTP

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-125658: medium-severity vulnerability (CVSS 5.7) in Erlang OTP.

What happened

Original description from the source: 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.

Why it matters

Medium severity, CVSS 5.7.

Affected products and versions

Erlang OTP 6.0 (fixed in 15.2.7.15); Erlang OTP 6.0 (fixed in 16.4.0.8); Erlang OTP 6.0 (fixed in 17.1.2); Erlang OTP 17.0 (fixed in 27.3.4.20); Erlang OTP 17.0 (fixed in 28.5.0.9); Erlang OTP 17.0 (fixed in 29.1.3); Erlang OTP >= 9622ab2132e2501ee5769357a914dcc6635e515c, < 322b04488d9445c7258abce3e7f3bc79aa7c45d8

ProductVersionsFixed in
Erlang OTP6.015.2.7.15
Erlang OTP6.016.4.0.8
Erlang OTP6.017.1.2
Erlang OTP17.027.3.4.20
Erlang OTP17.028.5.0.9
Erlang OTP17.029.1.3
Erlang OTP>= 9622ab2132e2501ee5769357a914dcc6635e515c, < 322b04488d9445c7258abce3e7f3bc79aa7c45d8—

Action recommended by the source

Upgrade to a fixed version: 15.2.7.15, 16.4.0.8, 17.1.2, 27.3.4.20, 28.5.0.9, 29.1.3.

Fixed in: 15.2.7.15, 16.4.0.8, 17.1.2, 27.3.4.20, 28.5.0.9, 29.1.3

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-416

Relevant change history

  1. Published

    Preliminary advisory published.