Android security tags, read closely by Lightrion

CVE-2026-58974 AI-generated analysis

platform/frameworks/base, WindowManagerService (services/core wm) and android.os.Binder

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.

Adds a ROOT/SHELL calling-UID gate at the start of WindowManagerService.onShellCommand (via a new static helper Binder.enforceShellCommandUid) so that non-ADB callers can no longer run WindowManagerShellCommand commands through the binder shell-command transaction.

Root cause

Binder.onShellCommand's default implementation enforces that the calling UID is ROOT_UID or SHELL_UID before dispatching to handleShellCommand, and Binder.shellCommand calls onShellCommand directly with no check of its own (the Binder javadoc in the context notes that no permission checking is done before calling onShellCommand). WindowManagerService overrides onShellCommand and immediately executes new WindowManagerShellCommand(this).exec(...), so the default UID check never ran. As a result, a caller that could send the shell-command transaction to the IWindowManager binder could execute WindowManagerShellCommand commands without being shell or root.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2026 · Findings