Android security tags, read closely by Lightrion

CVE-2026-58961 AI-generated analysis

platform/frameworks/base, WindowManager/ActivityTaskManagerService (services/core/java/com/android/server/wm)

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.

In ActivityTaskManagerService.moveTaskToFront, the fix checks the caller-supplied SafeActivityOptions against every ActivityRecord in the target task (task.forAllActivities with options.getOptions(r)) before it computes the real options and moves the task. If any activity in the task fails the check, a SecurityException is thrown (per the commit message) and the move does not happen.

Root cause

In services/core/java/com/android/server/wm/ActivityTaskManagerService.java, the moveTaskToFront path turned the caller's SafeActivityOptions into ActivityOptions with one call, options.getOptions(mTaskSupervisor), and passed the result to mTaskSupervisor.findTaskToMoveToFront(task, flags, realOptions, "moveTaskToFront", false). That call did not check the options against the individual activities in the task. Per the commit message, the per-activity display permission checks were therefore not performed for the activities being moved.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2026 · Findings