Skip to content
DoS Disclosed report Advanced

Assertion `numClip < nump + 2' failed.

A fuzzing tool triggered an assertion failure in Firefox's WebGL clipping code, causing the graphics process to shut down abnormally. The reporter suspects it may be security-relevant but does not demonstrate memory corruption or attacker impact.

Brian Carpenter Follow

Originally disclosed on Mozilla

  • Fixed in 20 days
  • Paid in 44 days
  • Disclosed after 20 days
Text
Whilst fuzzing Firefox ASan Nightly (Build ID 20201122093438) with [rucss](https://github.com/roddux/rucss), we discovered the following assertion failure. Marking as a security bug until someone smarter than us says otherwise because of our recent WebGL findings. 

For some reason, ASAN isn't catching this and generating a crash dump.  This is all I have from the console, but it's 100% repeatable:

'''
firefox: src/gl.cc:3732: int clip_side(int, Point3D *, glsl::Interpolants *, Point3D *, glsl::Interpolants *) [AXIS = glsl::Y]: Assertion `numClip < nump + 2' failed.
Exiting due to channel error.
Crash Annotation GraphicsCriticalError: |[C0][GFX1-]: Receive IPC close with reason=AbnormalShutdown (t=68.5117) Exiting due to channel error.
Crash Annotation GraphicsCriticalError: |[C0][GFX1-]: Receive IPC close with reason=AbnormalShutdown (t=69.5414) Crash Annotation GraphicsCriticalError: |[C0][GFX1-]: Receive IPC close with reason=AbnormalShutdown (t=68.6727) Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
'''

STR:
1) New Nightly Profile
2) enable the following:
    pdfjs.enableWebGL, webgl.all-angle-options, webgl.allow-fb-invalidation, webgl.allow-immediate-queries, webgl.angle.force-warp, webgl.enable-ahardwarebuffer, webgl.enable-privileged-extensions, webgl.force-enabled, webgl.out-of-process, webgl.out-of-process.force
3) `git clone https://github.com/roddux/rucss && rucss/src/webhandler.py -p 8080`
4) Launch Nightly and point it at `localhost:8080`
5) Grab a coffee (probably will crash before you get back to your seat)

The original report as published on Mozilla's Bugzilla, by Brian Carpenter. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

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 graphics process could be made to shut down abnormally, but the report does not show memory corruption or any effect beyond that crash.

What the attacker needed

Firefox ASan Nightly build; Non-default WebGL prefs enabled; Local fuzzing server running

How it was found

  1. Create a fresh Nightly profile.
  2. Enable the listed WebGL and out-of-process graphics preferences.
  3. Run the fuzzing web handler locally on a port.
  4. Point the browser at the local handler.
  5. Wait for the crash to occur.

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.

An assertion is a check inside a program that stops it when something unexpected happens. Here a graphics routine in Firefox hit such a check while processing WebGL content, and the graphics process closed. The report does not show that an attacker could do anything beyond crashing that process.

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.

More by Brian Carpenter

View all

9 more disclosed reports, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.