Android security tags, read closely by Lightrion

CVE-2023-40111 AI-generated analysis

platform/frameworks/base, media session service (services/core/java/com/android/server/media/MediaSessionRecord.java) and MediaSession client API (media/java/android/media/session/MediaSession.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.

The media session service's setMediaButtonReceiver now logs and ignores PendingIntents that target an activity, so a media button receiver can no longer be used to bypass background activity launch restrictions.

Root cause

In MediaSessionRecord, the session binder stub's setMediaButtonReceiver stored any caller-supplied PendingIntent into mMediaButtonReceiverHolder (via MediaButtonReceiverHolder.create) after checking only the SESSION_POLICY_IGNORE_BUTTON_RECEIVER policy. Nothing checked what kind of PendingIntent it was, so an app could register one that targets an activity. The commit message says this allowed a bypass of background activity launch restrictions.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2023 · Findings