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.
{ "vanir_signatures": [ { "digest": { "threshold": 0.9, "line_hashes": [ "163532671664865422384218442337373839030", "310103082694577466317846615954586161197", "281521133877572510902589135737756547925", "138804174498789341152941173329259920122", "175494018964404855900479112542516289229", "50698346722460284117743682877130884733", "317074890106218256720470517531320743497" ] }, "id": "PUB-A-183610267-29983c6d", "source": "https://android.googlesource.com/platform/frameworks/base/+/fe59586648042e7e8e45362d4489989a938d0947", "deprecated": false, "signature_version": "v1", "target": { "file": "packages/SystemUI/src/com/android/systemui/usb/UsbPermissionActivity.java" }, "signature_type": "Line" }, { "digest": { "length": 2560.0, "function_hash": "39265625895105472026225187673510550227" }, "id": "PUB-A-183610267-b3902a49", "source": "https://android.googlesource.com/platform/frameworks/base/+/fe59586648042e7e8e45362d4489989a938d0947", "deprecated": false, "signature_version": "v1", "target": { "file": "packages/SystemUI/src/com/android/systemui/usb/UsbPermissionActivity.java", "function": "onCreate" }, "signature_type": "Function" } ], "fixes": [ "https://android.googlesource.com/platform/frameworks/base/+/fe59586648042e7e8e45362d4489989a938d0947" ], "spl": "2021-12-01", "severity": "Moderate", "types": [ "EoP" ] }