CVE-2024-31311
NixOS vulnerability analysis and mitigation

Overview

CVE-2024-31311 is a vulnerability discovered in the Android operating system's StatsD module, specifically in the incrementannotationcount function of stats_event.c. The vulnerability was disclosed on July 9, 2024, affecting Android versions 12.0, 12.1, 13.0, and 14.0. This security flaw stems from a missing bounds check that could potentially lead to an out-of-bounds write condition (NVD).

Technical details

The vulnerability exists in the incrementannotationcount function within the stats_event.c file of Android's StatsD module. It is characterized by a missing bounds check that could result in an out-of-bounds write condition. The severity of this vulnerability has been assessed with a CVSS v3.1 base score of 7.8 (High), with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. The vulnerability has been classified under CWE-787 (Out-of-bounds Write) (NVD).

Impact

The vulnerability can lead to local escalation of privilege on affected Android devices. No additional execution privileges are required for exploitation, and user interaction is not needed. This could potentially allow an attacker to gain elevated privileges on the system, compromising the security of the device (NVD).

Mitigation and workarounds

Google has addressed this vulnerability through a patch that adds validation for adding new data into StatsEvent. The fix has been implemented in the Android codebase and is available through the June 2024 security patch (Android Patch).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-48606HIGH7.8
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48625HIGH7
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48608MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48569MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-65799MEDIUM4.3
  • NixOSNixOS
  • memos
NoYesDec 08, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management