Android security tags, read closely by Lightrion

CVE-2026-59016 AI-generated analysis

platform/packages/modules/Profiling, ProfilingService (anomaly profile result handling)

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

Adds enforceValidResultFileName() to ProfilingService.sendAnomalyProfile(). A caller-supplied resultFileName that is null or empty, contains path separators or "..", or resolves outside sTempTracePath (/data/misc/perfetto-traces/profiling/) is now rejected with IllegalArgumentException before a TracingSession is created with it.

Root cause

ProfilingService.sendAnomalyProfile() (service/java/com/android/os/profiling/ProfilingService.java) took the resultFileName binder argument. After only enforceSystemCaller() and enforceAnomalyTriggerType(), it stored the name unchanged via session.setFileName(resultFileName) on a new TracingSession. Per the commit message, the file name is later concatenated with sTempTracePath (/data/misc/perfetto-traces/profiling/) in file operations: a read via receiveFileDescriptor and a delete via deleteProfilingFiles. A name containing traversal sequences could therefore make the service read or delete arbitrary files with system_server privileges.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2026 · Findings