{"id":"CVE-2026-125658","summary":"Use after free in erts file name normalization on macOS","details":"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.\n\nOn 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.\n\nThis 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.","aliases":["EEF-CVE-2026-125658","GHSA-2pqq-qr2r-wgcc"],"modified":"2026-11-24T17:46:03.871351061Z","published":"2026-11-24T15:28:21.735Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/125xxx/CVE-2026-125658.json","unresolved_ranges":[{"extracted_events":[{"strategy":"ChangesAt","range":[{"introduced":"6.0"},{"fixed":"15.2.7.15"},{"introduced":"17.0"},{"fixed":"27.3.4.20"}],"source":"AFFECTED_FIELD"}]}],"cna_assigner":"EEF","cwe_ids":["CWE-416"]},"references":[{"type":"WEB","url":"https://cna.erlef.org/cves/CVE-2026-125658.html"},{"type":"WEB","url":"https://github.com"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/125xxx/CVE-2026-125658.json"},{"type":"PACKAGE","url":"https://github.com/erlang/otp"},{"type":"FIX","url":"https://github.com/erlang/otp/commit/322b04488d9445c7258abce3e7f3bc79aa7c45d8"},{"type":"FIX","url":"https://github.com/erlang/otp/commit/9622ab2132e2501ee5769357a914dcc6635e515c"},{"type":"ADVISORY","url":"https://github.com/erlang/otp/security/advisories/GHSA-2pqq-qr2r-wgcc"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-125658"},{"type":"WEB","url":"https://osv.dev/vulnerability/EEF-CVE-2026-125658"},{"type":"WEB","url":"https://www.erlang.org/doc/system/versions.html#order-of-versions"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/erlang/otp","events":[{"introduced":"9622ab2132e2501ee5769357a914dcc6635e515c"},{"fixed":"322b04488d9445c7258abce3e7f3bc79aa7c45d8"},{"fixed":"9622ab2132e2501ee5769357a914dcc6635e515c"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StandardRange","range":[{"introduced":"9622ab2132e2501ee5769357a914dcc6635e515c"},{"fixed":"322b04488d9445c7258abce3e7f3bc79aa7c45d8"}]},{"range":[{"fixed":"9622ab2132e2501ee5769357a914dcc6635e515c"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"322b04488d9445c7258abce3e7f3bc79aa7c45d8"}],"source":"REFERENCES_COMMIT"}]}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-125658.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"}]}