In ClearPullerCacheIfNecessary and ForceClearPullerCache of StatsPullerManager.cpp, there is a possible use-after-free due to a race condition. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation.
{
"types": [
"EoP"
],
"severity": "High",
"fixes": [
"https://android.googlesource.com/platform/frameworks/base/+/c7f94ac6347aaa77f890d1b382177968d2581894"
],
"spl": "2021-04-01",
"vanir_signatures": [
{
"deprecated": false,
"target": {
"file": "cmds/statsd/src/external/StatsPullerManager.cpp"
},
"signature_type": "Line",
"digest": {
"line_hashes": [
"276421558175509511554573386608974515553",
"89344226562673292616585529776115421582",
"335376642036065395401989861899840725083",
"22243518718314057884693290828616978389",
"307824126936387981057255436007154658163",
"337111659555491520642886002911102643275",
"145432192477951541460162843433924264187",
"245617917729764275220540778554821687797"
],
"threshold": 0.9
},
"id": "ASB-A-173552790-0a935553",
"signature_version": "v1",
"source": "https://android.googlesource.com/platform/frameworks/base/+/c7f94ac6347aaa77f890d1b382177968d2581894"
},
{
"id": "ASB-A-173552790-5dbfce0f",
"target": {
"file": "cmds/statsd/src/external/StatsPullerManager.cpp",
"function": "StatsPullerManager::ClearPullerCacheIfNecessary"
},
"signature_type": "Function",
"signature_version": "v1",
"source": "https://android.googlesource.com/platform/frameworks/base/+/c7f94ac6347aaa77f890d1b382177968d2581894",
"deprecated": false,
"digest": {
"function_hash": "80816721327590360138923004711054520411",
"length": 223.0
}
},
{
"deprecated": false,
"target": {
"file": "cmds/statsd/src/external/StatsPullerManager.cpp",
"function": "StatsPullerManager::ForceClearPullerCache"
},
"signature_type": "Function",
"digest": {
"function_hash": "272798042972821718683930904450590500692",
"length": 193.0
},
"signature_version": "v1",
"source": "https://android.googlesource.com/platform/frameworks/base/+/c7f94ac6347aaa77f890d1b382177968d2581894",
"id": "ASB-A-173552790-b6e24d8e"
}
]
}