Android security tags, read closely by Lightrion

CVE-2026-58957 AI-generated analysis

platform/frameworks/base, WindowManager/ActivityTaskManager activity start (services/core/java/com/android/server/wm/ActivityStarter.java)

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

ActivityStarter.resolveToHeavyWeightSwitcherIfNeeded() now keeps the original app calling UID/PID in mRequest (and sets ignoreTargetSecurity) when rerouting a launch to HeavyWeightSwitcherActivity, instead of replacing them with the system identity from Binder.getCallingUid()/getCallingPid(), so BAL and Intent Firewall checks run against the real caller.

Root cause

In ActivityStarter.resolveToHeavyWeightSwitcherIfNeeded(), when a launch of a cantSaveState="true" activity conflicts with the active heavy-weight process, the request is rewritten to target HeavyWeightSwitcherActivity. The rewrite set mRequest.callingUid = Binder.getCallingUid() and mRequest.callingPid = Binder.getCallingPid(); because this runs after Binder.clearCallingIdentity(), those values are the system_server identity (SYSTEM_UID 1000). checkBackgroundActivityStart() evaluates BAL against mRequest.callingUid, so the rerouted launch was judged as coming from SYSTEM_UID and allowed via BAL_ALLOW_ALLOWLISTED_UID, letting an untrusted background app get the switcher activity started over the foreground app (per the commit message).

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2026 · Findings