CVE-2023-40128
NixOS vulnerability analysis and mitigation

Overview

CVE-2023-40128 is a vulnerability discovered in several functions of xmlregexp.c within libxml2. The vulnerability was disclosed in October 2023 and affects multiple versions of Google Android OS (11.0, 12.0, 12.1, and 13.0). This heap buffer overflow vulnerability could lead to local escalation of privilege without requiring additional execution privileges or user interaction (NVD).

Technical details

The vulnerability is classified as an out-of-bounds write (CWE-787) due to a heap buffer overflow in xmlregexp.c. The severity is rated as HIGH with a CVSS v3.1 base score of 7.8 (Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H). The vulnerability affects the xmlRegGetCounter function, as identified in the patch (Android Git).

Impact

If exploited, this vulnerability could allow an attacker to achieve local escalation of privilege. The successful exploitation could lead to high impacts on confidentiality, integrity, and availability of the affected system, potentially allowing an attacker to execute arbitrary code with elevated privileges (NVD).

Mitigation and workarounds

The vulnerability has been patched in the Android October 2023 security update. Users should update their Android devices to the latest security patch level. The fix was implemented through a patch that addresses the heap buffer overflow issue in the xmlRegGetCounter function (Android Git).

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-61619HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61618HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61617HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61610HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61609HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 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