CVE-2021-0318

HIGH

Android -<9,8.1,10,11 - Use After Free

Title source: llm
STIX 2.1

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.

Exploits (1)

nomisec WORKING POC
by nanopathi · poc
https://github.com/nanopathi/frameworks_native_AOSP10_r33_CVE-2021-0318

References (1)

Core 1
Core References
Vendor Advisory x_refsource_confirm
https://source.android.com/security/bulletin/2021-01-01

Scores

CVSS v3 7.8
EPSS 0.0001
EPSS Percentile 3.0%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-416 CWE-787
Status published
Products (4)
google/android 8.1
google/android 9.0
google/android 10.0
google/android 11.0
Published Jan 11, 2021
Tracked Since Feb 18, 2026