Android security tags, read closely by Lightrion

CVE-2025-0099 AI-generated analysis

platform/frameworks/base, CompanionDeviceManagerService (services/companion)

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

Adds a SYSTEM_UID calling-UID check to the CompanionDeviceManagerService binder methods getBackupPayload and applyRestoredPayload, so callers that are not the system UID are rejected with a SecurityException.

Root cause

In services/companion/java/com/android/server/companion/CompanionDeviceManagerService.java, the binder stub overrides getBackupPayload(int userId) and applyRestoredPayload(byte[] payload, int userId) passed calls straight to mBackupRestoreProcessor without checking who the caller was. Both methods take a userId supplied by the caller. The commit title ('Check for system calling UID when backing up and restoring data') indicates these operations are meant only for system callers. The material does not show whether the processor enforces any access control of its own.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to February 2025 · Findings