Android security tags, read closely by Lightrion

CVE-2026-59022 AI-generated analysis

platform/packages/providers/MediaProvider, MediaProvider query path (owner_package_name redaction)

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

Replaces the exact-string match used to find and redact the owner_package_name column in MediaStore query projections with word-boundary regex detection and in-expression substitution, so the CASE WHEN redaction is applied even when the column appears inside aggregates, aliases, DISTINCT/ALL prefixes or repeated elements.

Root cause

In MediaProvider.java, projectionNeedsOwnerPackageFiltering() decided whether redaction was required with Arrays.asList(proj).contains(MediaColumns.OWNER_PACKAGE_NAME). prepareSubstitution() only rewrote a projection element when it exactly matched "owner_package_name" (case-insensitive). Any element that referenced the column in another form (for example inside an aggregate such as MAX(), with an alias, or after DISTINCT) went to SQLiteQueryBuilder unchanged. As a result, callers could get the raw owner_package_name value where they should have received NULL for packages they cannot query. The substitution string also ended in a hard-coded "AS owner_package_name", so it could only replace a bare column and could not be embedded in an expression.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2026 · Findings