Android security tags, read closely by Lightrion

CVE-2026-28578 AI-generated analysis

platform/frameworks/base, services/devicepolicy (DevicePolicyManagerService, PackagePolicy setters)

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.

Adds a per-package-name length check (enforcePackagePolicyPackageNamesLength) to the three DevicePolicyManagerService setters that accept a PackagePolicy (managed profile caller-id/contacts access policies and credential manager policy), rejecting overlong package names before the policy is processed.

Root cause

The DevicePolicyManagerService setters that take a PackagePolicy did not check the length of the strings returned by policy.getPackageNames(). Two of them are guarded by isProfileOwner(caller) && isManagedProfile(caller.getUserId()); the credential manager policy setter is guarded by canWriteCredentialManagerPolicy(caller). As a result, a supplied policy could carry package names longer than MAX_PACKAGE_NAME_LENGTH into the service. The bulletin rates this as a High-severity DoS; the material does not show the failure mode downstream.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to June 2026 · Findings