Android security tags, read closely by Lightrion

CVE-2026-58934 AI-generated analysis

platform/frameworks/base, WindowManager (services/core/java/com/android/server/wm/WindowState.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 (1 corrections). Verify against the commit before relying on it.

WindowState.prepareWindowToDisplayDuringRelayout() now only allows a window with FLAG_TURN_SCREEN_ON (or an ActivityRecord that can turn the screen on) to call PowerManager.wakeUp() when the window's DisplayContent is non-null and trusted, closing a path where a non-activity window on an untrusted virtual display could wake the physical screen.

Root cause

In WindowState.prepareWindowToDisplayDuringRelayout(), when hasTurnScreenOnFlag was set, canTurnScreenOn was computed as `mActivityRecord == null || mActivityRecord.currentLaunchCanTurnScreenOn()`. For a window with no ActivityRecord (for example a TYPE_PRIVATE_PRESENTATION window, per the commit message) this short-circuited to true, with no check of which display the window belonged to and no one-shot restriction. If theater mode allowed waking and the device was dreaming or not interactive, the code called mWmService.mPowerManager.wakeUp(..., WAKE_REASON_APPLICATION, "android.server.wm:SCREEN_ON_FLAG"). According to the commit message, zero-permission virtual displays fall back to the DEFAULT_DISPLAY_GROUP, so a window on such an untrusted private virtual display woke the physical screen and could do so repeatedly, bypassing the TURN_SCREEN_ON permission.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2026 · Findings