{"id":"ASB-A-209607944","details":"In createOrUpdate of BasePermission.java, there is a possible permission bypass due to a logic error in the code. This could lead to local escalation of privilege with User execution privileges needed. User interaction is not needed for exploitation.","aliases":["A-209607944","CVE-2021-39695"],"modified":"2026-05-01T15:24:27.653932Z","published":"2022-03-01T00:00:00Z","references":[{"type":"ADVISORY","url":"https://source.android.com/security/bulletin/2022-03-01"},{"type":"FIX","url":"https://android.googlesource.com/platform/frameworks/base/+/b5efdf729385cc54f225496d3ba20f1cb5b68250"}],"affected":[{"package":{"name":"platform/frameworks/base","ecosystem":"Android"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"11:0"},{"fixed":"11:2022-03-01"}]}],"versions":["11"],"ecosystem_specific":{"severity":"High","types":["EoP"],"fixes":["https://android.googlesource.com/platform/frameworks/base/+/b5efdf729385cc54f225496d3ba20f1cb5b68250"],"vanir_signatures":[{"id":"ASB-A-209607944-1b7de7b1","target":{"file":"services/core/java/com/android/server/pm/permission/BasePermission.java","function":"createOrUpdate"},"deprecated":false,"signature_type":"Function","source":"https://android.googlesource.com/platform/frameworks/base/+/b5efdf729385cc54f225496d3ba20f1cb5b68250","signature_version":"v1","digest":{"length":2875,"function_hash":"94524235830584211206340425791519696711"}},{"id":"ASB-A-209607944-9d0a1caf","target":{"file":"services/core/java/com/android/server/pm/permission/BasePermission.java"},"deprecated":false,"signature_type":"Line","source":"https://android.googlesource.com/platform/frameworks/base/+/b5efdf729385cc54f225496d3ba20f1cb5b68250","signature_version":"v1","digest":{"threshold":0.9,"line_hashes":["57342287839929444362827475414851470507","302858792421749903532985804466077698487","233655310777596817989740401202875441725","62456619360846887075924605094667825001"]}}],"spl":"2022-03-01"},"database_specific":{"source":"https://storage.googleapis.com/android-osv/ASB-A-209607944.json"}}],"schema_version":"1.7.5"}