{"id":"CVE-2021-0318","aliases":["A-168211968","ASB-A-168211968","EUVD-2021-2937","GHSA-526j-q77m-37w5"],"status":"published","title":"In appendEventsToCacheLocked of SensorEventConnection.cpp, there is a possible out of bounds...","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.","severity":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.00268,"percentile":0.19096,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-416","CWE-787"],"published":"2021-01-01T00:00:00Z","modified":"2026-11-05T16:32:28Z","exploits":[{"source":"pocgithub","id":"nanopathi/frameworks_native_AOSP10_r33_CVE-2021-0318","title":"nanopathi/frameworks_native_AOSP10_r33_CVE-2021-0318","date":"2022-04-23","url":"https://github.com/nanopathi/frameworks_native_AOSP10_r33_CVE-2021-0318"}],"fixes":[{"ecosystem":"Android","package":"platform/frameworks/native","fixed_in":["8.1:2021-01-01","9:2021-01-01","10:2021-01-01","11:2021-01-01"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Android","package":"platform/frameworks/native","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.1:0"},{"fixed":"8.1:2021-01-01"}]}],"versions":["8.1"]},{"source":"osv","ecosystem":"Android","package":"platform/frameworks/native","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9:0"},{"fixed":"9:2021-01-01"}]}],"versions":["9"]},{"source":"osv","ecosystem":"Android","package":"platform/frameworks/native","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"10:0"},{"fixed":"10:2021-01-01"}]}],"versions":["10"]},{"source":"osv","ecosystem":"Android","package":"platform/frameworks/native","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"11:0"},{"fixed":"11:2021-01-01"}]}],"versions":["11"]}],"products":[{"vendor":"google","product":"android"}],"references":[{"url":"https://source.android.com/security/bulletin/2021-01-01","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-0318"},{"url":"https://github.com/advisories/GHSA-526j-q77m-37w5"},{"url":"https://android.googlesource.com/platform/frameworks/native/+/adb416ac460cb28ca03e7898bdd154b1d0f8c16b","tags":["fix"]}],"sources":{"cve":[{"id":"CVE-2021-0318","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.","status":"published","published":"2021-01-11T21:47:31Z","modified":"2024-08-03T15:32:10.68Z","updated_at":"2026-11-02T14:33:10.555814Z"}],"euvd":[{"id":"EUVD-2021-2937","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.","status":"published","published":"2021-01-11T21:47:31Z","modified":"2024-08-03T15:32:10Z","updated_at":"2026-11-03T03:25:17.997367Z"}],"ghsa":[{"id":"GHSA-526j-q77m-37w5","title":"In appendEventsToCacheLocked of SensorEventConnection.cpp, there is a possible out of bounds...","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.","status":"published","published":"2022-05-24T17:38:42Z","modified":"2023-01-29T05:05:01Z","cwes":["CWE-787"],"updated_at":"2026-11-02T14:45:41.669563Z"}],"nvd":[{"id":"CVE-2021-0318","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.","status":"published","published":"2021-01-11T22:15:13.597Z","modified":"2026-06-17T03:29:47.007Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":7.2,"vector":"AV:L/AC:L/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary"}],"cwes":["CWE-416","CWE-787"],"updated_at":"2026-11-02T14:06:49.284888Z"}],"osv":[{"id":"ASB-A-168211968","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.","status":"published","published":"2021-01-01T00:00:00Z","modified":"2026-11-10T17:02:23.040266809Z","updated_at":"2026-11-10T17:35:04.393608Z"}]}}
