Android security tags, read closely by Lightrion

CVE-2025-48554 AI-generated analysis

platform/frameworks/base, DevicePolicyManagerService / DeviceAdminInfo (device admin metadata handling)

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.

DevicePolicyManagerService now re-parses an active admin's device-admin metadata whenever its package changes and drops the admin if the metadata is malformed, and DeviceAdminInfo converts an OutOfMemoryError raised while parsing that metadata into an XmlPullParserException so callers can handle it.

Root cause

In DevicePolicyManagerService.handlePackagesChanged, when an active admin's package changed, the service only used mIPackageManager.getPackageInfo and getReceiverInfo to check that the package and the receiver component still existed. It never re-validated the admin's device-admin meta-data, so an updated DPC APK could remain an active admin while carrying malformed metadata. Separately, the metadata parsing block of the DeviceAdminInfo(Context, ActivityInfo) constructor caught only NameNotFoundException. An OutOfMemoryError thrown while parsing the meta-data XML therefore propagated as an Error instead of an XmlPullParserException.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to September 2025 · Findings