# CVE-2024-31311: In incrementannotationcount of statsevent.c, there is a possible out of bounds write due to a missing bounds check.

- Severity: Medium 6.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.10%, higher than 0% of CVEs (2026-12-01)
- Published: 2024-07-09T20:09:15.382Z
- Modified: 2026-06-17T07:28:10.367Z
- Weaknesses: CWE-269, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: google_android

## Description

In increment_annotation_count of stats_event.c, there is a possible out of bounds write due to a missing bounds check. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation.

(As written by CVE List.)

## Affected

- Google Android: 14; 13; 12L; 12; before 12; 12.0; 12.1; 13.0; 14.0

## Every score

- CISA-ADP: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N`
- NVD: 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`

## References

- <https://android.googlesource.com/platform/packages/modules/StatsD/+/b6aab6c000ab85f4e4d8bb3941bcc33800550374> (mailing-list, patch)
- <https://source.android.com/security/bulletin/2024-06-01> (patch, vendor-advisory)

## Sources

- CVE List: [CVE-2024-31311](https://www.cve.org/CVERecord?id=CVE-2024-31311), CVE Terms of Use, modified 2024-08-02
- NVD: [CVE-2024-31311](https://nvd.nist.gov/vuln/detail/CVE-2024-31311), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-31311 · Whole record: https://cve.day/CVE-2024-31311.json · Rebuilt by cve.day 2026-11-25T22:58:42.705Z
