Android security tags, read closely by Lightrion

CVE-2025-48603 AI-generated analysis

platform/frameworks/base, input method framework (core/java/android/view/inputmethod/InputMethodInfo.java, consumed by InputMethodManagerService)

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 a 200 KB size limit on an input method's metadata XML resource (InputMethod.SERVICE_META_DATA) in InputMethodInfo. An oversized resource now makes the code throw XmlPullParserException before the XML is parsed, so the system process (IMMS) cannot be driven out of memory while constructing InputMethodInfo.

Root cause

The InputMethodInfo constructor that takes a ServiceInfo called si.loadXmlMetaData(pm, InputMethod.SERVICE_META_DATA) and parsed the resulting XmlResourceParser with no limit on the size of the referenced XML resource. Per the commit message, a malicious IME could load an extremely large metadata XML, and IMMS ran out of memory while constructing InputMethodInfo from it.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to December 2025 · Findings