In mPreference of DefaultUsbConfigurationPreferenceController.java, there is a possible way to enable file transfer mode due to a logic error in the code. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation.
{
"severity": "High",
"fixes": [
"https://android.googlesource.com/platform/packages/apps/Settings/+/bc4fd99ddb494683420264e6b749a5ce80df90b9"
],
"spl": "2022-05-01",
"vanir_signatures": [
{
"signature_version": "v1",
"source": "https://android.googlesource.com/platform/packages/apps/Settings/+/bc4fd99ddb494683420264e6b749a5ce80df90b9",
"target": {
"file": "src/com/android/settings/development/DefaultUsbConfigurationPreferenceController.java"
},
"deprecated": false,
"digest": {
"line_hashes": [
"269000646542653133433909161555740386565",
"43482998367376727680784956912593674371",
"236455026308499776578908432686746510495",
"317724519149780133557954008909528023486",
"180682668245384026634125892500330854668",
"83468660674728779597516850668314457265",
"52694094828578153072580169540511824369",
"101494893408651096301918374572950981811"
],
"threshold": 0.9
},
"signature_type": "Line",
"id": "ASB-A-205996517-c5476f70"
}
],
"types": [
"EoP"
]
}
{
"severity": "High",
"fixes": [
"https://android.googlesource.com/platform/packages/apps/Settings/+/bc4fd99ddb494683420264e6b749a5ce80df90b9"
],
"spl": "2022-05-01",
"vanir_signatures": [
{
"signature_version": "v1",
"source": "https://android.googlesource.com/platform/packages/apps/Settings/+/bc4fd99ddb494683420264e6b749a5ce80df90b9",
"target": {
"file": "src/com/android/settings/development/DefaultUsbConfigurationPreferenceController.java"
},
"deprecated": false,
"digest": {
"line_hashes": [
"269000646542653133433909161555740386565",
"43482998367376727680784956912593674371",
"236455026308499776578908432686746510495",
"317724519149780133557954008909528023486",
"180682668245384026634125892500330854668",
"83468660674728779597516850668314457265",
"52694094828578153072580169540511824369",
"101494893408651096301918374572950981811"
],
"threshold": 0.9
},
"signature_type": "Line",
"id": "ASB-A-205996517-19fa7b87"
}
],
"types": [
"EoP"
]
}