Android security tags, read closely by Lightrion

CVE-2025-48553 AI-generated analysis

platform/frameworks/base, DevicePolicyManagerService / DeviceAdminInfo (device policy)

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.

DevicePolicyManagerService.handlePackagesChanged now re-parses the device admin metadata of an active admin's receiver (via a new DeviceAdminInfo) after a package change and removes the admin if the package, receiver or metadata is missing or malformed; DeviceAdminInfo's metadata parser additionally converts OutOfMemoryError into XmlPullParserException so that failure is catchable.

Root cause

In handlePackagesChanged, when an active admin's package changed, DPMS only verified via mIPackageManager.getPackageInfo and getReceiverInfo (without GET_META_DATA) that the package and the receiver component still existed. It never re-read or re-parsed the receiver's device admin metadata, so an ActiveAdmin stayed registered with its previously stored DeviceAdminInfo even if the updated package's receiver no longer carried well-formed device admin metadata. Additionally, DeviceAdminInfo(Context, ActivityInfo) only caught NameNotFoundException around the XML parse; an OutOfMemoryError during parsing propagated as an Error rather than a parse failure.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to September 2025 · Findings