Integer Overflow in RecordedSourceSurfaceCreation
An integer overflow in RecordedSourceSurfaceCreation leads to a heap buffer overflow, and the ReturnWrite mechanism allows an attacker to leak GPU process heap data to the content process. A compromised content process could potentially crash the GPU process.
- Fixed in 9 days
- Paid in 13 days
- Disclosed after 9 days
Created attachment 9346883
patch.diff
An integer overflow occurs in RecordedSourceSurfaceCreation::RecordedSourceSurfaceCreation[1], which results in a heap buffer overflow[2].
ReturnWrite allows attacker to leak GPU process's heap data to the content process.
The provided patch.diff file simulates a compromised content process that may potentially cause the GPU process to crash. To reproduce the vulnerability, apply the patch and open the index.html.
[1] https://searchfox.org/mozilla-central/source/gfx/2d/RecordedEventImpl.h#3215
[2] https://searchfox.org/mozilla-central/source/gfx/layers/RecordedCanvasEventImpl.h#364
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 integer overflow in the RecordedSourceSurfaceCreation constructor when calculating a buffer size, leading to a heap buffer overflow.
Impact
A compromised content process could potentially cause the GPU process to crash and leak GPU process heap data to the content process.
What the attacker needed
Compromised content process
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 report describes a bug in a graphics component where a number calculation overflows, causing memory corruption. An attacker who controls one part of the browser (the content process) could exploit this to read sensitive data from another part (the GPU process) or crash it.
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.