CVE-2026-58989 AI-generated analysis
platform/frameworks/base, system_server OemLockService (services/core/java/com/android/server/oemlock)
OemLockService's OEM unlock Binder method (the one that also checks isOemUnlockAllowedByAdmin()) now throws a SecurityException when PersistentDataBlockManager.isFactoryResetProtectionActive() reports Factory Reset Protection is active, before the admin-restriction check.
Root cause
In services/core/java/com/android/server/oemlock/OemLockService.java, the Binder method that enables OEM unlocking (running under Binder.clearCallingIdentity() and checking isOemUnlockAllowedByAdmin(), i.e. the DISALLOW_FACTORY_RESET restriction on the system user) did not check whether Factory Reset Protection (FRP) was active, so OEM unlocking could be allowed on a device that was still FRP-protected.
How the fix works
- OemLockService.java: a new private helper isFactoryResetProtectionActive() obtains PersistentDataBlockManager via mContext.getSystemService(Context.PERSISTENT_DATA_BLOCK_SERVICE); if the service is null it returns false, otherwise it returns pdbm.isFactoryResetProtectionActive().
- OemLockService.java: in the OEM unlock Binder method, inside the try block after Binder.clearCallingIdentity(), the fix inserts a check before the existing isOemUnlockAllowedByAdmin() check: if isFactoryResetProtectionActive() is true, a SecurityException("OEM unlock disallowed while FRP is active") is thrown, rejecting the request before the remaining logic of the method runs.
- OemLockService.java: adds the import android.service.persistentdata.PersistentDataBlockManager. The change is a single commit touching one file.
Completeness
- The FRP check is added only to the one Binder method shown in the diff (the path that also enforces the admin DISALLOW_FACTORY_RESET restriction). No other OemLockService entry points (for example any carrier-side unlock path; MANAGE_CARRIER_OEM_UNLOCK_STATE is imported in the file) are modified by this commit; whether they need the same check is not shown by the material.
- If PersistentDataBlockManager is not available (getSystemService returns null), isFactoryResetProtectionActive() returns false and the request proceeds with only the pre-existing checks, i.e. the new check is fail-open on devices without the persistent data block service.
- The check runs after Binder.clearCallingIdentity(), so the FRP query is performed with system identity; it is ordered before the admin check, so the FRP rejection takes precedence over the admin restriction message.
Behavior changes
- Callers of the affected OEM unlock method now receive a SecurityException with message "OEM unlock disallowed while FRP is active" when FRP is active, even if the admin restriction would have permitted the operation.
- OemLockService now depends on PersistentDataBlockManager at runtime for this path (looked up per call via getSystemService).
Per major
- Android 14: not listed by the bulletin (not affected per the bulletin); the patched region (8/8 lines) is present at android-security-14.0.0_r31, but no fix commit for 14 is given in the material.
- Android 15: same fix: commit 8aaef69e960f in android-security-15.0.0_r19 (Change-Id Ia241856db2cf538a84f23de9c29dff3c645decc9, cherry-picked from 7f9bb1b5e615 and a383b8d648a4), 8/8 lines present.
- Android 16: same fix: commit 5569df3b546b in android-security-16.0.0_r10, identical diff, 8/8 lines present.
- Android 17: not listed by the bulletin; the patched region (8/8 lines) is present at android-security-17.0.0_r3.
Unknowns
- The exact name and enforced permission of the Binder method receiving the new check are not shown in the diff hunk (only its surrounding clearCallingIdentity/isOemUnlockAllowedByAdmin context), nor whether other checks precede it.
- Whether other OemLockService methods (e.g. carrier unlock paths) were addressed in separate commits is not shown.
- How the patched region came to be present on 14 (and 17) without a listed fix commit is not shown.
- The concrete trigger scenario and the reason the bulletin rates it High EoP are not described in the material beyond the commit title.