Android security tags, read closely by Lightrion

CVE-2026-58976 AI-generated analysis

platform/packages/providers/TelephonyProvider, ProviderUtil (per-user sub_id selection used for SMS/MMS access)

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.

ProviderUtil.getSelectionBySubIds in TelephonyProvider now adds sub_id=-1 (INVALID_SUBSCRIPTION_ID) to the per-user subscription selection string only when the calling user is the system user. Secondary and guest users therefore no longer match backup-restored SMS/MMS rows that carry sub_id=-1.

Root cause

getSelectionBySubIds builds a "sub_id IN (...)" selection that limits a user to its associated subscriptions. Both the Flags.workProfileApiSplit() branch and the legacy branch added a SubscriptionInfo with id INVALID_SUBSCRIPTION_ID (-1) for every caller that was not a managed profile. In the legacy branch the condition was userManager != null && !isManagedProfile; in the flagged branch it was a plain else. Messages restored from another device are stored with sub_id=-1. So any non-managed-profile user, including guest and secondary users, got a selection that matched those rows. Per the code comment, that selection is used to query, update and delete messages.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2026 · Findings