Assertion failure: IsInt21(imm21), at jit/arm64/vixl/Assembler-vixl.h:4283
Originally disclosed on Mozilla
- Fixed in 15 days
- Paid in 21 days
- Disclosed after 15 days
Created attachment 9494136
Testcase
See attachment.
'''
(gdb) bt
#0 0x0000555558285a7d in MOZ_CrashSequence (aAddress=0x0, aLine=4283)
at /home/msf1/shell-cache/js-dbg-64-armsim64-linux-x86_64-761c3d69bb90/objdir-js/dist/include/mozilla/Assertions.h:248
#1 vixl::Assembler::ImmPCRelAddress (imm21=-1048584) at /home/msf1/trees/mozilla-central/js/src/jit/arm64/vixl/Assembler-vixl.h:4283
#2 vixl::Assembler::adr (this=this@entry=0x7fffffff8948, rd=..., imm21=-1048584, doc=...)
at /home/msf1/trees/mozilla-central/js/src/jit/arm64/vixl/MozAssembler-vixl.cpp:336
#3 0x0000555558285c3f in vixl::Assembler::adr (this=0x7fffffff8948, rd=..., label=0x7fffffff78f4)
at /home/msf1/trees/mozilla-central/js/src/jit/arm64/vixl/MozAssembler-vixl.cpp:349
#4 0x0000555558229ada in vixl::MacroAssembler::Adr (this=0x7fffffff8948, rd=..., label=0x7fffffff78f4)
at /home/msf1/trees/mozilla-central/js/src/jit/arm64/vixl/MacroAssembler-vixl.h:518
#5 0x00005555586dc710 in js::wasm::BaseCompiler::tableSwitch (this=this@entry=0x7fffffff7bd0, theTable=theTable@entry=0x7fffffff78f4,
switchValue=switchValue@entry=..., dispatchCode=dispatchCode@entry=0x7fffffff78dc)
at /home/msf1/trees/mozilla-central/js/src/wasm/WasmBaselineCompile.cpp:382
/snip
'''
This seems to have occurred since m-c rev c1acdcb0c63c, gh rev 564a36e5a3aebd0c0d0645744cdc8d074c82b1c0 (late-Feb 2024, Firefox 125-approx).
Run with `--fuzzing-safe --ion-offthread-compile=off --ion-eager`, compile with `AR=ar sh ../configure --enable-simulator=arm64 --enable-debug --enable-debug-symbols --with-ccache --enable-nspr-build --enable-ctypes --enable-gczeal --enable-rust-simd --disable-tests`, tested on m-c rev 761c3d69bb90.
Setting needinfo? from our wasm gurus, Ryan and Yury, as a start.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is known
A high-severity doS bug in JavaScript: WebAssembly. Mozilla made it public on 26 June 2025 as CVE-2025-8028.
About DoS
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.