Android security tags, read closely by Lightrion

CVE-2026-28597 AI-generated analysis

platform/frameworks/base, system_server URI grants (services/core/java/com/android/server/uri, UriGrantsManagerService)

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.

UriGrantsManagerService now checks each persisted URI grant snapshot before XML serialization (no null fields, URI at most 65,535 UTF-8 bytes, package names at most 255 bytes) and skips entries that fail, so one overly long URI can no longer make the whole urigrants.xml write fail and leave a revoked grant on disk.

Root cause

The grant persistence loop in UriGrantsManagerService writes mGrantFile through out.startTag(TAG_URI_GRANT) plus attribute writes for each UriPermission.Snapshot. It wrote the URI and package name strings without checking their size. Per the commit message, an overly long URI caused an IOException during XML serialization. The existing catch path then calls mGrantFile.failWrite(fos), so the grants file was not updated. The commit message says this let a malicious app keep a URI grant indefinitely after revocation by supplying an overly long URI.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2026 · Findings