Android security tags, read closely by Lightrion

CVE-2026-58838 AI-generated analysis

platform/packages/providers/DownloadProvider, Helpers path restriction checks (isFileInExternalAndroidDirs, isFileInPrivateExternalAndroidDirs)

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.

DownloadProvider's Helpers now NFD-normalizes a destination path and strips default-ignorable Unicode code points (such as zero-width spaces) before re-running the Android-directory regex restriction checks (PATTERN_ANDROID_DIRS, PATTERN_ANDROID_PRIVATE_DIRS), so invisible characters inserted into path segments no longer evade the checks.

Root cause

Helpers.isFileInExternalAndroidDirs matched PATTERN_ANDROID_DIRS against the raw filePath string, and Helpers.isFileInPrivateExternalAndroidDirs matched PATTERN_ANDROID_PRIVATE_DIRS against file.getCanonicalPath(). Neither one removed default-ignorable Unicode code points. A path such as "/storage/emulated/0/An\u200bdroid/data/..." or ".../Android/da\u200bta/..." does not match the literal regex, so the checks returned false. Per the commit's comment, the lower file system ignores these characters, so such a path can still refer to the restricted directory.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2026 · Findings