Android security tags, read closely by Lightrion

CVE-2026-55265 AI-generated analysis

platform/frameworks/base, telephony/common MMS PDU parser (com.google.android.mms.pdu.PduParser); plus the ApiDemos copy in platform/development (samples/ApiDemos com.example.android.mmslib.pdu.PduParser)

AI-generated: written from the bulletin and the fixing diffs by claude-fable-5-1, then checked against the code by claude-opus-5-5 (5 corrections). Verify against the commit before relying on it.

Adds length-vs-available bounds checks (new isInvalidLength helper) in PduParser.parseParts, skipWapValue and parsePartHeaders and replaces the byte[length] allocation in skipWapValue with ByteArrayInputStream.skip(), so malformed MMS PDUs with huge declared lengths no longer trigger OutOfMemoryError.

Root cause

PduParser took integer lengths from the PDU without checking them against the bytes actually available in the ByteArrayInputStream. These were the parseUnsignedInt results headerLength and dataLength in parseParts, the length passed to skipWapValue, and the computed remainder 'last' in parsePartHeaders. skipWapValue did 'byte[] area = new byte[length]' before reading, and parsePartHeaders did 'byte[] temp = new byte[last]', so a PDU declaring a huge length could cause an OutOfMemoryError during parsing instead of a parse failure (per the commit message). The regression test uses a part header length of 0x7FFFFFFF.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to October 2026 · Findings