CVE-2025-48600 AI-generated analysis
platform/frameworks/base, PackageManagerService (services/core/java/com/android/server/pm/ComputerEngine.java); on Android 15+ the linked fix is in platform/packages/modules/IntentResolver (Chooser additional-content URI handling)
Reorders ComputerEngine.resolveContentProvider so the user-existence check and flag update run on the userId parsed from the authority string instead of only on the caller-supplied userId parameter.
Root cause
In ComputerEngine.resolveContentProvider, mUserManager.exists(userId) and updateFlagsForComponent(flags, userId) were evaluated on the incoming userId parameter. Immediately afterwards the method re-derived the effective userId with ContentProvider.getUserIdFromAuthority(name, userId), because callers may embed a user id in the authority string. That derived userId was never checked for existence. mComponentResolver.queryProvider was then called with it. Per the commit message, packageState.getUserStateOrDefault(userId) returns PackageUserStateInternal.DEFAULT for a user that was never created, so ApplicationInfo could be produced for a non-existent user, which is not the intended result for cross-user queries.
How the fix works
- services/core/java/com/android/server/pm/ComputerEngine.java:resolveContentProvider: the two lines `if (!mUserManager.exists(userId)) return null;` and `flags = updateFlagsForComponent(flags, userId);` are moved from the start of the method to after `authorityWithoutUserId = ContentProvider.getAuthorityWithoutUserId(name)` and `userId = ContentProvider.getUserIdFromAuthority(name, userId)`. The existence check and flag computation therefore apply to the effective (authority-derived) userId that is passed to mComponentResolver.queryProvider and used in the later cross-user grant / enforceCrossUser logic.
- No other logic is changed: the queryProvider call, checkAuthorityGrants, and the clone-profile redirection path are untouched. They now run only for users that exist.
- Android 15 (platform/packages/modules/IntentResolver c6bc214f4502, linked by bug id): adds com.android.intentresolver.domain.UriCallerReadAccessValidator, which calls IUriGrantsManager.checkGrantUriPermission_ignoreNonSystem(launchedFromUid, packageName, getUriWithoutUserId(uri), FLAG_GRANT_READ_URI_PERMISSION, getUserIdFromUri(uri)). PayloadToggleCursorResolver.getCursor now only queries the additional-content cursorUri if the validator passes, and readUri() drops rows whose URI the caller cannot read. SelectionChangeCallbackImpl.onSelectionChanged returns null without calling the provider if the caller cannot read the URI. A UriGrantsManagerModule provides IUriGrantsManager.
- Android 16 / 17 (IntentResolver c132c70ec855 / e4b1a233fb17): CallerUriReadAccessValidatorModule.packageName now returns activityModelRepository.value.launchedFromPackage instead of the Chooser's own context.packageName, so the grant check is evaluated against the launching package rather than the intent resolver package.
Completeness
- The frameworks/base change covers only ComputerEngine.resolveContentProvider. The three-line reorder ensures every path through that method (queryProvider, checkAuthorityGrants, clone-profile redirection) sees a validated userId.
- Per index search, IPackageManagerBase.resolveContentProvider, PackageManagerInternalBase.resolveContentProvider, ContentProviderHelper.getProviderInfoLocked and UriGrantsManagerService.getProviderInfo all reach this method, so the reorder applies to them without caller changes. The material does not show which of them pass authorities with an embedded user id.
- The fix does not touch mComponentResolver.queryProvider or getUserStateOrDefault. A non-existent userId reaching queryProvider through any other entry point would still get PackageUserStateInternal.DEFAULT. The material shows no other such entry point.
- On Android 15+ the bug-linked IntentResolver commits address a different code path (Chooser additional-content provider access). The 16/17 follow-up corrects the package name used in the grant check, which the 15 commit set to the Chooser's own package.
Behavior changes
- resolveContentProvider now returns null when the user id embedded in the authority string does not exist, where previously it could return a ProviderInfo built from default user state.
- updateFlagsForComponent is now computed with the authority-derived userId, so flag adjustment may differ when the authority carries a user id different from the userId parameter.
- Android 15+: when the launching caller lacks a read grant on the URI, Chooser no longer queries the additional-content URI or invokes onSelectionChanged, and it filters cursor rows (null cursor / null ShareouselUpdate instead).
Per major
- Android 14: same fix: platform/frameworks/base 1329a9c3ce3c (ComputerEngine.resolveContentProvider reorder) in android-security-14.0.0_r28, linked by change id; 8/8 patched lines present at android-security-14.0.0_r31.
- Android 15: resolved by bug id via platform/packages/modules/IntentResolver c6bc214f4502 in android-security-15.0.0_r12 (adds UriCallerReadAccessValidator and gates PayloadToggleCursorResolver / SelectionChangeCallbackImpl); per-major facts report 8/8 lines of the patched region present at android-security-15.0.0_r19.
- Android 16: resolved by bug id via IntentResolver c132c70ec855 in android-security-16.0.0_r10 (packageName provider switched to launchedFromPackage); per-major facts report 2/3 lines of the patched region present at that tag.
- Android 17: resolved by bug id via IntentResolver e4b1a233fb17 in android-security-17.0.0_r3 (same one-line packageName change as 16); 2/3 lines of the patched region present at that tag.
Unknowns
- Whether the ComputerEngine reorder was also landed on Android 15/16/17 branches, or whether only the IntentResolver commits are the fix there. The per-major facts link 15+ by bug id to IntentResolver only, and it is unclear which patched region the '8/8' and '2/3' line counts refer to.
- The material shows only the subject lines of the IntentResolver commits, not their bug id or the exact relation to the frameworks/base change.
- The material does not detail what information a ProviderInfo for a non-existent user actually exposed, beyond the bulletin's ID classification.
- Which callers actually pass authorities with an embedded user id.