The MPEG4Extractor::parseChunk function in MPEG4Extractor.cpp in libstagefright in Android before 5.1.1 LMY48I does not properly restrict size addition, which allows remote attackers to execute arbitrary code or cause a denial of service (integer overflow and memory corruption) via a crafted MPEG-4 tx3g atom, aka internal bug 20923261.
www.huawei.com/en/psirt/security-advisories/hw-448928
www.securityfocus.com/bid/76052
www.securitytracker.com/id/1033094
www1.huawei.com/en/security/psirt/security-bulletins/security-advisories/hw-448928.htm
android.googlesource.com/platform/frameworks/av/+/463a6f807e187828442949d1924e143cf07778c6
groups.google.com/forum/message/raw?msg=android-security-updates/Ugvu3fi6RQM/yzJvoTVrIQAJ