Android security tags, read closely by Lightrion

CVE-2025-48619 AI-generated analysis

platform/frameworks/base, core/java/android/content/ContentProvider.java (ContentProvider.Transport, content provider file 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 (6 corrections). Verify against the commit before relying on it.

ContentProvider's binder Transport now sanitizes the file open mode string in openFile and openAssetFile, silently removing the truncate ('t') and append ('a') flags when the write ('w') flag is absent, before both the permission check and the call into the provider.

Root cause

In ContentProvider.Transport.openFile and Transport.openAssetFile, the mode String supplied by the caller was passed unchanged to enforceFilePermission(attributionSource, uri, mode) and then to mInterface.openFile / mInterface.openAssetFile. The new code comment lists the supported modes as r, w, wt, wa, rw, rwt, but nothing normalized other combinations. A mode containing 't' (truncate) or 'a' (append) without 'w' therefore reached the provider implementation as a read request that carried bits able to modify the file. The commit message describes this as preventing unintended changes. Presumably the permission check treated such a mode as a read, but the body of enforceFilePermission is not shown. The bulletin rates the issue as High severity EoP.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to March 2026 · Findings