ASB-A-185398942

See a problem?
Import Source
https://storage.googleapis.com/android-osv/ASB-A-185398942.json
JSON Data
https://api.osv.dev/v1/vulns/ASB-A-185398942
Aliases
  • A-185398942
  • CVE-2021-0683
Published
2021-09-01T00:00:00Z
Modified
2024-08-07T19:29:15.622193Z
Summary
3P apps can delete arbitrary system files via "am trace-ipc stop" command
Details

In runTraceIpcStop of ActivityManagerShellCommand.java, there is a possible deletion of system files due to a confused deputy. 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
8.1:0
Fixed
8.1:2021-09-01

Affected versions

8.*

8.1

Ecosystem specific

{
    "vanir_signatures": [
        {
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "105781965476234511085300441079348568065",
                    "190036311201008882940703402484923525905",
                    "53986970093291337221256272384139676263",
                    "44410977465853094606633497537384977802",
                    "97687136630214288657633975244690662903",
                    "107945595877785328795973789333103884130",
                    "32858827774743862361284710579865996165",
                    "110492990727362969964840435663249817325",
                    "307667212380040728714956557022997296055",
                    "283436336536500440725463462883604519064",
                    "215247704062558659403560468469336986633",
                    "214661742751434314922971544950815032381",
                    "258678531736647848147579739796935829851",
                    "68618729088540146300878686519071478942"
                ]
            },
            "id": "ASB-A-185398942-527d8c82",
            "source": "https://android.googlesource.com/platform/frameworks/base/+/6984eaa9f4a369228259047c2f797d022afb8f3b",
            "deprecated": false,
            "signature_version": "v1",
            "target": {
                "file": "services/core/java/com/android/server/am/ActivityManagerShellCommand.java"
            },
            "signature_type": "Line"
        },
        {
            "digest": {
                "length": 707.0,
                "function_hash": "121797594058230280719934885770811979189"
            },
            "id": "ASB-A-185398942-7b98f9be",
            "source": "https://android.googlesource.com/platform/frameworks/base/+/6984eaa9f4a369228259047c2f797d022afb8f3b",
            "deprecated": false,
            "signature_version": "v1",
            "target": {
                "file": "services/core/java/com/android/server/am/ActivityManagerShellCommand.java",
                "function": "runTraceIpcStop"
            },
            "signature_type": "Function"
        },
        {
            "digest": {
                "length": 1031.0,
                "function_hash": "284061722856446454669025880175422859334"
            },
            "id": "ASB-A-185398942-fb6d6b6b",
            "source": "https://android.googlesource.com/platform/frameworks/base/+/6984eaa9f4a369228259047c2f797d022afb8f3b",
            "deprecated": false,
            "signature_version": "v1",
            "target": {
                "file": "services/core/java/com/android/server/am/ActivityManagerShellCommand.java",
                "function": "runDumpHeap"
            },
            "signature_type": "Function"
        }
    ],
    "fixes": [
        "https://android.googlesource.com/platform/frameworks/base/+/6984eaa9f4a369228259047c2f797d022afb8f3b"
    ],
    "spl": "2021-09-01",
    "severity": "High",
    "types": [
        "EoP"
    ]
}

Android / platform/frameworks/base

Affected ranges

Type
ECOSYSTEM
Events
Introduced
9:0
Fixed
9:2021-09-01

Affected versions

Other

9

Ecosystem specific

{
    "vanir_signatures": [
        {
            "digest": {
                "length": 713.0,
                "function_hash": "219446689576170789916761395038483023231"
            },
            "id": "ASB-A-185398942-50db1b27",
            "source": "https://android.googlesource.com/platform/frameworks/base/+/4c0b9a5fbdcd06df8844affd1253a734aaa27392",
            "deprecated": false,
            "signature_version": "v1",
            "target": {
                "file": "services/core/java/com/android/server/am/ActivityManagerShellCommand.java",
                "function": "runTraceIpcStop"
            },
            "signature_type": "Function"
        },
        {
            "digest": {
                "length": 1037.0,
                "function_hash": "166861075445689166045572322354845827662"
            },
            "id": "ASB-A-185398942-77c2a119",
            "source": "https://android.googlesource.com/platform/frameworks/base/+/4c0b9a5fbdcd06df8844affd1253a734aaa27392",
            "deprecated": false,
            "signature_version": "v1",
            "target": {
                "file": "services/core/java/com/android/server/am/ActivityManagerShellCommand.java",
                "function": "runDumpHeap"
            },
            "signature_type": "Function"
        },
        {
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "301756864833933699389875512038653254603",
                    "190036311201008882940703402484923525905",
                    "53986970093291337221256272384139676263",
                    "44410977465853094606633497537384977802",
                    "97687136630214288657633975244690662903",
                    "107945595877785328795973789333103884130",
                    "35740774921100177688145547066493569913",
                    "211076223809504312418586163262711689193",
                    "132986964995661594853390182470418925904",
                    "283436336536500440725463462883604519064",
                    "215247704062558659403560468469336986633",
                    "218665152784239650828429543158831964413",
                    "198399295809620037571879488489093741398",
                    "103168210440241069599483011506180502207"
                ]
            },
            "id": "ASB-A-185398942-db6e0d4f",
            "source": "https://android.googlesource.com/platform/frameworks/base/+/4c0b9a5fbdcd06df8844affd1253a734aaa27392",
            "deprecated": false,
            "signature_version": "v1",
            "target": {
                "file": "services/core/java/com/android/server/am/ActivityManagerShellCommand.java"
            },
            "signature_type": "Line"
        }
    ],
    "fixes": [
        "https://android.googlesource.com/platform/frameworks/base/+/4c0b9a5fbdcd06df8844affd1253a734aaa27392"
    ],
    "spl": "2021-09-01",
    "severity": "High",
    "types": [
        "EoP"
    ]
}

Android / platform/frameworks/base

Affected ranges

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

Affected versions

Other

10

Ecosystem specific

{
    "vanir_signatures": [
        {
            "digest": {
                "length": 711.0,
                "function_hash": "134668538421500054805858506981720147348"
            },
            "id": "ASB-A-185398942-a7c1189c",
            "source": "https://android.googlesource.com/platform/frameworks/base/+/3555fa2f09972cb238eeeee6b0d7ed286d731989",
            "deprecated": false,
            "signature_version": "v1",
            "target": {
                "file": "services/core/java/com/android/server/am/ActivityManagerShellCommand.java",
                "function": "runTraceIpcStop"
            },
            "signature_type": "Function"
        },
        {
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "301756864833933699389875512038653254603",
                    "190036311201008882940703402484923525905",
                    "53986970093291337221256272384139676263",
                    "44410977465853094606633497537384977802",
                    "97687136630214288657633975244690662903",
                    "107945595877785328795973789333103884130",
                    "35740774921100177688145547066493569913",
                    "211076223809504312418586163262711689193",
                    "132986964995661594853390182470418925904",
                    "53300382153044086470472265701092521828",
                    "254927741200068674398929884474873270286",
                    "332742073038599585200005512309888147695",
                    "219924803452240690594680570736398528571",
                    "69993180770643367642826570116597244781",
                    "198399295809620037571879488489093741398",
                    "103168210440241069599483011506180502207",
                    "130536922999538945826085481402419475541",
                    "283715542509405723649732848297490085524",
                    "44600054439809896789909941750678427509",
                    "11937542124718842406290688089144466713"
                ]
            },
            "id": "ASB-A-185398942-ddfaf999",
            "source": "https://android.googlesource.com/platform/frameworks/base/+/3555fa2f09972cb238eeeee6b0d7ed286d731989",
            "deprecated": false,
            "signature_version": "v1",
            "target": {
                "file": "services/core/java/com/android/server/am/ActivityManagerShellCommand.java"
            },
            "signature_type": "Line"
        },
        {
            "digest": {
                "length": 1656.0,
                "function_hash": "138719729715043585607974762482160070769"
            },
            "id": "ASB-A-185398942-e3c9adde",
            "source": "https://android.googlesource.com/platform/frameworks/base/+/3555fa2f09972cb238eeeee6b0d7ed286d731989",
            "deprecated": false,
            "signature_version": "v1",
            "target": {
                "file": "services/core/java/com/android/server/am/ActivityManagerShellCommand.java",
                "function": "runDumpHeap"
            },
            "signature_type": "Function"
        }
    ],
    "fixes": [
        "https://android.googlesource.com/platform/frameworks/base/+/3555fa2f09972cb238eeeee6b0d7ed286d731989"
    ],
    "spl": "2021-09-01",
    "severity": "High",
    "types": [
        "EoP"
    ]
}

Android / platform/frameworks/base

Affected ranges

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

Affected versions

Other

11

Ecosystem specific

{
    "vanir_signatures": [
        {
            "digest": {
                "length": 1661.0,
                "function_hash": "284677995755459757779340064592353055164"
            },
            "id": "ASB-A-185398942-45282d15",
            "source": "https://android.googlesource.com/platform/frameworks/base/+/76e8e04703cb49a4984145a18f4552c4bcf72172",
            "deprecated": false,
            "signature_version": "v1",
            "target": {
                "file": "services/core/java/com/android/server/am/ActivityManagerShellCommand.java",
                "function": "runDumpHeap"
            },
            "signature_type": "Function"
        },
        {
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "85538186689281181308754390048425028014",
                    "82675702859199202907431363079583039106",
                    "53986970093291337221256272384139676263",
                    "44410977465853094606633497537384977802",
                    "97687136630214288657633975244690662903",
                    "107945595877785328795973789333103884130",
                    "35740774921100177688145547066493569913",
                    "211076223809504312418586163262711689193",
                    "132986964995661594853390182470418925904",
                    "329663651087734520370141758021984657568",
                    "4048177358164353661916530752549029547",
                    "332742073038599585200005512309888147695",
                    "219924803452240690594680570736398528571",
                    "69993180770643367642826570116597244781",
                    "198399295809620037571879488489093741398",
                    "103168210440241069599483011506180502207",
                    "130536922999538945826085481402419475541",
                    "283715542509405723649732848297490085524",
                    "44600054439809896789909941750678427509",
                    "11937542124718842406290688089144466713"
                ]
            },
            "id": "ASB-A-185398942-7c91fe1d",
            "source": "https://android.googlesource.com/platform/frameworks/base/+/76e8e04703cb49a4984145a18f4552c4bcf72172",
            "deprecated": false,
            "signature_version": "v1",
            "target": {
                "file": "services/core/java/com/android/server/am/ActivityManagerShellCommand.java"
            },
            "signature_type": "Line"
        },
        {
            "digest": {
                "length": 711.0,
                "function_hash": "134668538421500054805858506981720147348"
            },
            "id": "ASB-A-185398942-cc3d971c",
            "source": "https://android.googlesource.com/platform/frameworks/base/+/76e8e04703cb49a4984145a18f4552c4bcf72172",
            "deprecated": false,
            "signature_version": "v1",
            "target": {
                "file": "services/core/java/com/android/server/am/ActivityManagerShellCommand.java",
                "function": "runTraceIpcStop"
            },
            "signature_type": "Function"
        }
    ],
    "fixes": [
        "https://android.googlesource.com/platform/frameworks/base/+/76e8e04703cb49a4984145a18f4552c4bcf72172"
    ],
    "spl": "2021-09-01",
    "severity": "High",
    "types": [
        "EoP"
    ]
}