use-after-free in mStream
Originally disclosed on Mozilla
- Fixed in 8 days
- Paid in 13 days
- Disclosed after 8 days
Created attachment 9346868
ASAN.txt
While graphics rendering, |mStream| is used to receive rendering data[1]. |mStream| could be destroyed when initialized. However, there is no check in init function[2] and it could initialize twice. This could lead to use-after-free when |mStream| is destroyed during accessing rendering data.
[1]: https://searchfox.org/mozilla-central/source/gfx/layers/ipc/CanvasTranslator.h#261
[2]: https://searchfox.org/mozilla-central/source/gfx/layers/ipc/CanvasTranslator.cpp#138
REPRODUCE
Operating System: All
1.apply *patch1.diff and patch2.diff
2.visit index.html
*: patch1.diff is emulating a compromised content process. patch2.diff is patching the Graphic Process to improve the success rate (just for reproducing easily)
Crash State: see asan file
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is known
A high-severity memory corruption bug in Graphics. Mozilla made it public on 10 August 2023 as CVE-2023-4573.
About 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.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
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.