AZL-116096: CVE-2026-115747 affecting package erlang 26.2.5.21-8
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 xmerlsaxparser.
In erts/emulator/beam/jit/arm/instrcommon.cpp, BeamModuleAssembler::emitisgelt wraps its generated code in preservecache and marks only TMP1 as clobbered. When the compared value is not a small integer, the generated code calls the shared fragment isgeltshared, 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 � takes this path in the ?ischar 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.
This 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 27.3.4.20 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 28.5.0.9 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 29.1.3
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Only Erlang/OTP deployments running the JIT on AArch64 are affected. x86-64 JIT deployments and interpreter builds do not contain the faulty code.
What input is required to trigger the crash?
An attacker needs to supply input that reaches a chained integer range guard with a value that is not a small integer. One documented path is an oversized numeric character reference, such as �, processed by xmerl_sax_parser.
What is the practical impact of successful exploitation?
The stale register-cache state can cause later instructions to treat a clobbered register as an Erlang term, leading the BEAM virtual machine to terminate with a segmentation fault.
Which upstream OTP and erts versions are affected?
Affected versions are OTP 27.0 through before 27.3.4.20, OTP 28 through before 28.5.0.9, and OTP 29 through before 29.1.3. The corresponding affected erts ranges are 15.0 through before 15.2.7.15, 16.4.0 through before 16.4.0.8, and 17.0 through before 17.1.2.