Every CVE Search/ Get API key

CVE-2021-0318

In appendEventsToCacheLocked of SensorEventConnection.cpp, there is a possible out of bounds...

7.8 HighPublic exploitFix available

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

0.27%Up 0.1 points since Apr 14, 2021
90%50%10%1%

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 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
7.2 HighAV: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

Affected packages
PackageAffectedFixed
platform/frameworks/native
Android
8.1:0 up to 8.1:2021-01-01, plus listed versions
8.1
8.1:2021-01-01
platform/frameworks/native
Android
9:0 up to 9:2021-01-01, plus listed versions
9
9:2021-01-01
platform/frameworks/native
Android
10:0 up to 10:2021-01-01, plus listed versions
10
10:2021-01-01
platform/frameworks/native
Android
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.

Public exploits
SourceLinkDate
PoC in GitHubnanopathi/frameworks_native_AOSP10_r33_CVE-2021-03182022-04-23

History

History
WhenChangedSources
2026-11-03aliasesEUVD
2026-11-02createdCVE List, GitHub Advisories, NVD, OSV, PoC in GitHub

References

MoveEnter Open