Android security tags, read closely by Lightrion

CVE-2026-58837 AI-generated analysis

platform/frameworks/base, Companion Device Manager service (services/companion, CompanionDeviceManagerService)

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 a foreground check to CompanionDeviceManagerImpl.associate(). Callers that are not system, are not making a self-managed request and do not hold MANAGE_COMPANION_DEVICES must be in PROCESS_STATE_TOP; otherwise a SecurityException is thrown before the association request is processed.

Root cause

In services/companion/java/com/android/server/companion/CompanionDeviceManagerService.java, CompanionDeviceManagerImpl.associate() called only enforceCallerCanManageAssociationsForPackage() and then passed the request directly to mAssociationRequestsProcessor.processNewAssociationRequest(). Nothing checked that the calling UID was in the foreground. Per the commit message, this allowed Companion Device Manager to be used to get around background activity launch restrictions.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2026 · Findings