CVE-2026-59000 AI-generated analysis
platform/frameworks/base, biometrics (core PromptInfo and SystemUI shared biometrics Utils)
Makes PromptInfo require the test or internal biometric permission when mClassNameIfItIsConfirmDeviceCredentialActivity is set. SystemUI now treats a client as ConfirmDeviceCredentialActivity only when two things hold: the client package is com.android.settings, and checkCallingOrSelfPermission(USE_BIOMETRIC_INTERNAL) succeeds.
Root cause
PromptInfo.requiresTestOrInternalPermission() required the test or internal permission when mRealCallerForConfirmDeviceCredentialActivity was set, but not when mClassNameIfItIsConfirmDeviceCredentialActivity was set. In SystemUI Utils.kt, isClientConfirmDeviceCredentialActivity was computed only as clientClassNameIfItIsConfirmDeviceCredentialActivity != null. Any client that set that field was therefore treated as the ConfirmDeviceCredentialActivity (CDCA) in the logic around isClientInBackgroundOrNotVisible, and nothing checked that the client was the Settings package.
How the fix works
- core/java/android/hardware/biometrics/PromptInfo.java:requiresTestOrInternalPermission(): the last branch now returns true when either mRealCallerForConfirmDeviceCredentialActivity != null or mClassNameIfItIsConfirmDeviceCredentialActivity != null. Setting the CDCA class name therefore now requires the test or internal biometric permission.
- packages/SystemUI/shared/biometrics/src/com/android/systemui/biometrics/Utils.kt: adds isSettings(context, clientPackage). It returns true only when context.checkCallingOrSelfPermission(USE_BIOMETRIC_INTERNAL) is granted and clientPackage == "com.android.settings". It mirrors the existing isSystem() helper, which checks for package "android".
- packages/SystemUI/shared/biometrics/src/com/android/systemui/biometrics/Utils.kt (the function that computes isClientConfirmDeviceCredentialActivity before calling isClientInBackgroundOrNotVisible): the flag is now clientClassNameIfItIsConfirmDeviceCredentialActivity != null && isSettings(context, clientPackage). A non-null class name alone no longer qualifies the client as CDCA.
Completeness
- Covers both layers: the framework-side permission requirement for the PromptInfo field and the SystemUI-side identity check of the client package.
- The SystemUI check relies on the hardcoded package name com.android.settings plus a checkCallingOrSelfPermission(USE_BIOMETRIC_INTERNAL) check in SystemUI's context. It does not check that the client package itself holds that permission.
- The commit message says the CDCA package check applies to SystemUI only, and that the system server Utils.isBackground does not track class names (NO_IFTTT). The commit makes no system_server change.
- requiresInternalPermission() is unchanged; the new requirement is only in requiresTestOrInternalPermission().
Behavior changes
- requiresTestOrInternalPermission() now returns true when the CDCA class name is set in PromptInfo, so such callers need the test or internal biometric permission. The material does not show where this is enforced or what error the caller gets.
- In SystemUI, a client is no longer treated as CDCA in the background/visibility evaluation just because it supplies a class name. The package must be com.android.settings and the USE_BIOMETRIC_INTERNAL calling-or-self check must pass.
Per major
- Android 14: Not affected per the bulletin. At android-security-14.0.0_r31 only 1/8 lines of the patched region are present, so the fix does not apply as-is.
- Android 15: Not listed by the bulletin. At android-security-15.0.0_r19, 7/8 lines of the patched region are present (the same count as the patched 17 tag), so the material does not show whether this code is vulnerable or already patched.
- Android 16: android-security-16.0.0_r10 is not listed by the bulletin; the bulletin lists 16-qpr2 as affected. At 16.0.0_r10, 7/8 lines of the patched region are present (the same count as the patched 17 tag). Whether the fix is present is not shown.
- Android 17: Same fix. Resolved via bug_id in android-security-17.0.0_r3 with commit 0783388b667b, cherry-picked from two internal changes (Change-Id I64189a73ba9028b67574496e4e2772387027459a).
Unknowns
- The name of the Utils.kt function containing the modified isClientConfirmDeviceCredentialActivity logic; the diff hunk header only shows 'object Utils {'.
- How callers populate mClassNameIfItIsConfirmDeviceCredentialActivity, and where requiresTestOrInternalPermission() is enforced.
- What concrete effect being treated as CDCA has on prompt behavior beyond the isClientInBackgroundOrNotVisible path visible in the diff.
- Whether 15 and 16.0 trees contain the vulnerable or the fixed code; the 7/8 line count matches the patched 17 tag and does not tell them apart.
- Why Android 15 and 16.0 are not listed by the bulletin.