Android security tags, read closely by Lightrion

CVE-2025-48573 AI-generated analysis

platform/frameworks/base, MediaSessionService (services/core/java/com/android/server/media/MediaSessionRecord.java)

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.

Removes the temporary allowlist grant (tempAllowlistTargetPkgIfPossible) that system_server made to the media session owner whenever a controller invoked MediaController.sendCommand, so this call no longer propagates while-in-use / background-FGS-launch privileges.

Root cause

In MediaSessionRecord's session callback wrapper, sendCommand(packageName, pid, uid, command, args, cb) called mService.tempAllowlistTargetPkgIfPossible(getUid(), getPackageName(), pid, uid, packageName, reason) before forwarding the command to the session's callback (mCb.onCommand). This temporarily allowlists the session-owning package (getUid()/getPackageName()) on behalf of the calling controller (pid/uid/packageName). Per the commit message, this propagates while-in-use (WIU) permissions and background foreground-service-launch (BFSL) capability. The commit states that sendCommand is only meant for exchanging technical information and should not be a way to grant another app these privileges. The same removed lines appear in the Android 14, 15 and 16 diffs.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to December 2025 · Findings