Android security tags, read closely by Lightrion

CVE-2026-58814 AI-generated analysis

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

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 (1 corrections). Verify against the commit before relying on it.

Adds a `length < 0` rejection to the value-length bounds check in PduParser.parseContentType, so a negative Value-length decoded from a crafted MMS PDU no longer passes the check and no longer triggers a huge array allocation (OutOfMemoryError in com.android.phone). The fix is applied in both platform/frameworks/base (telephony/common) and the platform/development ApiDemos mmslib copy.

Root cause

In PduParser.parseContentType, when the first byte is below TEXT_MIN, the Content-general-form path reads a Value-length via parseValueLength(pduDataStream) and records startPos = pduDataStream.available(). In frameworks/base the only validation was `if (length > startPos)`. In the development ApiDemos copy there was no validation at all. parseValueLength can return a negative int for a crafted uintvar (the test uses the encoding for Integer.MIN_VALUE), and a negative length passes `length > startPos`. Per the commit message, the later length arithmetic then underflows and the parser allocates a massive byte array (new byte[2GiB]), raising OutOfMemoryError in com.android.phone.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2026 · Findings