Android security tags, read closely by Lightrion

CVE-2023-40075 AI-generated analysis

platform/frameworks/base, ShortcutService (services/core/java/com/android/server/pm/ShortcutPackage.java)

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.

Moves the ensureShortcutCountBeforePush() call in ShortcutPackage from the push path (the method whose disabled-shortcut message references pushDynamicShortcuts()) into forceReplaceShortcutInner, right before saveShortcut(), to bound shortcuts published through addDynamicShortcuts.

Root cause

Before the fix, ShortcutPackage.java called ensureShortcutCountBeforePush() only in the push path (right after the Preconditions check whose message references pushDynamicShortcuts()). forceReplaceShortcutInner saved shortcuts without it. Per the commit message, when an app has multiple main activities, the total number of shortcuts published through addDynamicShortcuts could grow indefinitely. The bulletin classifies this as a DoS.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to December 2023 · Findings