Android security tags, read closely by Lightrion

CVE-2023-40092 AI-generated analysis

platform/frameworks/base, services/core ShortcutService (ShortcutManager system service)

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

Adds a check in ShortcutService.verifyShortcutInfoPackage that the user ID embedded in a caller-supplied ShortcutInfo equals the user ID of the Binder calling UID, throwing SecurityException otherwise.

Root cause

verifyShortcutInfoPackage(String callerPackage, ShortcutInfo si) only verified that si.getPackage() equals the caller's package name. The caller-supplied ShortcutInfo also carries a user ID (si.getUserId()), which was never compared against the calling UID's user. verifyCaller() checks the userId argument of the API call against the caller, but the per-shortcut user ID inside each ShortcutInfo was unchecked, so shortcut objects tagged with another user's ID were not rejected by this function.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to December 2023 · Findings