{"containers":{"cna":{"affected":[{"cpes":["cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["erts"],"packageName":"erts","packageURL":"pkg:otp/erts?repository_url=https:%2F%2Fgithub.com%2Ferlang%2Fotp&vcs_url=git%2Bhttps:%2F%2Fgithub.com%2Ferlang%2Fotp.git","product":"OTP","programFiles":["emulator/beam/jit/arm/instr_common.cpp"],"programRoutines":[{"name":"BeamModuleAssembler::emit_is_ge_lt"},{"name":"BeamGlobalAssembler::emit_is_ge_lt_shared"}],"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":"15.0","versionType":"otp"}]},{"cpes":["cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["erts"],"packageName":"otp","packageURL":"pkg:software-id/erlang.org/otp","product":"OTP","programFiles":["erts/emulator/beam/jit/arm/instr_common.cpp"],"programRoutines":[{"name":"BeamModuleAssembler::emit_is_ge_lt"},{"name":"BeamGlobalAssembler::emit_is_ge_lt_shared"}],"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":"27.0","versionType":"otp"}]},{"collectionURL":"https://github.com","cpes":["cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["erts"],"packageName":"erlang/otp","packageURL":"pkg:github/erlang/otp","product":"OTP","programFiles":["erts/emulator/beam/jit/arm/instr_common.cpp"],"programRoutines":[{"name":"BeamModuleAssembler::emit_is_ge_lt"},{"name":"BeamGlobalAssembler::emit_is_ge_lt_shared"}],"repo":"https://github.com/erlang/otp","vendor":"Erlang","versions":[{"changes":[{"at":"043d119950d8de1975a8a507e424d87cf765fbab","status":"unaffected"},{"at":"62c26d132760569a2ac098ce144de2aed4daa548","status":"unaffected"},{"at":"841017c3c85cba30181e7e344e5b16dc0bc25c3b","status":"unaffected"}],"lessThan":"*","status":"affected","version":"06d402a75078150963b75518ce271582bbb94897","versionType":"git"}]}],"configurations":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Only AArch64 (ARM64) runtimes that execute the JIT are affected; <code>erlang:system_info(emu_flavor)</code> returns <code>jit</code> on such a node. The x86-64 JIT, interpreter builds (<code>emu</code> flavor) and 32-bit platforms do not run the affected code. The demonstrated path requires an application to pass attacker-controlled XML to <code>xmerl_sax_parser</code>, but other Erlang code that compiles to the same chained range guard over a non-small integer can reach the same defect.</p>"},{"base64":false,"type":"text/markdown","value":"Only AArch64 (ARM64) runtimes that execute the JIT are affected; `erlang:system_info(emu_flavor)` returns `jit` on such a node. The x86-64 JIT, interpreter builds (`emu` flavor) and 32-bit platforms do not run the affected code. The demonstrated path requires an application to pass attacker-controlled XML to `xmerl_sax_parser`, but other Erlang code that compiles to the same chained range guard over a non-small integer can reach the same defect."}],"value":"Only AArch64 (ARM64) runtimes that execute the JIT are affected; erlang:system_info(emu_flavor) returns jit on such a node. The x86-64 JIT, interpreter builds (emu flavor) and 32-bit platforms do not run the affected code. The demonstrated path requires an application to pass attacker-controlled XML to xmerl_sax_parser, but other Erlang code that compiles to the same chained range guard over a non-small integer can reach the same defect."}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*","versionEndExcluding":"27.3.4.20","versionStartIncluding":"27.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":"Felix Jankowski / Jankowski Engineering GmbH"},{"lang":"en","type":"finder","value":"IlYoung"},{"lang":"en","type":"reporter","value":"Felix Jankowski / Jankowski Engineering GmbH"},{"lang":"en","type":"reporter","value":"IlYoung"},{"lang":"en","type":"coordinator","value":"Jonatan Männchen / EEF"},{"lang":"en","type":"remediation developer","value":"Felix Jankowski / Jankowski Engineering GmbH"},{"lang":"en","type":"remediation reviewer","value":"Josué Olmos"}],"dateAssigned":"2026-10-26T17:14:29.000Z","datePublic":"2026-11-24T15:29:05.000Z","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Improper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in the AArch64 JIT in Erlang OTP erts allows an attacker to crash the BEAM virtual machine via input that reaches a chained integer range guard, such as an oversized numeric character reference parsed by <code>xmerl_sax_parser</code>.</p>\n<p>In <code>erts/emulator/beam/jit/arm/instr_common.cpp</code>, <code>BeamModuleAssembler::emit_is_ge_lt</code> wraps its generated code in <code>preserve_cache</code> and marks only <code>TMP1</code> as clobbered. When the compared value is not a small integer, the generated code calls the shared fragment <code>is_ge_lt_shared</code>, which also overwrites <code>ARG1</code> and other caller-saved registers. The register cache keeps stale entries, so later instructions may use a clobbered register as an Erlang term and the emulator dies with a segmentation fault. A reference such as <code>&amp;#576460752303423488;</code> takes this path in the <code>?is_char</code> guard of the SAX parser. Only AArch64 builds that run the JIT are affected. The x86-64 JIT and interpreter builds do not contain the faulty code.</p>\n<p>This issue affects OTP from OTP&nbsp;27.0 before OTP&nbsp;27.3.4.20, OTP&nbsp;28.5.0.9, and OTP&nbsp;29.1.3, corresponding to erts from 15.0 before 15.2.7.15, 16.4.0.8, and 17.1.2.</p>"},{"base64":false,"type":"text/markdown","value":"Improper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in the AArch64 JIT in Erlang OTP erts allows an attacker to crash the BEAM virtual machine via input that reaches a chained integer range guard, such as an oversized numeric character reference parsed by `xmerl_sax_parser`.\n\nIn `erts/emulator/beam/jit/arm/instr_common.cpp`, `BeamModuleAssembler::emit_is_ge_lt` wraps its generated code in `preserve_cache` and marks only `TMP1` as clobbered. When the compared value is not a small integer, the generated code calls the shared fragment `is_ge_lt_shared`, which also overwrites `ARG1` and other caller-saved registers. The register cache keeps stale entries, so later instructions may use a clobbered register as an Erlang term and the emulator dies with a segmentation fault. A reference such as `&#576460752303423488;` takes this path in the `?is_char` guard of the SAX parser. Only AArch64 builds that run the JIT are affected. The x86-64 JIT and interpreter builds do not contain the faulty code.\n\nThis issue affects OTP from OTP 27.0 before OTP 27.3.4.20, OTP 28.5.0.9, and OTP 29.1.3, corresponding to erts from 15.0 before 15.2.7.15, 16.4.0.8, and 17.1.2."}],"value":"Improper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in the AArch64 JIT in Erlang OTP erts allows an attacker to crash the BEAM virtual machine via input that reaches a chained integer range guard, such as an oversized numeric character reference parsed by xmerl_sax_parser.\n\nIn erts/emulator/beam/jit/arm/instr_common.cpp, BeamModuleAssembler::emit_is_ge_lt wraps its generated code in preserve_cache and marks only TMP1 as clobbered. When the compared value is not a small integer, the generated code calls the shared fragment is_ge_lt_shared, which also overwrites ARG1 and other caller-saved registers. The register cache keeps stale entries, so later instructions may use a clobbered register as an Erlang term and the emulator dies with a segmentation fault. A reference such as &#576460752303423488; takes this path in the ?is_char guard of the SAX parser. Only AArch64 builds that run the JIT are affected. The x86-64 JIT and interpreter builds do not contain the faulty code.\n\nThis issue affects OTP from OTP 27.0 before OTP 27.3.4.20, OTP 28.5.0.9, and OTP 29.1.3, corresponding to erts from 15.0 before 15.2.7.15, 16.4.0.8, and 17.1.2."}],"impacts":[{"capecId":"CAPEC-129","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>An attacker who can get an affected AArch64 node to parse crafted XML, or to run other code that compiles to the same comparison sequence over a non-small integer, terminates the whole BEAM VM, including every unrelated application on it. Supervision cannot contain a native crash. Code execution, information disclosure and data modification have not been demonstrated.</p>"},{"base64":false,"type":"text/markdown","value":"An attacker who can get an affected AArch64 node to parse crafted XML, or to run other code that compiles to the same comparison sequence over a non-small integer, terminates the whole BEAM VM, including every unrelated application on it. Supervision cannot contain a native crash. Code execution, information disclosure and data modification have not been demonstrated."}],"value":"An attacker who can get an affected AArch64 node to parse crafted XML, or to run other code that compiles to the same comparison sequence over a non-small integer, terminates the whole BEAM VM, including every unrelated application on it. Supervision cannot contain a native crash. Code execution, information disclosure and data modification have not been demonstrated."}]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"LOCAL","baseScore":5.9,"baseSeverity":"MEDIUM","privilegesRequired":"NONE","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:N/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-119","description":"CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-11-24T15:29:06.928Z","orgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","shortName":"EEF"},"references":[{"name":"AArch64 JIT register-cache bug allows VM denial of service via XML","tags":["vendor-advisory","related"],"url":"https://github.com/erlang/otp/security/advisories/GHSA-x527-4ww5-wwr5"},{"name":"EEF CNA record for CVE-2026-115747","tags":["related"],"url":"https://cna.erlef.org/cves/CVE-2026-115747.html"},{"name":"OSV record EEF-CVE-2026-115747","tags":["related"],"url":"https://osv.dev/vulnerability/EEF-CVE-2026-115747"},{"name":"Erlang/OTP version ordering","tags":["x_version-scheme"],"url":"https://www.erlang.org/doc/system/versions.html#order-of-versions"},{"name":"Introducing commit 06d402a in erlang/otp","tags":["related"],"url":"https://github.com/erlang/otp/commit/06d402a75078150963b75518ce271582bbb94897"},{"name":"Fix commit 043d119 in erlang/otp","tags":["patch"],"url":"https://github.com/erlang/otp/commit/043d119950d8de1975a8a507e424d87cf765fbab"},{"name":"Fix commit 62c26d1 in erlang/otp","tags":["patch"],"url":"https://github.com/erlang/otp/commit/62c26d132760569a2ac098ce144de2aed4daa548"},{"name":"Fix commit 841017c in erlang/otp","tags":["patch"],"url":"https://github.com/erlang/otp/commit/841017c3c85cba30181e7e344e5b16dc0bc25c3b"}],"source":{"discovery":"EXTERNAL"},"title":"AArch64 JIT register-cache bug allows VM denial of service via XML","workarounds":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>On AArch64 hosts, run the emulator without the JIT: start it with <code>erl -emu_flavor emu</code> when the interpreter flavor is installed, or build OTP with <code>--disable-jit</code>. The interpreter does not execute the affected generated code.</p>"},{"base64":false,"type":"text/markdown","value":"On AArch64 hosts, run the emulator without the JIT: start it with `erl -emu_flavor emu` when the interpreter flavor is installed, or build OTP with `--disable-jit`. The interpreter does not execute the affected generated code."}],"value":"On AArch64 hosts, run the emulator without the JIT: start it with erl -emu_flavor emu when the interpreter flavor is installed, or build OTP with --disable-jit. The interpreter does not execute the affected generated code."}],"x_proofOfConcept":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<ol>\n<li>Run an AArch64 build of OTP 27 or later with the JIT enabled; <code>erlang:system_info(emu_flavor)</code> returns <code>jit</code>.</li>\n<li>Parse an XML document that contains a numeric character reference too large for a small integer, for example <code>&lt;a&gt;&amp;#576460752303423488;&lt;/a&gt;</code>, with <code>xmerl_sax_parser:stream/2</code> or <code>xmerl_sax_parser:file/2</code>. No entity expansion or external resource is needed.</li>\n<li>The emulator exits with SIGSEGV (status 139) instead of returning <code>{fatal_error, _, \"Not a legal character: #576460752303423488\", _, _}</code>.</li>\n</ol>"},{"base64":false,"type":"text/markdown","value":"1. Run an AArch64 build of OTP 27 or later with the JIT enabled; `erlang:system_info(emu_flavor)` returns `jit`.\n2. Parse an XML document that contains a numeric character reference too large for a small integer, for example `<a>&#576460752303423488;</a>`, with `xmerl_sax_parser:stream/2` or `xmerl_sax_parser:file/2`. No entity expansion or external resource is needed.\n3. The emulator exits with SIGSEGV (status 139) instead of returning `{fatal_error, _, \"Not a legal character: #576460752303423488\", _, _}`."}],"value":"* Run an AArch64 build of OTP 27 or later with the JIT enabled; erlang:system_info(emu_flavor) returns jit.\n* Parse an XML document that contains a numeric character reference too large for a small integer, for example <a>&#576460752303423488;</a>, with xmerl_sax_parser:stream/2 or xmerl_sax_parser:file/2. No entity expansion or external resource is needed.\n* The emulator exits with SIGSEGV (status 139) instead of returning {fatal_error, _, \"Not a legal character: #576460752303423488\", _, _}."}],"x_technicalAnalysis":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p><strong>1. Code generation.</strong> <code>BeamModuleAssembler::emit_is_ge_lt</code> in <code>erts/emulator/beam/jit/arm/instr_common.cpp</code> emits the <code>is_ge_lt</code> instruction, which the compiler produces for a chained guard of the form <code>A =&lt; X, X &lt; B</code>. The AArch64 emitter wraps the whole sequence in <code>preserve_cache</code> and declares <code>TMP1</code> as the only clobbered register, so the register cache keeps its entries across the instruction.</p>\n<p><strong>2. Generic path.</strong> When the operand is not a small integer, the generated code loads it into <code>ARG1</code> and calls the global fragment <code>BeamGlobalAssembler::emit_is_ge_lt_shared</code>. The fragment performs a generic term comparison and overwrites <code>ARG1</code> and other caller-saved registers.</p>\n<p><strong>3. Stale cache.</strong> The cache still records <code>ARG1</code> as holding a copy of a BEAM Y register. A later instruction that needs that Y register reuses <code>ARG1</code> instead of reloading it from the stack, and so operates on whatever the fragment left behind.</p>\n<p><strong>4. Crash.</strong> The leftover value is treated as a tagged Erlang term. When it is dereferenced as a boxed term, the emulator reads an invalid address and dies with SIGSEGV. The whole node terminates without a crash dump.</p>\n<p><strong>5. Trigger.</strong> The <code>?is_char</code> guard in <code>lib/xmerl/src/xmerl_sax_parser_base.erlsrc</code> compares a decoded numeric character reference against several ranges in sequence. A value that does not fit a small integer on a 64-bit runtime, for example <code>&amp;#576460752303423488;</code> (2^59), takes the generic path. The expected outcome is a <code>fatal_error</code> naming an illegal character.</p>\n<p>The fix removes the <code>preserve_cache</code> wrapper so the cache is invalidated after the instruction, matching <code>emit_is_in_range</code>. The x86-64 emitter never preserved the cache here.</p>"},{"base64":false,"type":"text/markdown","value":"**1. Code generation.** `BeamModuleAssembler::emit_is_ge_lt` in `erts/emulator/beam/jit/arm/instr_common.cpp` emits the `is_ge_lt` instruction, which the compiler produces for a chained guard of the form `A =< X, X < B`. The AArch64 emitter wraps the whole sequence in `preserve_cache` and declares `TMP1` as the only clobbered register, so the register cache keeps its entries across the instruction.\n\n**2. Generic path.** When the operand is not a small integer, the generated code loads it into `ARG1` and calls the global fragment `BeamGlobalAssembler::emit_is_ge_lt_shared`. The fragment performs a generic term comparison and overwrites `ARG1` and other caller-saved registers.\n\n**3. Stale cache.** The cache still records `ARG1` as holding a copy of a BEAM Y register. A later instruction that needs that Y register reuses `ARG1` instead of reloading it from the stack, and so operates on whatever the fragment left behind.\n\n**4. Crash.** The leftover value is treated as a tagged Erlang term. When it is dereferenced as a boxed term, the emulator reads an invalid address and dies with SIGSEGV. The whole node terminates without a crash dump.\n\n**5. Trigger.** The `?is_char` guard in `lib/xmerl/src/xmerl_sax_parser_base.erlsrc` compares a decoded numeric character reference against several ranges in sequence. A value that does not fit a small integer on a 64-bit runtime, for example `&#576460752303423488;` (2^59), takes the generic path. The expected outcome is a `fatal_error` naming an illegal character.\n\nThe fix removes the `preserve_cache` wrapper so the cache is invalidated after the instruction, matching `emit_is_in_range`. The x86-64 emitter never preserved the cache here."}],"value":"1. Code generation. BeamModuleAssembler::emit_is_ge_lt in erts/emulator/beam/jit/arm/instr_common.cpp emits the is_ge_lt instruction, which the compiler produces for a chained guard of the form A =< X, X < B. The AArch64 emitter wraps the whole sequence in preserve_cache and declares TMP1 as the only clobbered register, so the register cache keeps its entries across the instruction.\n\n2. Generic path. When the operand is not a small integer, the generated code loads it into ARG1 and calls the global fragment BeamGlobalAssembler::emit_is_ge_lt_shared. The fragment performs a generic term comparison and overwrites ARG1 and other caller-saved registers.\n\n3. Stale cache. The cache still records ARG1 as holding a copy of a BEAM Y register. A later instruction that needs that Y register reuses ARG1 instead of reloading it from the stack, and so operates on whatever the fragment left behind.\n\n4. Crash. The leftover value is treated as a tagged Erlang term. When it is dereferenced as a boxed term, the emulator reads an invalid address and dies with SIGSEGV. The whole node terminates without a crash dump.\n\n5. Trigger. The ?is_char guard in lib/xmerl/src/xmerl_sax_parser_base.erlsrc compares a decoded numeric character reference against several ranges in sequence. A value that does not fit a small integer on a 64-bit runtime, for example &#576460752303423488; (2^59), takes the generic path. The expected outcome is a fatal_error naming an illegal character.\n\nThe fix removes the preserve_cache wrapper so the cache is invalidated after the instruction, matching emit_is_in_range. The x86-64 emitter never preserved the cache here."}]}},"cveMetadata":{"assignerOrgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","assignerShortName":"EEF","cveId":"CVE-2026-115747","datePublished":"2026-11-24T15:29:06.928Z","dateReserved":"2026-10-26T10:45:02.618Z","dateUpdated":"2026-11-24T15:29:06.928Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"}