Android security tags, read closely by Lightrion

CVE-2023-40106 AI-generated analysis

platform/frameworks/base, Notification / NotificationManagerService

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

Replaces Notification.setAllowlistToken(null) with a new clearAllowlistToken() that also nulls the allowlist token on the nested publicVersion Notification before NotificationManagerService returns an app's own notifications to it.

Root cause

NotificationManagerService.sanitizeSbn clones a Notification and calls setAllowlistToken(null) so that an app retrieving its own notifications does not get back the background allowlist token (the commit message says this token lets the app fire its own PendingIntent to launch activities from the background). The Notification.publicVersion field is itself a Notification carrying its own mAllowlistToken, and that nested token was left intact in the returned object.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2023 · Findings