Android security tags, read closely by Lightrion

CVE-2026-58951 AI-generated analysis

platform/frameworks/base, WindowManager / ActivityTaskManager (services/core/java/com/android/server/wm: AppTaskImpl, Task)

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

AppTaskImpl.getTaskInfo() now derives getTasksAllowed from mService.isGetTasksAllowed() for the real Binder caller instead of hardcoding true, and Task.trimIneffectiveInfo() additionally clears pictureInPictureParams, mTopActivityLocusId and taskDescription when the top activity UID differs from the task's effectiveUid.

Root cause

AppTaskImpl.getTaskInfo() called mService.getRecentTasks().createRecentTaskInfo(task, false, true), with getTasksAllowed hardcoded to true, after Binder.clearCallingIdentity(). The only gate was checkCallerOrSystemOrRoot(), which matches the uid that obtained the handle (or system/root). Any holder of an IAppTask handle that passed it therefore received a RecentTaskInfo built as if the caller had the get-tasks privilege. As a result, the top activity details of a task whose top activity belongs to a different UID than the task's effectiveUid were not trimmed. In addition, Task.trimIneffectiveInfo() only blanked the topActivity/topActivityInfo string fields and left pictureInPictureParams, mTopActivityLocusId and taskDescription intact, so even when trimming ran, those top-activity-derived fields leaked.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2026 · Findings