Android security tags, read closely by Lightrion

CVE-2025-48562 AI-generated analysis

platform/frameworks/base, packages/PrintSpooler (RemotePrintDocument, PDF save/write-out)

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.

PrintSpooler's save-to-PDF path now opens the destination content URI in write-truncate mode ("wt") instead of the default mode, so that overwriting an existing file gets a truncated output stream.

Root cause

RemotePrintDocument.writeContent(ContentResolver, Uri) copied the rendered document from the spooler's file into the user-selected destination using contentResolver.openOutputStream(uri), the one-argument form, which does not explicitly request truncation. The commit message says the fix requests a truncated output stream in case the user selects to overwrite an existing file. The inferred consequence is that content of the previous file could remain past the end of the newly written PDF; the material does not show this directly.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to September 2025 · Findings