Android security tags, read closely by Lightrion

CVE-2026-58834 AI-generated analysis

platform/frameworks/base, services/devicepolicy (DevicePolicyManagerService, DevicePolicyEngine)

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 an argument check in DevicePolicyManagerService.setPermissionGrantState that rejects any grantState other than GRANTED, DENIED or DEFAULT, and wraps the per-policy enforcePolicy calls in DevicePolicyEngine's policy re-apply loop in try/catch so that a bad persisted policy is logged with Slogf.wtf instead of crashing system_server.

Root cause

DevicePolicyManagerService.setPermissionGrantState accepted an arbitrary int grantState from the calling admin without range-checking it. Per the commit message, the value was saved to disk, and on later system_server boots the policy re-application in DevicePolicyEngine called enforcePolicy(policyDefinition, policyValue, ...) for each global and local policy with no exception handling. The invalid stored value threw an uncaught IllegalArgumentException and crashed system_server during boot, repeatedly, until a factory reset.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to October 2026 · Findings