Android security tags, read closely by Lightrion

CVE-2026-49935 AI-generated analysis

platform/frameworks/base, services/core LocaleManagerService (app-specific locales / LocaleConfig override)

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

Adds an owner/installer/foreground-IME-or-READ_APP_SPECIFIC_LOCALES access check to LocaleManagerService.getOverrideLocaleConfig and a canonical-path containment check in getXmlFileNameForUser so a caller-supplied package name can no longer select a locale-config XML outside the target user's locale_configs directory; a follow-up commit returns null early for packages not found for the user to avoid a regression crash.

Root cause

In services/core/java/com/android/server/locales/LocaleManagerService.java, getOverrideLocaleConfig(appPackageName, userId) only ran mActivityManagerInternal.handleIncomingUser on userId and then directly built a file via getXmlFileNameForUser(appPackageName, userId), which returned new File(dir, appPackageName + SUFFIX_FILE_NAME) with dir = <DataSystemCeDirectory(userId)>/LOCALE_CONFIGS. There was no check that the caller owns, installed, or is otherwise authorized for appPackageName (unlike getApplicationLocales, which enforces owner/installer/IME-foreground or READ_APP_SPECIFIC_LOCALES), so any caller could read any package's stored override LocaleConfig. Because appPackageName was concatenated into the path without validation, a name containing ".." could resolve to a file outside the intended directory, including another user's locale_configs directory (as the added test name "../../10/locale_configs/com.victim" illustrates), so the cross-user check applied to the userId argument did not constrain the file read. The method is exposed through the binder service (LocaleManagerService.this.getOverrideLocaleConfig at line 215 of the r19 context).

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2026 · Findings