In sanitizeSbn of NotificationManagerService.java, there is a possible way to keep service running in foreground and keep granted permissions due to Bypass of Background Service Restrictions. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation.
{
"vanir_signatures": [
{
"digest": {
"length": 481.0,
"function_hash": "129250324374518207856791093571407910633"
},
"deprecated": false,
"signature_type": "Function",
"id": "ASB-A-185388103-31c1dbc3",
"signature_version": "v1",
"source": "https://android.googlesource.com/platform/frameworks/base/+/5fbeff59df3ea1441c3843aa1834616876ef1985",
"target": {
"function": "sanitizeSbn",
"file": "services/core/java/com/android/server/notification/NotificationManagerService.java"
}
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"260064964664509925507457788170373554312",
"269656193381146895023300407932068489788",
"321636917718518938470445409394647757083"
]
},
"deprecated": false,
"signature_type": "Line",
"target": {
"file": "core/java/android/app/Notification.java"
},
"signature_version": "v1",
"source": "https://android.googlesource.com/platform/frameworks/base/+/5fbeff59df3ea1441c3843aa1834616876ef1985",
"id": "ASB-A-185388103-499b92dd"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"81855488838477469179496458719629537308",
"14709484016280441089291033526149403860",
"115266411417733228463612026026332734468",
"93277395173377804051250675227520262242",
"251849273066466898884700983092081481348",
"286942952937526398439648102069131187007",
"140928927599591441175299291746994664276",
"134213782391794968706503425816496704006",
"118645373760215142617774357350071115069",
"56763815027739642353879737109065787931",
"49555328781797856484789641594507537348"
]
},
"deprecated": false,
"signature_type": "Line",
"id": "ASB-A-185388103-e9b3c3b4",
"signature_version": "v1",
"source": "https://android.googlesource.com/platform/frameworks/base/+/5fbeff59df3ea1441c3843aa1834616876ef1985",
"target": {
"file": "services/core/java/com/android/server/notification/NotificationManagerService.java"
}
}
],
"severity": "High",
"spl": "2021-10-01",
"fixes": [
"https://android.googlesource.com/platform/frameworks/base/+/5fbeff59df3ea1441c3843aa1834616876ef1985"
],
"types": [
"Unknown",
"EoP"
]
}
{
"types": [
"EoP"
],
"severity": "High",
"spl": "2021-10-01",
"fixes": [
"https://android.googlesource.com/platform/frameworks/base/+/14c1c7b4a732c517ba18f5dd0598adb9f3b72221"
],
"vanir_signatures": [
{
"digest": {
"length": 481.0,
"function_hash": "129250324374518207856791093571407910633"
},
"deprecated": false,
"signature_type": "Function",
"id": "ASB-A-185388103-50406882",
"signature_version": "v1",
"source": "https://android.googlesource.com/platform/frameworks/base/+/14c1c7b4a732c517ba18f5dd0598adb9f3b72221",
"target": {
"function": "sanitizeSbn",
"file": "services/core/java/com/android/server/notification/NotificationManagerService.java"
}
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"81855488838477469179496458719629537308",
"14709484016280441089291033526149403860",
"115266411417733228463612026026332734468",
"93277395173377804051250675227520262242",
"251849273066466898884700983092081481348",
"286942952937526398439648102069131187007",
"140928927599591441175299291746994664276",
"134213782391794968706503425816496704006",
"118645373760215142617774357350071115069",
"56763815027739642353879737109065787931",
"49555328781797856484789641594507537348"
]
},
"deprecated": false,
"signature_type": "Line",
"target": {
"file": "services/core/java/com/android/server/notification/NotificationManagerService.java"
},
"source": "https://android.googlesource.com/platform/frameworks/base/+/14c1c7b4a732c517ba18f5dd0598adb9f3b72221",
"id": "ASB-A-185388103-99fd5c4d",
"signature_version": "v1"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"260064964664509925507457788170373554312",
"269656193381146895023300407932068489788",
"321636917718518938470445409394647757083"
]
},
"deprecated": false,
"signature_type": "Line",
"target": {
"file": "core/java/android/app/Notification.java"
},
"signature_version": "v1",
"source": "https://android.googlesource.com/platform/frameworks/base/+/14c1c7b4a732c517ba18f5dd0598adb9f3b72221",
"id": "ASB-A-185388103-d6f410f2"
}
]
}
{
"vanir_signatures": [
{
"digest": {
"length": 481.0,
"function_hash": "129250324374518207856791093571407910633"
},
"deprecated": false,
"signature_type": "Function",
"id": "ASB-A-185388103-16c2edfb",
"signature_version": "v1",
"source": "https://android.googlesource.com/platform/frameworks/base/+/14c1c7b4a732c517ba18f5dd0598adb9f3b72221",
"target": {
"function": "sanitizeSbn",
"file": "services/core/java/com/android/server/notification/NotificationManagerService.java"
}
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"260064964664509925507457788170373554312",
"269656193381146895023300407932068489788",
"321636917718518938470445409394647757083"
]
},
"deprecated": false,
"signature_type": "Line",
"target": {
"file": "core/java/android/app/Notification.java"
},
"signature_version": "v1",
"id": "ASB-A-185388103-f351951d",
"source": "https://android.googlesource.com/platform/frameworks/base/+/14c1c7b4a732c517ba18f5dd0598adb9f3b72221"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"81855488838477469179496458719629537308",
"14709484016280441089291033526149403860",
"115266411417733228463612026026332734468",
"93277395173377804051250675227520262242",
"251849273066466898884700983092081481348",
"286942952937526398439648102069131187007",
"140928927599591441175299291746994664276",
"134213782391794968706503425816496704006",
"118645373760215142617774357350071115069",
"56763815027739642353879737109065787931",
"49555328781797856484789641594507537348"
]
},
"deprecated": false,
"signature_type": "Line",
"id": "ASB-A-185388103-f3a0daea",
"signature_version": "v1",
"source": "https://android.googlesource.com/platform/frameworks/base/+/14c1c7b4a732c517ba18f5dd0598adb9f3b72221",
"target": {
"file": "services/core/java/com/android/server/notification/NotificationManagerService.java"
}
}
],
"severity": "High",
"spl": "2021-10-01",
"fixes": [
"https://android.googlesource.com/platform/frameworks/base/+/14c1c7b4a732c517ba18f5dd0598adb9f3b72221"
],
"types": [
"EoP"
]
}
{
"vanir_signatures": [
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"81855488838477469179496458719629537308",
"14709484016280441089291033526149403860",
"115266411417733228463612026026332734468",
"93277395173377804051250675227520262242",
"251849273066466898884700983092081481348",
"286942952937526398439648102069131187007",
"140928927599591441175299291746994664276",
"134213782391794968706503425816496704006",
"118645373760215142617774357350071115069",
"56763815027739642353879737109065787931",
"49555328781797856484789641594507537348"
]
},
"deprecated": false,
"signature_type": "Line",
"target": {
"file": "services/core/java/com/android/server/notification/NotificationManagerService.java"
},
"signature_version": "v1",
"source": "https://android.googlesource.com/platform/frameworks/base/+/5fbeff59df3ea1441c3843aa1834616876ef1985",
"id": "ASB-A-185388103-b85703a1"
},
{
"digest": {
"length": 481.0,
"function_hash": "129250324374518207856791093571407910633"
},
"deprecated": false,
"signature_type": "Function",
"target": {
"function": "sanitizeSbn",
"file": "services/core/java/com/android/server/notification/NotificationManagerService.java"
},
"signature_version": "v1",
"id": "ASB-A-185388103-d2c5baff",
"source": "https://android.googlesource.com/platform/frameworks/base/+/5fbeff59df3ea1441c3843aa1834616876ef1985"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"260064964664509925507457788170373554312",
"269656193381146895023300407932068489788",
"321636917718518938470445409394647757083"
]
},
"deprecated": false,
"signature_type": "Line",
"id": "ASB-A-185388103-e5b1495e",
"signature_version": "v1",
"source": "https://android.googlesource.com/platform/frameworks/base/+/5fbeff59df3ea1441c3843aa1834616876ef1985",
"target": {
"file": "core/java/android/app/Notification.java"
}
}
],
"severity": "High",
"spl": "2021-10-01",
"fixes": [
"https://android.googlesource.com/platform/frameworks/base/+/5fbeff59df3ea1441c3843aa1834616876ef1985"
],
"types": [
"Unknown"
]
}