Android security tags, read closely by Lightrion

CVE-2024-0024 AI-generated analysis

platform/frameworks/base, services/core com.android.server.pm.UserManagerService (multi-user / user restrictions persistence)

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

UserManagerService now truncates the user name and the seed account name and type to 500 characters at user creation, when seed account data is set, and when serializing the per-user XML, so an oversized string no longer causes the IOException that left user restrictions unwritten.

Root cause

The per-user XML serializer in UserManagerService wrote userData.seedAccountName, userData.seedAccountType and userInfo.name without any size limit. According to the commit message, extras too long to be serialized caused an IOException, and the restrictions were not written in the file. In the diff context the synchronized(mRestrictionsLock) block follows the TAG_NAME element in the same document. The result is a user created with no restrictions in place, observable after reboot per the commit test notes.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to May 2024 · Findings