Skip to content
Memory corruption Disclosed report Advanced CVE-2023-4576

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.

fffvr Follow

Originally disclosed on Mozilla

  • Fixed in 9 days
  • Paid in 13 days
  • Disclosed after 9 days
Text
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

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

More by fffvr

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.