Heap-based buffer overflow in the nsBMPEncoder::AddImageFrame function in Mozilla Firefox before 49.0, Firefox ESR 45.x before 45.4, and Thunderbird < 45.4 allows remote attackers to execute arbitrary code via a crafted image data that is mishandled during the encoding of an image frame to an image.
https://www.mozilla.org/security/advisories/mfsa2016-88/
https://www.mozilla.org/security/advisories/mfsa2016-86/
https://security.gentoo.org/glsa/201701-15
https://bugzilla.mozilla.org/show_bug.cgi?id=1294677
http://www.securitytracker.com/id/1036852
http://www.securityfocus.com/bid/93049
http://www.oracle.com/technetwork/topics/security/linuxbulletinoct2016-3090545.html
http://www.mozilla.org/security/announce/2016/mfsa2016-85.html