Android security tags, read closely by Lightrion

CVE-2025-0094 AI-generated analysis

platform/packages/apps/Settings, users / multi-user settings (UserSettings fragment)

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

Adds a `!mUserManager.isProfile()` condition to UserSettings.onCreateOptionsMenu so that a profile (e.g. a work profile) that manages to open the UserSettings screen is no longer offered the "Remove this user" overflow menu item.

Root cause

In src/com/android/settings/users/UserSettings.java, onCreateOptionsMenu built the MENU_REMOVE_USER overflow item whenever the current user was not an admin, could switch users now, and was not a guest. That condition did not consider whether the current user is a profile. Per the commit message, profiles are not expected to open Settings at all, but if UserSettingsActivity is launched as a profile (the test line uses `am start --user 10` for the work profile) the overflow would appear, and onOptionsItemSelected routes MENU_REMOVE_USER to onRemoveUserClicked(UserHandle.myUserId()), i.e. a user-removal flow driven from a profile context.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to February 2025 · Findings