Assertion failure: isLowered()
A crafted JavaScript input triggers an assertion failure in the IonMonkey JIT compiler's lowering phase, specifically when handling a typed array element load. The reporter notes it may not be security-relevant and suggests closing if so.
- Fixed in 7 days
- Paid in 14 days
- Disclosed after 7 days
Created attachment 9422430
poc.js
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Steps to reproduce:
build with
'''sh
ac_add_options --enable-project=js
ac_add_options --enable-debug
ac_add_options --disable-optimize
'''
and run with --ion-warmup-threshold=100 --fuzzing-safe --no-threads
working on commit 5f641898e12dafdfb7d54a93f4f3164d2c1642b2
Actual results:
I notice that there are some related assertion failure in several years ago. Feel free to close it if this is not a security releated.
Assertion failure: isLowered(), at js/src/jit/MIR.h:850
bt
'''sh
#0 0x0000555558dfd064 in js::jit::MDefinition::virtualRegister (this=0x7ffff67ea428) at /root/gecko-dev/js/src/jit/MIR.h:850
#1 0x0000555558e02ae7 in js::jit::LIRGeneratorShared::use (this=0x7fffffff87a0, mir=0x7ffff67ea428, policy=...) at /root/gecko-dev/js/src/jit/shared/Lowering-shared-inl.h:34
#2 0x0000555558e02c6e in js::jit::LIRGeneratorShared::useKeepalive (this=0x7fffffff87a0, mir=0x7ffff67ea428) at /root/gecko-dev/js/src/jit/shared/Lowering-shared-inl.h:563
#3 0x0000555558dfd522 in js::jit::LIRGeneratorShared::useKeepaliveOrConstant (this=0x7fffffff87a0, mir=0x7ffff67ea428) at /root/gecko-dev/js/src/jit/shared/Lowering-shared-inl.h:570
#4 0x0000555558deff26 in js::jit::LIRGeneratorShared::buildSnapshot (this=0x7fffffff87a0, rp=0x7ffff67ea4c0, kind=js::jit::BailoutKind::DuringVMCall) at /root/gecko-dev/js/src/jit/shared/Lowering-shared.cpp:269
#5 0x0000555558df0257 in js::jit::LIRGeneratorShared::assignSafepoint (this=0x7fffffff87a0, ins=0x7ffff6005860, mir=0x7ffff67eade0, kind=js::jit::BailoutKind::DuringVMCall) at /root/gecko-dev/js/src/jit/shared/Lowering-shared.cpp:300
#6 0x00005555591c26ef in js::jit::LIRGenerator::visitLoadTypedArrayElementHole (this=0x7fffffff87a0, ins=0x7ffff67eade0) at /root/gecko-dev/js/src/jit/Lowering.cpp:4767
#7 0x00005555591db0c0 in js::jit::LIRGenerator::visitInstructionDispatch (this=0x7fffffff87a0, ins=0x7ffff67eade0) at /root/gecko-dev/js/src/jit/Lowering.cpp:7590
#8 0x00005555591dede7 in js::jit::LIRGenerator::visitInstruction (this=0x7fffffff87a0, ins=0x7ffff67eade0) at /root/gecko-dev/js/src/jit/Lowering.cpp:7613
#9 0x00005555591df57b in js::jit::LIRGenerator::visitBlock (this=0x7fffffff87a0, block=0x7ffff67e8a58) at /root/gecko-dev/js/src/jit/Lowering.cpp:7683
#10 0x00005555591dfa0d in js::jit::LIRGenerator::generate (this=0x7fffffff87a0) at /root/gecko-dev/js/src/jit/Lowering.cpp:7757
#11 0x00005555590ef6f5 in js::jit::GenerateLIR (mir=0x7ffff67ce180) at /root/gecko-dev/js/src/jit/Ion.cpp:1546
#12 0x00005555590efc19 in js::jit::CompileBackEnd (mir=0x7ffff67ce180, snapshot=0x7ffff67cfc18) at /root/gecko-dev/js/src/jit/Ion.cpp:1635
#13 0x0000555559117289 in js::jit::IonCompile (cx=0x7ffff6936200, script=..., osrPc=0x7ffff69fa1f9 "\230D") at /root/gecko-dev/js/src/jit/Ion.cpp:1762
#14 0x00005555590f0b58 in js::jit::Compile (cx=0x7ffff6936200, script=..., osrFrame=0x7fffffff9fc8, osrPc=0x7ffff69fa1f9 "\230D") at /root/gecko-dev/js/src/jit/Ion.cpp:1916
#15 0x0000555559117aa7 in BaselineCanEnterAtBranch (cx=0x7ffff6936200, script=..., osrFrame=0x7fffffff9fc8, pc=0x7ffff69fa1f9 "\230D") at /root/gecko-dev/js/src/jit/Ion.cpp:2117
#16 0x00005555590f0ff5 in IonCompileScriptForBaseline (cx=0x7ffff6936200, frame=0x7fffffff9fc8, pc=0x7ffff69fa1f9 "\230D") at /root/gecko-dev/js/src/jit/Ion.cpp:2169
#17 0x00005555590f1392 in js::jit::IonCompileScriptForBaselineOSR (cx=0x7ffff6936200, frame=0x7fffffff9fc8, frameSize=0x70, pc=0x7ffff69fa1f9 "\230D", infoPtr=0x7fffffff9f60) at /root/gecko-dev/js/src/jit/Ion.cpp:2281
'''
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
The text does not claim any security impact; it only shows a debug assertion failure, and the reporter explicitly says it may not be security-related.
What the attacker needed
Debug build of the JS engine; specific JIT flags; crafted JavaScript input
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
This is a crash report for a JavaScript engine bug. The engine's optimising compiler (IonMonkey) hit an internal check that failed while compiling a script, causing a debug build to abort. The reporter is unsure whether it is a security issue.
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.