Android security tags, read closely by Lightrion

CVE-2026-59004 AI-generated analysis

platform/frameworks/base, PackageManager icon loading / android.content.res Resources drawable decoding

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

Adds a hidden capped drawable-loading path (Resources.getDrawableForDensityCapped / PackageManager.getDrawableInternal) that downsamples bitmap icons, logos and banners to at most 2048 px per side when they are loaded through PackageManager, LauncherActivityInfo and LauncherApps. It also partitions the ResourcesImpl drawable cache so capped and uncapped loads do not share an entry there.

Root cause

ApplicationPackageManager.getDrawable loaded any package's icon/logo/banner resource with r.getDrawable(resId, null), which decodes the bitmap at its full intrinsic size. PackageItemInfo.loadBanner/loadLogo, ResolveInfo.loadIcon, LabeledIntent.loadIcon, ApplicationPackageManager.loadUnbadgedItemIcon, LauncherActivityInfo.getIcon and LauncherApps.loadDrawableResourceFromPackage all went through this path or through Resources.getDrawableForDensity, with no size limit. Per the commit message, an app that declares an excessively large icon (e.g. 8000 x 8000 px) makes the loading process (e.g. Settings or Launcher) hit a RuntimeException ("trying to draw too large bitmap") when drawing on a hardware-accelerated canvas, or run out of memory (OOM), persistently crashing the system UI.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2026 · Findings