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.
{
"fixes": [
"https://android.googlesource.com/platform/frameworks/base/+/b5efdf729385cc54f225496d3ba20f1cb5b68250"
],
"severity": "High",
"spl": "2022-03-01",
"vanir_signatures": [
{
"deprecated": false,
"signature_version": "v1",
"id": "ASB-A-209607944-1b7de7b1",
"digest": {
"length": 2875.0,
"function_hash": "94524235830584211206340425791519696711"
},
"source": "https://android.googlesource.com/platform/frameworks/base/+/b5efdf729385cc54f225496d3ba20f1cb5b68250",
"signature_type": "Function",
"target": {
"file": "services/core/java/com/android/server/pm/permission/BasePermission.java",
"function": "createOrUpdate"
}
},
{
"deprecated": false,
"signature_version": "v1",
"id": "ASB-A-209607944-9d0a1caf",
"digest": {
"line_hashes": [
"57342287839929444362827475414851470507",
"302858792421749903532985804466077698487",
"233655310777596817989740401202875441725",
"62456619360846887075924605094667825001"
],
"threshold": 0.9
},
"source": "https://android.googlesource.com/platform/frameworks/base/+/b5efdf729385cc54f225496d3ba20f1cb5b68250",
"signature_type": "Line",
"target": {
"file": "services/core/java/com/android/server/pm/permission/BasePermission.java"
}
}
],
"types": [
"EoP"
]
}