CVE-2026-125658

NameCVE-2026-125658
DescriptionUse 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
erlang (PTS)bookworm1:25.2.3+dfsg-1+deb12u4fixed
bookworm (security)1:25.2.3+dfsg-1+deb12u1fixed
trixie, trixie (security)1:27.3.4.1+dfsg-1+deb13u4fixed
forky1:29.1.2+dfsg-1fixed
sid1:29.1.3+dfsg-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
erlangsource(unstable)(not affected)

Notes

- erlang <not-affected> (Specific to MacOS)
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

Search for package or bug name: Reporting problems