Skip to content
Memory corruption Disclosed report Advanced CVE-2024-11691

[#1, Incomplete patch and variant vulnerabilities of 1914707] Parent Process (Unsandboxed) Out-Of-Bounds Write in WebGL CreateSampler

An out-of-bounds write exists in Firefox's WebGL CreateSampler handling, and the reporter states it is a variant of an earlier bug whose patch was incomplete. Opening a crafted HTML file could corrupt the GPU process and potentially allow a sandbox escape.

D4ni31 Follow

Originally disclosed on Mozilla

  • Fixed in 35 days
  • Paid in 40 days
  • Disclosed after 35 days

Created attachment 9430474 0-Day_firefox-MozFramebuffer-OOB-Write.html

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36

Steps to reproduce:

High-level overview of the vulnerability and the possible effect of using it

  • A Out-Of-Bounds Write Vulnerability exists in the WebGL CreateSampler.

  • An attacker must open a arbitrary generated HTML file to exploit this vulnerability.

  • Exploiting this vulnerability can lead to a privileged process (GPU Process), enabling a sandbox escape.

    • like : CVE-2023-6856 => Heap-Buffer-Overflow Sandbox Escape in Mozilla Firefox WebGL

Exact product that was found to be vulnerable including complete version information

  • OS : macOS Beta 15.1 (24B5070a) => Apple Macbook M1 Pro

  • Product : Mozilla Firefox 131.0.2 (release) and 133.0a1 (2024-10-11)

  • Important : Since this vulnerability is OS dependent, please test it on the M1 real machine using Apple's ARM silicon. (You may not be able to do this in a VM. The GPU configuration inside the VM is different from that of the real machine.)

Details

  • This vulnerability is a variant of 1914707 and is evidence that the vulnerability in 1914707 has not been fully patched.

  • Tested on 133.0a1 (2024-10-11) with patch 1914707 applied.

  • Other details are the same as 1914707.

Proof-of-Concept

  • Open poc.html in the attached file with Mozilla Firefox. (Apple M1 Pro Real-Machine)
  • Now, if the Browser Process is corrupted, it is capable of sandbox escape.

Deadline

This bug is subject to a 90-day disclosure deadline. If a fix for this issue is made available to users before the end of the 90-day deadline, this bug report will become public 30 days after the fix was made available. Otherwise, this bug report will become public at the deadline. The scheduled deadline is "2025-01-10"

Actual results:

.

Expected results:

.

The original report as published on Mozilla's Bugzilla, by D4ni31. 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

Root cause

Likely an incomplete fix for an earlier WebGL CreateSampler bug, leaving a variant out-of-bounds write reachable through crafted WebGL calls.

Impact

Exploitation could corrupt the GPU process and lead to a sandbox escape, though the report gives no technical detail beyond that claim.

What the attacker needed

Apple M1 Pro real machine; macOS 15.1 beta; victim opens a crafted HTML file

How it was found

  1. Open the attached crafted HTML file in Firefox on an Apple M1 Pro machine.
  2. Observe that the browser process can become corrupted, which the reporter says enables sandbox escape.

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.

WebGL lets web pages draw 3D graphics, and the browser handles those requests in a separate GPU process. An out-of-bounds write means the program writes data past the end of a memory buffer, which can corrupt other memory. The reporter says a malicious page could do this and possibly break out of the sandbox, the isolation that keeps a compromised process from harming the rest of the system.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by D4ni31

View all

5 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.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.