Null pointer dereference regression in parse.y
A regression from a specific commit makes the mruby parser crash on a minimal input, which could potentially be a denial of service.
- Triaged in 3 days
- Fixed in 12 days
- Paid in 21 days
- Disclosed after 22 days
Hi,
Just pulled the latest mruby code, and found that some of my fuzzing test cases now crash. Bisected it to commit 227daa881137d5251e03eea0883b9b574a1f064e. Reverting this change no longer causes a crash.
The minimised file causing the crash is:
f ()
Also affects mruby-engine.
Cheers,
Hugh
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
Root cause
Likely a regression in the parser introduced by the referenced commit, causing a crash.
Impact
Causes the mruby interpreter to crash when parsing the minimal input.
What the attacker needed
Ability to supply input to mruby parser
The fix
Reverting the commit fixes the crash, but the underlying issue should be fixed properly.
How it was found
- Pull the latest mruby code.
- Run the minimised input file containing 'f ()'.
- Observe the crash.
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.
A small code change made the parser crash on a very simple input, which could let someone cause a crash by sending that input.
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.