CVE-2026-58946 AI-generated analysis
platform/frameworks/base, WindowManager/ActivityTaskManager (services/core/java/com/android/server/wm/ActivityClientController.java)
ActivityClientController.navigateUpTo now stamps both destIntent and resultData with creator tokens (via ActivityManagerInternal.addCreatorToken using the calling activity's package name) before forwarding them, so nested Intent extras are no longer delivered to the receiving app without creator tokens.
Root cause
In ActivityClientController.navigateUpTo, the caller-supplied destIntent and resultData were passed straight to RootTask.navigateUpTo after only collecting URI grants (mService.collectGrants). Nested Intent extras inside these two intents were not stamped with creator tokens, so a receiving application could treat caller-supplied nested intents as trusted. Per the commit message, this could bypass intent redirection mitigations such as the prevent_intent_redirect creator checks and lead to launching non-exported activities or unauthorized URI permission grants.
How the fix works
- services/core/java/com/android/server/wm/ActivityClientController.java:navigateUpTo: after the existing collectGrants calls and before re-acquiring mGlobalLock, two calls are added: mService.mAmInternal.addCreatorToken(destIntent, r.packageName) and mService.mAmInternal.addCreatorToken(resultData, r.packageName).
- The creator attributed to the intents is r.packageName, i.e. the package of the ActivityRecord resolved from the caller's token (ActivityRecord.isInRootTaskLocked(token)), not a caller-controlled value.
- The stamping is done outside mGlobalLock, in the same unlocked section already used for grant collection; the stamped intents are then passed to r.getRootTask().navigateUpTo(...) unchanged otherwise.
- Single-file, 3-line addition; no change to RootTask.navigateUpTo or to the Intent/creator-token machinery itself.
Completeness
- Covers exactly one entry point: ActivityClientController.navigateUpTo, and both intents it carries (destIntent and resultData).
- The fix relies on ActivityManagerInternal.addCreatorToken walking and stamping nested Intent extras; that implementation is not part of the diff, so coverage of deeply nested or bundled intents depends on its existing behavior.
- No null handling is added around addCreatorToken(resultData, ...); whether addCreatorToken tolerates a null resultData is not shown in the material.
- Other ActivityClientController methods that forward caller-supplied Intents to other components are not touched by this commit; the material does not show whether they already stamp creator tokens.
Behavior changes
- Intents delivered via navigateUpTo (the destination intent and the result intent) now carry creator tokens attributed to the navigating activity's package; receivers with intent redirection mitigations enabled will validate nested intents against that creator rather than treating them as trusted.
- No new error codes or return value changes; navigateUpTo still returns the result of RootTask.navigateUpTo.
Per major
- Android 14: Not listed by the bulletin (not affected per bulletin). The resolver reports 5/5 lines of the patched region present at android-security-14.0.0_r31, but no fix commit is linked for this branch; treat as not affected per bulletin.
- Android 15: Not listed by the bulletin (not affected per bulletin). The resolver reports 5/5 lines of the patched region present at android-security-15.0.0_r19, but no fix commit is linked for this branch; treat as not affected per bulletin.
- Android 16: Same fix: commit c196e86747b0 in android-security-16.0.0_r10 (Change-Id I29788473cc535161aa90a4259bcfa3c013f2359b, cherry-picked from 251949ef9f045abc67c169dd0cceb076ad9d9c7e), 3-line addition in ActivityClientController.navigateUpTo; 5/5 lines present.
- Android 17: Same fix: commit 0a387476e98f in android-security-17.0.0_r3, identical hunk at a different line offset (line 467 vs 405); 5/5 lines present.
Unknowns
- The implementation of ActivityManagerInternal.addCreatorToken (including null handling and nesting depth) is not shown in the material.
- Whether other ActivityClientController intent-forwarding paths already stamp creator tokens is not shown.
- Which public app-facing APIs lead to the IActivityClientController.navigateUpTo binder call is not shown in the material.
- The test added or run for this change (commit says 'Test: m WmTests') is not included in the diff.