Android security tags, read closely by Lightrion

CVE-2024-31316 AI-generated analysis

platform/frameworks/base, services/core AccountManagerService (accounts)

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.

Adds a second checkKeyIntent() check of the result Bundle returned by the authenticator in two result-handling paths of AccountManagerService. The check runs after the Bundle has been modified (KEY_AUTHTOKEN removed) and rejects the response with ERROR_CODE_INVALID_RESPONSE if the intent fails it.

Root cause

In AccountManagerService.java, result handlers receive a result Bundle from an account authenticator and modify it before forwarding it to the caller's response. Both paths remove KEY_AUTHTOKEN; the first path also removes KEY_PASSWORD when !mIsPasswordForwardingAllowed. The commit message says another verification is needed after Bundle modification: checkKeyIntent() was not run again after these modifications. The location of the original checkKeyIntent call is not in the material.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to June 2024 · Findings