Android security tags, read closely by Lightrion

CVE-2024-23708 AI-generated analysis

platform/frameworks/base, system_server: NotificationManagerService toast queue and ClipboardService clipboard-access toast

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.

NotificationManagerService now puts system-package toasts ahead of pending non-system toasts in mToastQueue (behind the toast currently on screen and after any queued system toasts) instead of adding them at the end, and ClipboardService's "pasted from clipboard" warning toast changes from LENGTH_SHORT to LENGTH_LONG, so apps can no longer delay system toasts by filling the queue.

Root cause

In NotificationManagerService's toast enqueue path (inside synchronized (mToastQueue)), every new ToastRecord was appended with mToastQueue.add(record) and index = mToastQueue.size() - 1, whatever the value of isSystemToast. Within this block, the only cap on queue entries was the per-package MAX_PACKAGE_TOASTS. A non-system package could queue up to MAX_PACKAGE_TOASTS toasts, and any system toast requested later waited behind all of them. The commit also lengthens the ClipboardService paste warning toast, which used Toast.LENGTH_SHORT.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to May 2024 · Findings