Android security tags, read closely by Lightrion

CVE-2024-0044 AI-generated analysis

platform/frameworks/base, services/core PackageManager / PackageInstallerService (session creation)

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.

PackageInstallerService session creation now rejects (nulls out) app and installer package names that are over-long or contain characters not accepted by FrameworkParsingPackageUtils.validateName, instead of only checking their length.

Root cause

In services/core/java/com/android/server/pm/PackageInstallerService.java, the session-creation path set params.appPackageName to null only if it was longer than SessionParams.MAX_PACKAGE_NAME_LENGTH, and used params.installerPackageName as requestedInstallerPackageName only if it was shorter than that limit. The separate installerPackageName argument was not validated at all. The surrounding comment says package name and label length are restricted so that really long strings aren't written to disk, but nothing checked that these strings were syntactically valid package names, so arbitrary character content could flow into the installer/app package name used by the session.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to October 2024 · Findings