In onCreate of UsbPermissionActivity.java, there is a possible way to grant an app access to USB without informed user consent due to a tapjacking/overlay attack. This could lead to local escalation of privilege with User execution privileges needed. User interaction is needed for exploitation.
{
"severity": "Moderate",
"spl": "2021-12-01",
"vanir_signatures": [
{
"deprecated": false,
"digest": {
"threshold": 0.9,
"line_hashes": [
"163532671664865422384218442337373839030",
"310103082694577466317846615954586161197",
"281521133877572510902589135737756547925",
"138804174498789341152941173329259920122",
"175494018964404855900479112542516289229",
"50698346722460284117743682877130884733",
"317074890106218256720470517531320743497"
]
},
"id": "PUB-A-183610267-29983c6d",
"signature_type": "Line",
"target": {
"file": "packages/SystemUI/src/com/android/systemui/usb/UsbPermissionActivity.java"
},
"signature_version": "v1",
"source": "https://android.googlesource.com/platform/frameworks/base/+/fe59586648042e7e8e45362d4489989a938d0947"
},
{
"id": "PUB-A-183610267-b3902a49",
"signature_version": "v1",
"source": "https://android.googlesource.com/platform/frameworks/base/+/fe59586648042e7e8e45362d4489989a938d0947",
"signature_type": "Function",
"target": {
"function": "onCreate",
"file": "packages/SystemUI/src/com/android/systemui/usb/UsbPermissionActivity.java"
},
"digest": {
"function_hash": "39265625895105472026225187673510550227",
"length": 2560.0
},
"deprecated": false
}
],
"fixes": [
"https://android.googlesource.com/platform/frameworks/base/+/fe59586648042e7e8e45362d4489989a938d0947"
],
"types": [
"EoP"
]
}