Android security tags, read closely by Lightrion

CVE-2026-0056 AI-generated analysis

platform/frameworks/base, libs/androidfw (ResStringPool string pool parser)

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

Adds two validations of ResStringPool_header.styleCount in ResStringPool::setTo (libs/androidfw/ResourceTypes.cpp) so that the declared style offset array cannot overflow its size computation or extend past stringsStart, returning BAD_TYPE for such chunks.

Root cause

Before the fix, ResStringPool::setTo did not validate the header's styleCount against the chunk layout. The visible context shows checks on stringCount (headerSize + stringCount*sizeof(uint32_t) <= size), stringsStart and stylesStart, but none relating styleCount to the space between the style offsets (mEntryStyles) and stringsStart. Per the commit message, this could allow out-of-bounds reads beyond the bounds of the string pool chunk. The exact read site is not shown in the material.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to June 2026 · Findings