Android security tags, read closely by Lightrion

CVE-2026-0076 AI-generated analysis

platform/frameworks/base, libs/androidfw (ResourceTypes.cpp, binary XML parser ResXMLTree)

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

Adds a minimum-size check on ResXMLTree_attrExt::attributeSize in ResXMLTree::validateNode so binary XML nodes declaring an attribute size smaller than sizeof(ResXMLTree_attribute) are rejected with BAD_TYPE instead of being parsed.

Root cause

ResXMLTree::validateNode (libs/androidfw/ResourceTypes.cpp) validated a START_ELEMENT node's attribute block only by checking that attributeStart + (attributeSize * attributeCount) fits within the node (size - headerSize). It never checked that attributeSize itself was at least sizeof(ResXMLTree_attribute). Per the commit message, the code that later reads attributes uses the minimum sizes rather than the specified size, so a node declaring attributeSize smaller than that structure passes the product check while the actual accesses extend past the validated range, reading beyond the end of memory.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to June 2026 · Findings