ASB-A-185388103

See a problem?
Import Source
https://storage.googleapis.com/android-osv/ASB-A-185388103.json
JSON Data
https://api.osv.dev/v1/vulns/ASB-A-185388103
Aliases
  • A-185388103
  • CVE-2021-0705
Published
2021-10-01T00:00:00Z
Modified
2024-09-04T21:42:31Z
Summary
Abusing foreground services with invisible notifications to spy on users (v2)
Details

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.

References

Affected packages

Android / platform/frameworks/base

Affected ranges

Type
ECOSYSTEM
Events
Introduced
12-next:0
Fixed
12-next:2021-10-01

Affected versions

Other

12-next

Ecosystem specific

{
    "vanir_signatures": [
        {
            "digest": {
                "length": 481.0,
                "function_hash": "129250324374518207856791093571407910633"
            },
            "id": "ASB-A-185388103-31c1dbc3",
            "source": "https://android.googlesource.com/platform/frameworks/base/+/5fbeff59df3ea1441c3843aa1834616876ef1985",
            "deprecated": false,
            "signature_version": "v1",
            "target": {
                "file": "services/core/java/com/android/server/notification/NotificationManagerService.java",
                "function": "sanitizeSbn"
            },
            "signature_type": "Function"
        },
        {
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "260064964664509925507457788170373554312",
                    "269656193381146895023300407932068489788",
                    "321636917718518938470445409394647757083"
                ]
            },
            "id": "ASB-A-185388103-499b92dd",
            "source": "https://android.googlesource.com/platform/frameworks/base/+/5fbeff59df3ea1441c3843aa1834616876ef1985",
            "deprecated": false,
            "signature_version": "v1",
            "target": {
                "file": "core/java/android/app/Notification.java"
            },
            "signature_type": "Line"
        },
        {
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "81855488838477469179496458719629537308",
                    "14709484016280441089291033526149403860",
                    "115266411417733228463612026026332734468",
                    "93277395173377804051250675227520262242",
                    "251849273066466898884700983092081481348",
                    "286942952937526398439648102069131187007",
                    "140928927599591441175299291746994664276",
                    "134213782391794968706503425816496704006",
                    "118645373760215142617774357350071115069",
                    "56763815027739642353879737109065787931",
                    "49555328781797856484789641594507537348"
                ]
            },
            "id": "ASB-A-185388103-e9b3c3b4",
            "source": "https://android.googlesource.com/platform/frameworks/base/+/5fbeff59df3ea1441c3843aa1834616876ef1985",
            "deprecated": false,
            "signature_version": "v1",
            "target": {
                "file": "services/core/java/com/android/server/notification/NotificationManagerService.java"
            },
            "signature_type": "Line"
        }
    ],
    "fixes": [
        "https://android.googlesource.com/platform/frameworks/base/+/5fbeff59df3ea1441c3843aa1834616876ef1985"
    ],
    "spl": "2021-10-01",
    "severity": "High",
    "types": [
        "EoP",
        "Unknown"
    ]
}

Android / platform/frameworks/base

Affected ranges

Type
ECOSYSTEM
Events
Introduced
10:0
Fixed
10:2021-10-01

Affected versions

Other

10

Ecosystem specific

{
    "vanir_signatures": [
        {
            "digest": {
                "length": 481.0,
                "function_hash": "129250324374518207856791093571407910633"
            },
            "id": "ASB-A-185388103-50406882",
            "source": "https://android.googlesource.com/platform/frameworks/base/+/14c1c7b4a732c517ba18f5dd0598adb9f3b72221",
            "deprecated": false,
            "signature_version": "v1",
            "target": {
                "file": "services/core/java/com/android/server/notification/NotificationManagerService.java",
                "function": "sanitizeSbn"
            },
            "signature_type": "Function"
        },
        {
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "81855488838477469179496458719629537308",
                    "14709484016280441089291033526149403860",
                    "115266411417733228463612026026332734468",
                    "93277395173377804051250675227520262242",
                    "251849273066466898884700983092081481348",
                    "286942952937526398439648102069131187007",
                    "140928927599591441175299291746994664276",
                    "134213782391794968706503425816496704006",
                    "118645373760215142617774357350071115069",
                    "56763815027739642353879737109065787931",
                    "49555328781797856484789641594507537348"
                ]
            },
            "id": "ASB-A-185388103-99fd5c4d",
            "source": "https://android.googlesource.com/platform/frameworks/base/+/14c1c7b4a732c517ba18f5dd0598adb9f3b72221",
            "deprecated": false,
            "signature_version": "v1",
            "target": {
                "file": "services/core/java/com/android/server/notification/NotificationManagerService.java"
            },
            "signature_type": "Line"
        },
        {
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "260064964664509925507457788170373554312",
                    "269656193381146895023300407932068489788",
                    "321636917718518938470445409394647757083"
                ]
            },
            "id": "ASB-A-185388103-d6f410f2",
            "source": "https://android.googlesource.com/platform/frameworks/base/+/14c1c7b4a732c517ba18f5dd0598adb9f3b72221",
            "deprecated": false,
            "signature_version": "v1",
            "target": {
                "file": "core/java/android/app/Notification.java"
            },
            "signature_type": "Line"
        }
    ],
    "fixes": [
        "https://android.googlesource.com/platform/frameworks/base/+/14c1c7b4a732c517ba18f5dd0598adb9f3b72221"
    ],
    "spl": "2021-10-01",
    "severity": "High",
    "types": [
        "EoP"
    ]
}

Android / platform/frameworks/base

Affected ranges

Type
ECOSYSTEM
Events
Introduced
11:0
Fixed
11:2021-10-01

Affected versions

Other

11

Ecosystem specific

{
    "vanir_signatures": [
        {
            "digest": {
                "length": 481.0,
                "function_hash": "129250324374518207856791093571407910633"
            },
            "id": "ASB-A-185388103-16c2edfb",
            "source": "https://android.googlesource.com/platform/frameworks/base/+/14c1c7b4a732c517ba18f5dd0598adb9f3b72221",
            "deprecated": false,
            "signature_version": "v1",
            "target": {
                "file": "services/core/java/com/android/server/notification/NotificationManagerService.java",
                "function": "sanitizeSbn"
            },
            "signature_type": "Function"
        },
        {
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "260064964664509925507457788170373554312",
                    "269656193381146895023300407932068489788",
                    "321636917718518938470445409394647757083"
                ]
            },
            "id": "ASB-A-185388103-f351951d",
            "source": "https://android.googlesource.com/platform/frameworks/base/+/14c1c7b4a732c517ba18f5dd0598adb9f3b72221",
            "deprecated": false,
            "signature_version": "v1",
            "target": {
                "file": "core/java/android/app/Notification.java"
            },
            "signature_type": "Line"
        },
        {
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "81855488838477469179496458719629537308",
                    "14709484016280441089291033526149403860",
                    "115266411417733228463612026026332734468",
                    "93277395173377804051250675227520262242",
                    "251849273066466898884700983092081481348",
                    "286942952937526398439648102069131187007",
                    "140928927599591441175299291746994664276",
                    "134213782391794968706503425816496704006",
                    "118645373760215142617774357350071115069",
                    "56763815027739642353879737109065787931",
                    "49555328781797856484789641594507537348"
                ]
            },
            "id": "ASB-A-185388103-f3a0daea",
            "source": "https://android.googlesource.com/platform/frameworks/base/+/14c1c7b4a732c517ba18f5dd0598adb9f3b72221",
            "deprecated": false,
            "signature_version": "v1",
            "target": {
                "file": "services/core/java/com/android/server/notification/NotificationManagerService.java"
            },
            "signature_type": "Line"
        }
    ],
    "fixes": [
        "https://android.googlesource.com/platform/frameworks/base/+/14c1c7b4a732c517ba18f5dd0598adb9f3b72221"
    ],
    "spl": "2021-10-01",
    "severity": "High",
    "types": [
        "EoP"
    ]
}

Android / platform/frameworks/base

Affected ranges

Type
ECOSYSTEM
Events
Introduced
12:0
Fixed
12:2021-10-01

Affected versions

Other

12

Ecosystem specific

{
    "vanir_signatures": [
        {
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "81855488838477469179496458719629537308",
                    "14709484016280441089291033526149403860",
                    "115266411417733228463612026026332734468",
                    "93277395173377804051250675227520262242",
                    "251849273066466898884700983092081481348",
                    "286942952937526398439648102069131187007",
                    "140928927599591441175299291746994664276",
                    "134213782391794968706503425816496704006",
                    "118645373760215142617774357350071115069",
                    "56763815027739642353879737109065787931",
                    "49555328781797856484789641594507537348"
                ]
            },
            "id": "ASB-A-185388103-b85703a1",
            "source": "https://android.googlesource.com/platform/frameworks/base/+/5fbeff59df3ea1441c3843aa1834616876ef1985",
            "deprecated": false,
            "signature_version": "v1",
            "target": {
                "file": "services/core/java/com/android/server/notification/NotificationManagerService.java"
            },
            "signature_type": "Line"
        },
        {
            "digest": {
                "length": 481.0,
                "function_hash": "129250324374518207856791093571407910633"
            },
            "id": "ASB-A-185388103-d2c5baff",
            "source": "https://android.googlesource.com/platform/frameworks/base/+/5fbeff59df3ea1441c3843aa1834616876ef1985",
            "deprecated": false,
            "signature_version": "v1",
            "target": {
                "file": "services/core/java/com/android/server/notification/NotificationManagerService.java",
                "function": "sanitizeSbn"
            },
            "signature_type": "Function"
        },
        {
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "260064964664509925507457788170373554312",
                    "269656193381146895023300407932068489788",
                    "321636917718518938470445409394647757083"
                ]
            },
            "id": "ASB-A-185388103-e5b1495e",
            "source": "https://android.googlesource.com/platform/frameworks/base/+/5fbeff59df3ea1441c3843aa1834616876ef1985",
            "deprecated": false,
            "signature_version": "v1",
            "target": {
                "file": "core/java/android/app/Notification.java"
            },
            "signature_type": "Line"
        }
    ],
    "fixes": [
        "https://android.googlesource.com/platform/frameworks/base/+/5fbeff59df3ea1441c3843aa1834616876ef1985"
    ],
    "spl": "2021-10-01",
    "severity": "High",
    "types": [
        "Unknown"
    ]
}