CVE-2026-125658 (GCVE-0-2026-125658)
Vulnerability from cvelistv5 – Published: 2026-11-24 15:28 – Updated: 2026-11-24 16:28
VLAI
EPSS
VEX
Title
Use after free in erts file name normalization on macOS
Summary
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.
Severity
SSVC
Exploitation: poc
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-24 16:28 UTC
CWE
- CWE-416 - Use After Free
Assigner
References
6 references
| URL | Tags |
|---|---|
| https://github.com/erlang/otp/security/advisories… | vendor-advisoryrelated |
| https://cna.erlef.org/cves/CVE-2026-125658.html | related |
| https://osv.dev/vulnerability/EEF-CVE-2026-125658 | related |
| https://www.erlang.org/doc/system/versions.html#o… | x_version-scheme |
| https://github.com/erlang/otp/commit/9622ab2132e2… | related |
| https://github.com/erlang/otp/commit/322b04488d94… | patch |
Impacted products
3 products
| Vendor | Product | Version | |
|---|---|---|---|
| Erlang | OTP |
Affected:
6.0 , < *
(otp)
cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:* |
|
| Erlang | OTP |
Affected:
17.0 , < *
(otp)
cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:* |
|
| Erlang | OTP |
Affected:
9622ab2132e2501ee5769357a914dcc6635e515c , < 322b04488d9445c7258abce3e7f3bc79aa7c45d8
(git)
cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:* |
Date Public
2026-11-24 15:28
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-125658",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-24T16:28:46.739978Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-24T16:28:56.749Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"references": [
{
"tags": [
"exploit"
],
"url": "https://cna.erlef.org/cves/CVE-2026-125658.html"
},
{
"tags": [
"exploit"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-125658"
}
],
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"cpes": [
"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"prim_file"
],
"packageName": "erts",
"packageURL": "pkg:otp/erts?repository_url=https:%2F%2Fgithub.com%2Ferlang%2Fotp\u0026vcs_url=git%2Bhttps:%2F%2Fgithub.com%2Ferlang%2Fotp.git",
"product": "OTP",
"programFiles": [
"emulator/beam/erl_unicode.c",
"preloaded/src/prim_file.erl"
],
"programRoutines": [
{
"name": "cleanup_norm"
},
{
"name": "do_utf8_to_list_normalize"
},
{
"name": "prim_file_internal_native2name_1"
},
{
"name": "prim_file:internal_native2name/1"
},
{
"name": "prim_file:list_dir/1"
},
{
"name": "prim_file:list_dir_all/1"
},
{
"name": "prim_file:read_link/1"
}
],
"repo": "https://github.com/erlang/otp",
"vendor": "Erlang",
"versions": [
{
"changes": [
{
"at": "15.2.7.15",
"status": "unaffected"
},
{
"at": "16.4.0.8",
"status": "unaffected"
},
{
"at": "17.1.2",
"status": "unaffected"
}
],
"lessThan": "*",
"status": "affected",
"version": "6.0",
"versionType": "otp"
}
]
},
{
"cpes": [
"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"prim_file"
],
"packageName": "otp",
"packageURL": "pkg:software-id/erlang.org/otp",
"product": "OTP",
"programFiles": [
"erts/emulator/beam/erl_unicode.c",
"erts/preloaded/src/prim_file.erl"
],
"programRoutines": [
{
"name": "cleanup_norm"
},
{
"name": "do_utf8_to_list_normalize"
},
{
"name": "prim_file_internal_native2name_1"
},
{
"name": "prim_file:internal_native2name/1"
},
{
"name": "prim_file:list_dir/1"
},
{
"name": "prim_file:list_dir_all/1"
},
{
"name": "prim_file:read_link/1"
}
],
"vendor": "Erlang",
"versions": [
{
"changes": [
{
"at": "27.3.4.20",
"status": "unaffected"
},
{
"at": "28.5.0.9",
"status": "unaffected"
},
{
"at": "29.1.3",
"status": "unaffected"
}
],
"lessThan": "*",
"status": "affected",
"version": "17.0",
"versionType": "otp"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"prim_file"
],
"packageName": "erlang/otp",
"packageURL": "pkg:github/erlang/otp",
"product": "OTP",
"programFiles": [
"erts/emulator/beam/erl_unicode.c",
"erts/preloaded/src/prim_file.erl"
],
"programRoutines": [
{
"name": "cleanup_norm"
},
{
"name": "do_utf8_to_list_normalize"
},
{
"name": "prim_file_internal_native2name_1"
},
{
"name": "prim_file:internal_native2name/1"
},
{
"name": "prim_file:list_dir/1"
},
{
"name": "prim_file:list_dir_all/1"
},
{
"name": "prim_file:read_link/1"
}
],
"repo": "https://github.com/erlang/otp",
"vendor": "Erlang",
"versions": [
{
"lessThan": "322b04488d9445c7258abce3e7f3bc79aa7c45d8",
"status": "affected",
"version": "9622ab2132e2501ee5769357a914dcc6635e515c",
"versionType": "git"
}
]
}
],
"configurations": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThe node runs on macOS with the default \u003ccode\u003eutf8\u003c/code\u003e file name encoding, and reads a directory listing or a symbolic link target that contains a name an attacker chose. Linux and other platforms do not normalize file names and are not affected.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "The node runs on macOS with the default `utf8` file name encoding, and reads a directory listing or a symbolic link target that contains a name an attacker chose. Linux and other platforms do not normalize file names and are not affected."
}
],
"value": "The node runs on macOS with the default utf8 file name encoding, and reads a directory listing or a symbolic link target that contains a name an attacker chose. Linux and other platforms do not normalize file names and are not affected."
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
"versionEndExcluding": "27.3.4.20",
"versionStartIncluding": "17.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
"versionEndExcluding": "28.5.0.9",
"versionStartIncluding": "28.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
"versionEndExcluding": "29.1.3",
"versionStartIncluding": "29.0",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
],
"operator": "AND"
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "Sam Baud"
},
{
"lang": "en",
"type": "reporter",
"value": "Sam Baud"
},
{
"lang": "en",
"type": "coordinator",
"value": "Jonatan M\u00e4nnchen / EEF"
}
],
"dateAssigned": "2026-11-17T03:12:33.000Z",
"datePublic": "2026-11-24T15:28:18.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eUse 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.\u003c/p\u003e\n\u003cp\u003eOn macOS, the VM decodes file names with \u003ccode\u003edo_utf8_to_list_normalize\u003c/code\u003e in \u003ccode\u003eerts/emulator/beam/erl_unicode.c\u003c/code\u003e. When a name starts with a combining mark, such as U+0301, \u003ccode\u003ecleanup_norm\u003c/code\u003e 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. \u003ccode\u003efile:list_dir/1\u003c/code\u003e, \u003ccode\u003efile:list_dir_all/1\u003c/code\u003e, \u003ccode\u003efile:del_dir_r/1\u003c/code\u003e and \u003ccode\u003efilelib:wildcard/1\u003c/code\u003e on a directory that contains such a name do not return, and the VM does not stop on SIGTERM. \u003ccode\u003efile:read_link/1\u003c/code\u003e on a symbolic link with such a target aborts the VM with \u003ccode\u003esize_object: bad tag\u003c/code\u003e. Only loss of availability was demonstrated.\u003c/p\u003e\n\u003cp\u003eThis issue affects OTP from OTP\u0026nbsp;17.0 before OTP\u0026nbsp;27.3.4.20, OTP\u0026nbsp;28.5.0.9, and OTP\u0026nbsp;29.1.3, corresponding to erts from 6.0 before 15.2.7.15, 16.4.0.8, and 17.1.2.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "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\u00a017.0 before OTP\u00a027.3.4.20, OTP\u00a028.5.0.9, and OTP\u00a029.1.3, corresponding to erts from 6.0 before 15.2.7.15, 16.4.0.8, and 17.1.2."
}
],
"value": "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\u00a017.0 before OTP\u00a027.3.4.20, OTP\u00a028.5.0.9, and OTP\u00a029.1.3, corresponding to erts from 6.0 before 15.2.7.15, 16.4.0.8, and 17.1.2."
}
],
"impacts": [
{
"capecId": "CAPEC-153",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eAn attacker who can create a file, directory or symbolic link target with a chosen name in a location that an Erlang node on macOS reads can make the VM hang or abort. The hung VM does not stop on SIGTERM.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "An attacker who can create a file, directory or symbolic link target with a chosen name in a location that an Erlang node on macOS reads can make the VM hang or abort. The hung VM does not stop on SIGTERM."
}
],
"value": "An attacker who can create a file, directory or symbolic link target with a chosen name in a location that an Erlang node on macOS reads can make the VM hang or abort. The hung VM does not stop on SIGTERM."
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "LOCAL",
"baseScore": 5.7,
"baseSeverity": "MEDIUM",
"privilegesRequired": "LOW",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "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",
"version": "4.0",
"vulnAvailabilityImpact": "HIGH",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "NONE",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-416",
"description": "CWE-416 Use After Free",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-24T15:28:21.735Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"name": "Use-after-free in do_utf8_to_list_normalize: a macOS file name starting with a combining mark hangs file:list_dir/1 and the VM",
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/erlang/otp/security/advisories/GHSA-2pqq-qr2r-wgcc"
},
{
"name": "EEF CNA record for CVE-2026-125658",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-125658.html"
},
{
"name": "OSV record EEF-CVE-2026-125658",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-125658"
},
{
"name": "Erlang/OTP version ordering",
"tags": [
"x_version-scheme"
],
"url": "https://www.erlang.org/doc/system/versions.html#order-of-versions"
},
{
"name": "Introducing commit 9622ab2 in erlang/otp",
"tags": [
"related"
],
"url": "https://github.com/erlang/otp/commit/9622ab2132e2501ee5769357a914dcc6635e515c"
},
{
"name": "Fix commit 322b044 in erlang/otp",
"tags": [
"patch"
],
"url": "https://github.com/erlang/otp/commit/322b04488d9445c7258abce3e7f3bc79aa7c45d8"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "Use after free in erts file name normalization on macOS",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eStart the VM with the \u003ccode\u003e+fnl\u003c/code\u003e flag, for example through \u003ccode\u003eERL_FLAGS\u003c/code\u003e. 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.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "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."
}
],
"value": "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."
}
],
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003col\u003e\n\u003cli\u003eOn macOS, create a directory with one file whose name starts with U+0301: \u003ccode\u003emkdir d \u0026amp;\u0026amp; printf x \u0026gt; \"d/$(printf \u0027\\314\\201b\u0027)\"\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eRun \u003ccode\u003eerl -noshell -eval \u0027io:format(\"~w~n\", [file:list_dir(\"d\")]), halt().\u0027\u003c/code\u003e. The command prints nothing and does not return. The VM does not stop on SIGTERM. The expected output is \u003ccode\u003e{ok,[[769,98]]}\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eRun \u003ccode\u003eerl -noshell -eval \u0027erlang:display(prim_file:internal_native2name(\u0026lt;\u0026lt;204,129,$b\u0026gt;\u0026gt;)), halt().\u0027\u003c/code\u003e. The output starts with \u003ccode\u003e[\u0026lt;cp/header:0x00000000000000c0\u0026gt;\u003c/code\u003e. The expected output is \u003ccode\u003e[769,98]\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eCreate a symbolic link with the same name as its target (\u003ccode\u003eln -s \"$(printf \u0027\\314\\201b\u0027)\" link\u003c/code\u003e) and call \u003ccode\u003efile:read_link(\"link\")\u003c/code\u003e. The VM aborts with \u003ccode\u003esize_object: bad tag for 0x80\u003c/code\u003e.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. On macOS, create a directory with one file whose name starts with U+0301: `mkdir d \u0026\u0026 printf x \u003e \"d/$(printf \u0027\\314\\201b\u0027)\"`.\n2. Run `erl -noshell -eval \u0027io:format(\"~w~n\", [file:list_dir(\"d\")]), halt().\u0027`. The command prints nothing and does not return. The VM does not stop on SIGTERM. The expected output is `{ok,[[769,98]]}`.\n3. Run `erl -noshell -eval \u0027erlang:display(prim_file:internal_native2name(\u003c\u003c204,129,$b\u003e\u003e)), halt().\u0027`. The output starts with `[\u003ccp/header:0x00000000000000c0\u003e`. The expected output is `[769,98]`.\n4. Create a symbolic link with the same name as its target (`ln -s \"$(printf \u0027\\314\\201b\u0027)\" link`) and call `file:read_link(\"link\")`. The VM aborts with `size_object: bad tag for 0x80`."
}
],
"value": "* On macOS, create a directory with one file whose name starts with U+0301: mkdir d \u0026\u0026 printf x \u003e \"d/$(printf \u0027\\314\\201b\u0027)\".\n* Run erl -noshell -eval \u0027io:format(\"~w~n\", [file:list_dir(\"d\")]), halt().\u0027. The command prints nothing and does not return. The VM does not stop on SIGTERM. The expected output is {ok,[[769,98]]}.\n* Run erl -noshell -eval \u0027erlang:display(prim_file:internal_native2name(\u003c\u003c204,129,$b\u003e\u003e)), halt().\u0027. The output starts with [\u003ccp/header:0x00000000000000c0\u003e. The expected output is [769,98].\n* Create a symbolic link with the same name as its target (ln -s \"$(printf \u0027\\314\\201b\u0027)\" link) and call file:read_link(\"link\"). The VM aborts with size_object: bad tag for 0x80."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Decoder entry\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003eprim_file:list_dir/1\u003c/code\u003e and \u003ccode\u003eprim_file:read_link/1\u003c/code\u003e decode each native name with \u003ccode\u003eprim_file:internal_native2name/1\u003c/code\u003e. Its implementation, \u003ccode\u003eprim_file_internal_native2name_1\u003c/code\u003e in \u003ccode\u003eerts/emulator/beam/erl_unicode.c\u003c/code\u003e, calls \u003ccode\u003edo_utf8_to_list_normalize\u003c/code\u003e when the file name encoding is \u003ccode\u003eERL_FILENAME_UTF8_MAC\u003c/code\u003e. \u003ccode\u003eerts_init_sys_common_misc\u003c/code\u003e selects that encoding only on macOS.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Missing heap pointer write-back\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003edo_utf8_to_list_normalize\u003c/code\u003e reserves \u003ccode\u003e2 * num\u003c/code\u003e heap words with \u003ccode\u003eHAlloc\u003c/code\u003e, reads the name from its end, and keeps code points that can compose (U+0300 and above) in \u003ccode\u003esavepoints\u003c/code\u003e. If saved points remain when it reaches the start of the name, it calls \u003ccode\u003ecleanup_norm(\u0026amp;hp, savepoints, numpoints, \u0026amp;ret)\u003c/code\u003e and then \u003ccode\u003eHRelease(p, hp_end, hp)\u003c/code\u003e. \u003ccode\u003ecleanup_norm\u003c/code\u003e copies \u003ccode\u003e*hpp\u003c/code\u003e to a local \u003ccode\u003ehp\u003c/code\u003e, builds one cons cell per saved point, and writes back only \u003ccode\u003e*retp\u003c/code\u003e. The caller\u0027s \u003ccode\u003ehp\u003c/code\u003e still points below the new cells, so \u003ccode\u003eHRelease\u003c/code\u003e returns them to the process heap. \u003ccode\u003ehandle_potential_norm\u003c/code\u003e has the same structure and does write \u003ccode\u003e*hpp = hp\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Effect\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eThe returned list starts in released heap memory. The next allocation of the process overwrites the cells. \u003ccode\u003eerlang:display/1\u003c/code\u003e shows a header word in place of the first code point. When the term is copied, for example in the reply of the file server, \u003ccode\u003esize_object_x\u003c/code\u003e either loops without end on a cyclic term or aborts the VM with \u003ccode\u003esize_object: bad tag\u003c/code\u003e.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. Decoder entry**\n\n`prim_file:list_dir/1` and `prim_file:read_link/1` decode each native name with `prim_file:internal_native2name/1`. Its implementation, `prim_file_internal_native2name_1` in `erts/emulator/beam/erl_unicode.c`, calls `do_utf8_to_list_normalize` when the file name encoding is `ERL_FILENAME_UTF8_MAC`. `erts_init_sys_common_misc` selects that encoding only on macOS.\n\n**2. Missing heap pointer write-back**\n\n`do_utf8_to_list_normalize` reserves `2 * num` heap words with `HAlloc`, reads the name from its end, and keeps code points that can compose (U+0300 and above) in `savepoints`. If saved points remain when it reaches the start of the name, it calls `cleanup_norm(\u0026hp, savepoints, numpoints, \u0026ret)` and then `HRelease(p, hp_end, hp)`. `cleanup_norm` copies `*hpp` to a local `hp`, builds one cons cell per saved point, and writes back only `*retp`. The caller\u0027s `hp` still points below the new cells, so `HRelease` returns them to the process heap. `handle_potential_norm` has the same structure and does write `*hpp = hp`.\n\n**3. Effect**\n\nThe returned list starts in released heap memory. The next allocation of the process overwrites the cells. `erlang:display/1` shows a header word in place of the first code point. When the term is copied, for example in the reply of the file server, `size_object_x` either loops without end on a cyclic term or aborts the VM with `size_object: bad tag`."
}
],
"value": "1. Decoder entry\n\nprim_file:list_dir/1 and prim_file:read_link/1 decode each native name with prim_file:internal_native2name/1. Its implementation, prim_file_internal_native2name_1 in erts/emulator/beam/erl_unicode.c, calls do_utf8_to_list_normalize when the file name encoding is ERL_FILENAME_UTF8_MAC. erts_init_sys_common_misc selects that encoding only on macOS.\n\n2. Missing heap pointer write-back\n\ndo_utf8_to_list_normalize reserves 2 * num heap words with HAlloc, reads the name from its end, and keeps code points that can compose (U+0300 and above) in savepoints. If saved points remain when it reaches the start of the name, it calls cleanup_norm(\u0026hp, savepoints, numpoints, \u0026ret) and then HRelease(p, hp_end, hp). cleanup_norm copies *hpp to a local hp, builds one cons cell per saved point, and writes back only *retp. The caller\u0027s hp still points below the new cells, so HRelease returns them to the process heap. handle_potential_norm has the same structure and does write *hpp = hp.\n\n3. Effect\n\nThe returned list starts in released heap memory. The next allocation of the process overwrites the cells. erlang:display/1 shows a header word in place of the first code point. When the term is copied, for example in the reply of the file server, size_object_x either loops without end on a cyclic term or aborts the VM with size_object: bad tag."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-125658",
"datePublished": "2026-11-24T15:28:21.735Z",
"dateReserved": "2026-11-12T20:11:47.627Z",
"dateUpdated": "2026-11-24T16:28:56.749Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"vulnerability-lookup:meta": {
"nvd": {
"cve": {
"affected": [
{
"affectedData": [
{
"cpes": [
"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"prim_file"
],
"packageName": "erts",
"packageURL": "pkg:otp/erts?repository_url=https:%2F%2Fgithub.com%2Ferlang%2Fotp\u0026vcs_url=git%2Bhttps:%2F%2Fgithub.com%2Ferlang%2Fotp.git",
"product": "OTP",
"programFiles": [
"emulator/beam/erl_unicode.c",
"preloaded/src/prim_file.erl"
],
"programRoutines": [
{
"name": "cleanup_norm"
},
{
"name": "do_utf8_to_list_normalize"
},
{
"name": "prim_file_internal_native2name_1"
},
{
"name": "prim_file:internal_native2name/1"
},
{
"name": "prim_file:list_dir/1"
},
{
"name": "prim_file:list_dir_all/1"
},
{
"name": "prim_file:read_link/1"
}
],
"repo": "https://github.com/erlang/otp",
"vendor": "Erlang",
"versions": [
{
"changes": [
{
"at": "15.2.7.15",
"status": "unaffected"
},
{
"at": "16.4.0.8",
"status": "unaffected"
},
{
"at": "17.1.2",
"status": "unaffected"
}
],
"lessThan": "*",
"status": "affected",
"version": "6.0",
"versionType": "otp"
}
]
},
{
"cpes": [
"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"prim_file"
],
"packageName": "otp",
"packageURL": "pkg:software-id/erlang.org/otp",
"product": "OTP",
"programFiles": [
"erts/emulator/beam/erl_unicode.c",
"erts/preloaded/src/prim_file.erl"
],
"programRoutines": [
{
"name": "cleanup_norm"
},
{
"name": "do_utf8_to_list_normalize"
},
{
"name": "prim_file_internal_native2name_1"
},
{
"name": "prim_file:internal_native2name/1"
},
{
"name": "prim_file:list_dir/1"
},
{
"name": "prim_file:list_dir_all/1"
},
{
"name": "prim_file:read_link/1"
}
],
"vendor": "Erlang",
"versions": [
{
"changes": [
{
"at": "27.3.4.20",
"status": "unaffected"
},
{
"at": "28.5.0.9",
"status": "unaffected"
},
{
"at": "29.1.3",
"status": "unaffected"
}
],
"lessThan": "*",
"status": "affected",
"version": "17.0",
"versionType": "otp"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"prim_file"
],
"packageName": "erlang/otp",
"packageURL": "pkg:github/erlang/otp",
"product": "OTP",
"programFiles": [
"erts/emulator/beam/erl_unicode.c",
"erts/preloaded/src/prim_file.erl"
],
"programRoutines": [
{
"name": "cleanup_norm"
},
{
"name": "do_utf8_to_list_normalize"
},
{
"name": "prim_file_internal_native2name_1"
},
{
"name": "prim_file:internal_native2name/1"
},
{
"name": "prim_file:list_dir/1"
},
{
"name": "prim_file:list_dir_all/1"
},
{
"name": "prim_file:read_link/1"
}
],
"repo": "https://github.com/erlang/otp",
"vendor": "Erlang",
"versions": [
{
"lessThan": "322b04488d9445c7258abce3e7f3bc79aa7c45d8",
"status": "affected",
"version": "9622ab2132e2501ee5769357a914dcc6635e515c",
"versionType": "git"
}
]
}
],
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
}
],
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "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\u00a017.0 before OTP\u00a027.3.4.20, OTP\u00a028.5.0.9, and OTP\u00a029.1.3, corresponding to erts from 6.0 before 15.2.7.15, 16.4.0.8, and 17.1.2."
}
],
"id": "CVE-2026-125658",
"lastModified": "2026-11-24T19:12:16.707",
"metrics": {
"cvssMetricV40": [
{
"cvssData": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "LOCAL",
"availabilityRequirement": "NOT_DEFINED",
"baseScore": 5.7,
"baseSeverity": "MEDIUM",
"confidentialityRequirement": "NOT_DEFINED",
"exploitMaturity": "NOT_DEFINED",
"integrityRequirement": "NOT_DEFINED",
"modifiedAttackComplexity": "NOT_DEFINED",
"modifiedAttackRequirements": "NOT_DEFINED",
"modifiedAttackVector": "NOT_DEFINED",
"modifiedPrivilegesRequired": "NOT_DEFINED",
"modifiedSubAvailabilityImpact": "NOT_DEFINED",
"modifiedSubConfidentialityImpact": "NOT_DEFINED",
"modifiedSubIntegrityImpact": "NOT_DEFINED",
"modifiedUserInteraction": "NOT_DEFINED",
"modifiedVulnAvailabilityImpact": "NOT_DEFINED",
"modifiedVulnConfidentialityImpact": "NOT_DEFINED",
"modifiedVulnIntegrityImpact": "NOT_DEFINED",
"privilegesRequired": "LOW",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
"version": "4.0",
"vulnAvailabilityImpact": "HIGH",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "NONE",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"type": "Secondary"
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"id": "CVE-2026-125658",
"options": [
{
"exploitation": "poc"
},
{
"automatable": "no"
},
{
"technicalImpact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-24T16:28:46.739978Z",
"version": "2.0.3"
}
}
]
},
"published": "2026-11-24T16:17:53.807",
"references": [
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"url": "https://cna.erlef.org/cves/CVE-2026-125658.html"
},
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"url": "https://github.com/erlang/otp/commit/322b04488d9445c7258abce3e7f3bc79aa7c45d8"
},
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"url": "https://github.com/erlang/otp/commit/9622ab2132e2501ee5769357a914dcc6635e515c"
},
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"url": "https://github.com/erlang/otp/security/advisories/GHSA-2pqq-qr2r-wgcc"
},
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-125658"
},
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"url": "https://www.erlang.org/doc/system/versions.html#order-of-versions"
},
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"url": "https://cna.erlef.org/cves/CVE-2026-125658.html"
},
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-125658"
}
],
"sourceIdentifier": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"vulnStatus": "Awaiting Analysis",
"weaknesses": [
{
"description": [
{
"lang": "en",
"value": "CWE-416"
}
],
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"type": "Secondary"
}
]
}
},
"redhat_vex": {
"aggregate_severity": "Moderate",
"current_release_date": "2026-11-25T03:07:19+00:00",
"cve": "CVE-2026-125658",
"id": "CVE-2026-125658",
"initial_release_date": "2026-11-24T15:28:21.735000+00:00",
"product_status:known_affected": "1",
"source": "Red Hat CSAF VEX",
"status": "final",
"title": "erlang: erlang: Denial of Service via crafted Unicode file names on macOS",
"url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-125658.json",
"version": "3"
}
}
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…
The MITRE ATT&CK techniques below are AI-generated suggestions, inferred from the description of the
vulnerability by the CIRCL/vulnerability-attack-technique-classification-roberta-base
model, served locally by ML-Gateway.
They have not been verified by an analyst and are provided for guidance only.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Loading…
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.
Loading…