Android security tags, read closely by Lightrion

CVE-2026-58937 AI-generated analysis

platform/frameworks/base, WindowManager / ActivityTaskManager task persistence (TaskPersister), plus android.os.BaseBundle/Bundle

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

Adds size limits to recent-task persistence in TaskPersister. On save, the total PersistableBundle size per task is capped at 2.5 MB and the serialized task XML at 5 MB. On restore, task XML files larger than 5 MB are deleted instead of parsed. Per the commit message, this prevents OutOfMemoryError crashes.

Root cause

TaskPersister serialized each recent task to a per-task XML file with no bound on its size. That XML includes the PersistableBundle persistent saved state of each persistable activity. restoreTasksForUserLocked read every task file back regardless of size. Per the commit message, many or very large task XML files caused OutOfMemoryError crashes while loading or saving. There was also no way to measure a PersistableBundle's size, because getSize() existed only on Bundle and not on BaseBundle.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2026 · Findings