CVE-2021-0318
In appendEventsToCacheLocked of SensorEventConnection.cpp, there is a possible out of bounds...
CVE-2021-0318 is a high vulnerability (CVSS 7.8) in Google Android, published January 1, 2021. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 0.27%, the 19th percentile. Fixed in platform/frameworks/native 8.1:2021-01-01.
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.8
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.
- Record
CVE-2021-0318- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 7.2 High
AV:L/AC:L/Au:N/C:C/I:C/A:C - Weakness
- CWE-416, CWE-787
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2021-0318- Updated
- 2026-11-02
EUVDEUVD-2021-2937 No score
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.
- Record
EUVD-2021-2937- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-526j-q77m-37w5 No score
In appendEventsToCacheLocked of SensorEventConnection.cpp, there is a possible out of bounds...
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.
- Record
GHSA-526j-q77m-37w5- Weakness
- CWE-787
- Updated
- 2026-11-02
OSVASB-A-168211968 No score
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.
- Record
ASB-A-168211968- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
platform/frameworks/nativeAndroid |
8.1:0 up to 8.1:2021-01-01, plus listed versions 8.1 |
8.1:2021-01-01 |
platform/frameworks/nativeAndroid |
9:0 up to 9:2021-01-01, plus listed versions 9 |
9:2021-01-01 |
platform/frameworks/nativeAndroid |
10:0 up to 10:2021-01-01, plus listed versions 10 |
10:2021-01-01 |
platform/frameworks/nativeAndroid |
11:0 up to 11:2021-01-01, plus listed versions 11 |
11:2021-01-01 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | nanopathi/frameworks_native_AOSP10_r33_CVE-2021-0318 | 2022-04-23 |
History
| When | Changed | Sources |
|---|---|---|
| 2026-11-03 | aliases | EUVD |
| 2026-11-02 | created | CVE List, GitHub Advisories, NVD, OSV, PoC in GitHub |