Android security tags, read closely by Lightrion

CVE-2024-40675 AI-generated analysis

platform/frameworks/base, core/java/android/content/Intent.java (Intent URI parsing, parseUri)

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.

Intent.parseUri now throws URISyntaxException("uri end not found") when a name=value field in the new-format Intent URI loop has no ';' after it, instead of continuing with semi == -1.

Root cause

In Intent.parseUri, the loop over the new-format Intent URI body (`while (i >= 0 && !uri.startsWith("end", i))`) computes `int semi = uri.indexOf(';', i)` and did not check for -1 before going on with the iteration. When a field is not terminated by ';', parsing went on with semi == -1 instead of rejecting the input. The bulletin rates the result as a High-severity DoS. The material does not show the exact failure mode, because the code that advances the loop is outside the shown context.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to October 2024 · Findings