Android security tags, read closely by Lightrion

CVE-2023-40122 AI-generated analysis

platform/frameworks/base, services/autofill (Autofill service UI: SaveUi custom description, inline suggestions)

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

Adds user-ownership checks on content URIs in UI content supplied by an autofill service. On Android 14, SaveUi now runs Helper.sanitizeRemoteView on the CustomDescription BatchUpdates RemoteViews. Inline suggestion rendering is skipped when the InlinePresentation Slice contains URI-backed icons owned by a different user (new Helper.sanitizeSlice). sanitizeRemoteView now resolves URIs against the checked userId with the two-argument getUserIdFromUri.

Root cause

Privileged code renders presentation content on behalf of autofill services. Two such inputs were not checked for URI ownership. (1) In SaveUi's custom-description handling, the RemoteViews returned by batchUpdates.getUpdates() were passed directly to reapply(context, customSubtitleView) without Helper.sanitizeRemoteView. (2) In RemoteInlineSuggestionViewConnector.renderSuggestion, the InlinePresentation Slice was forwarded to the remote render service without any inspection of its Icon items. Separately, the existing Helper.sanitizeRemoteView used the one-argument ContentProvider.getUserIdFromUri(uri) instead of the two-argument form with userId as the default. The bulletin classifies the issue as information disclosure (ID), High.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to February 2025 · Findings