Android security tags, read closely by Lightrion

CVE-2026-59021 AI-generated analysis

platform/frameworks/base, services/devicepolicy (DevicePolicyEngine policy state persistence)

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

Replaces Set.of(...split(";")) with HashSet-based deduplication in the device policy XML readers (StringSetPolicySerializer, LockTaskPolicySerializer, EnforcingAdmin) and wraps PolicyState.readFromXml in DevicePolicyEngine with a per-entry IllegalArgumentException catch, so a persisted policy value containing the ';' separator no longer aborts parsing of device_policy_state.xml or crashes system_server.

Root cause

The policy serializers persist string sets by joining elements with ";" (saveToXml via String.join) and read them back with Set.of(valuesStr.split(";")). Set.of rejects duplicate elements with IllegalArgumentException. Per the commit message, if an admin set a policy containing the separator character (;) multiple times, the split on reload yields duplicate elements and Set.of throws. In DevicePolicyEngine.readLocalPoliciesInner / readGlobalPoliciesInner the call PolicyState.readFromXml(parser) was not guarded against IllegalArgumentException, so the exception propagated. Per the commit message this dropped all subsequent policies, or crashed system_server and caused a bootloop. The same Set.of pattern existed in EnforcingAdmin.readFromXml for the authorities attribute.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2026 · Findings