Skip to content
Memory corruption Disclosed report Advanced CVE-2015-0312

Race condition in workers may cause an exploitable double free by abusing bytearray.compress()

A race condition when sharing a bytearray between two workers may cause a double free if one worker calls bytearray.compress() while the other uses the array.

biloulehibou Follow

Originally disclosed on HackerOne

  • Fixed in 14 days
  • Paid in 14 days
  • Disclosed after 44 days

The issue occurs while sharing a bytearray between two workers. If one worker calls bytearray.compress() while the other uses that bytearray, Flash does not correctly handle the race and may double free the array.

Identified as CVE-2015-0312, and reported to Adobe via Chrome VRP: https://helpx.adobe.com/security/products/flash-player/apsb15-03.html

Original report with exploit for Chrome: https://code.google.com/p/chromium/issues/detail?id=436022

The original report as published on HackerOne, by biloulehibou. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 a lack of synchronisation when one worker compresses a shared bytearray while another worker accesses it, leading to a double free.

Impact

Could cause a double free.

What the attacker needed

Two workers sharing a bytearray; one worker calls compress()

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.

A bytearray is a block of memory that programs can share. When two workers use the same block at the same time, and one tries to compress it while the other is still using it, the program may free the memory twice. This is called a double free.

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 biloulehibou

View all

3 more disclosed reports, best first.

More from Internet Bug Bounty

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.