In onBindViewHolder of AppSwitchPreference.java, there is a possible bypass of device admin setttings due to unclear UI. This could lead to local escalation of privilege with User execution privileges needed. User interaction is needed for exploitation.
{
"vanir_signatures": [
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"159759314869150828135533413377244572893",
"296924473972724144855395304703216420406",
"272896680878176703335280775311208278755",
"305759227034993522462875475534594153979"
]
},
"deprecated": false,
"target": {
"file": "src/com/android/settings/applications/specialaccess/deviceadmin/DeviceAdminListPreferenceController.java"
},
"id": "PUB-A-169936038-0ae4c5c3",
"signature_version": "v1",
"source": "https://android.googlesource.com/platform/packages/apps/Settings/+/f7ae52bed633d407767e54e6f72bd03e636d441f",
"signature_type": "Line"
},
{
"digest": {
"function_hash": "130033121631613249146703716424997567582",
"length": 595.0
},
"deprecated": false,
"target": {
"function": "bindPreference",
"file": "src/com/android/settings/applications/specialaccess/deviceadmin/DeviceAdminListPreferenceController.java"
},
"id": "PUB-A-169936038-bcb029ce",
"signature_version": "v1",
"source": "https://android.googlesource.com/platform/packages/apps/Settings/+/f7ae52bed633d407767e54e6f72bd03e636d441f",
"signature_type": "Function"
}
],
"severity": "Moderate",
"types": [
"EoP"
],
"spl": "2021-06-01",
"fixes": [
"https://android.googlesource.com/platform/packages/apps/Settings/+/f7ae52bed633d407767e54e6f72bd03e636d441f"
]
}