Android security tags, read closely by Lightrion

CVE-2025-32333 AI-generated analysis

platform/packages/apps/Settings, SPA navigation, src/com/android/settings/spa/SpaActivity.kt

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.

Settings' SpaActivity.startSpaActivityForApp now rejects an intent data scheme-specific part that does not match a Java-style package name regex before putting it into the SPA navigation destination string. For malformed values it returns false and launches no activity.

Root cause

In SpaActivity.kt, Context.startSpaActivityForApp(destinationPrefix, intent) used intent.data?.schemeSpecificPart as the package name. It then built the destination "$destinationPrefix/$packageName/${UserHandle.myUserId()}" without checking that value. A scheme-specific part containing characters such as '/' or '#' would change the shape of the destination string passed to startSpaActivity, instead of standing in as a plain package name. The added test uses "package:package.name/10#". How the destination is then parsed is not shown.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to September 2025 · Findings