Android security tags, read closely by Lightrion

CVE-2024-23710 AI-generated analysis

platform/frameworks/base, PackageManagerService install/scan (services/core/java/com/android/server/pm/InstallPackageHelper.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 (6 corrections). Verify against the commit before relying on it.

In InstallPackageHelper, two shared-user privilege checks (assertPackageWithSharedUserIdIsPrivileged and a second scan-time block guarded by SCAN_AS_PRIVILEGED and skipVendorPrivilegeScan) now also require !pkg.isLeavingSharedUser(), so packages leaving their shared user are excluded from both.

Root cause

Two conditions in InstallPackageHelper decided shared-user privilege handling from `!AndroidPackageUtils.isPrivileged(pkg) && pkg.getSharedUserId() != null` (the second also requires `(scanFlags & SCAN_AS_PRIVILEGED) == 0` and `!skipVendorPrivilegeScan`). They did not exclude packages for which pkg.isLeavingSharedUser() is true. The commit title says the fix stops marking apps as privileged when they are not signed properly. The diff shows the change itself is the added isLeavingSharedUser() exclusion.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to April 2024 · Findings