CVE-2021-0318: Android - Use After Free
- Cve: CVE-2021-0318
- Name: Android - Use After Free
- Description: In appendEventsToCacheLocked of SensorEventConnection.cpp, there is a possible out of bounds write due to a use-after-free. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation. Product: Android; Versions: Android-9, Android-8.1, Android-10, Android-11; Android ID: A-168211968.
- Impact: Local attackers can escalate privileges, potentially leading to full device compromise.
- Remediation: Update to the latest Android security patches for affected versions.
- Vulnerability type: use_after_free
- Vulnerability impact: privilege_escalation
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.8
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00268
- Epss percentile: 0.19129
- Assignee: [email protected]
- Published at: 2021-01-11T22:15:13Z
- Age in days: 2143
- Modified at: 2026-06-17T03:29:47Z
- Public exploits total: 1
- References total: 1
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-0318
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-416 | Use After Free |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/nanopathi/frameworks_native_AOSP10_r33_CVE-2021-0318 | poc-in-github | 2022-04-23 |
References
| Url | Source | Tags |
|---|---|---|
| https://source.android.com/security/bulletin/2021-01-01 | nvd | Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| google:android | = 11.0, = 10.0, = 9.0, = 8.1 | no | nvd | /v1/products/google/android |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2022-04-23
- Authentication required: yes
- Exposed hosts: 239
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports