Android security tags, read closely by Lightrion

CVE-2026-55273 AI-generated analysis

platform/frameworks/base, tools/aapt2 (Java R.java generation, AnnotationProcessor)

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.

aapt2's AnnotationProcessor now rewrites Javadoc terminators ("*/") and Java Unicode escape introducers ("\u") in resource XML comments before emitting them into the Javadoc blocks of generated R.java, so a comment can no longer close the Javadoc block and inject Java source.

Root cause

AnnotationProcessor::AppendCommentLine in tools/aapt2/java/AnnotationProcessor.cpp placed comment text taken from resource XML into the "/** ... */" Javadoc block that aapt2 prints into generated R.java, and did not escape Javadoc terminators or Unicode escapes first. A comment containing the literal sequence "*/" ends the Javadoc block early. Because the Java compiler decodes Unicode escapes (e.g. \u002f for '/' or \u002a for '*') before it parses comments, sequences like "*\u002f" or "\u002a\u002f" have the same effect. Text after the breakout is then compiled as Java code in R.java.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to September 2026 · Findings