CVE-2023-40114
NixOS vulnerability analysis and mitigation

Overview

CVE-2023-40114 is a vulnerability discovered in multiple functions of MtpFfsHandle.cpp in Android OS. The vulnerability was disclosed in November 2023 and affects Android versions 11.0 through 14.0. It involves a possible out-of-bounds write due to a use-after-free condition that could lead to local privilege escalation (NVD, CVE).

Technical details

The vulnerability is characterized by improper memory resource management, specifically a use-after-free condition in MtpFfsHandle.cpp. It has been assigned a CVSS v3.1 base score of 7.8 (High) with the vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. The issue occurs when a data member of the MtpFfsHandle class is accessed after the class object has been freed in the fuzzer, with the accessing method running in a detached thread (Android Source).

Impact

If successfully exploited, this vulnerability could allow for local privilege escalation on affected devices. The attacker could potentially gain elevated privileges without requiring additional execution privileges, though user interaction is needed for exploitation. This could enable an attacker to install programs, view, change, or delete data, or create new accounts with full user rights (NVD).

Mitigation and workarounds

The vulnerability was addressed in the Android Security Bulletin of November 2023. The fix involves using a conditional variable with an atomic int predicate in the close() function to ensure the detached thread's execution has completed before freeing the object. Users are advised to update their Android devices to the security patch level 2023-11-05 or later (Android Source).

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-68120MEDIUM5.4
  • NixOSNixOS
  • go
NoYesDec 30, 2025
CVE-2025-69413MEDIUM5.3
  • NixOSNixOS
  • code.gitea.io/gitea
NoYesJan 01, 2026
CVE-2025-15412MEDIUM4.8
  • NixOSNixOS
  • wabt
NoNoJan 01, 2026
CVE-2025-15411MEDIUM4.8
  • NixOSNixOS
  • wabt
NoNoJan 01, 2026
CVE-2025-68932LOW2.9
  • NixOSNixOS
  • freshrss
NoYesDec 27, 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