CVE-2022-40961
NixOS vulnerability analysis and mitigation

Overview

CVE-2022-40961 is a stack-buffer overflow vulnerability discovered in Firefox for Android. The vulnerability was identified by the Mozilla Fuzzing Team and fixed in Firefox version 105. During startup, a graphics driver with an unexpected name could trigger a stack-buffer overflow, potentially leading to an exploitable crash. This security issue specifically affects Firefox for Android, while other operating systems remain unaffected (Mozilla Advisory, NVD).

Technical details

The vulnerability occurs in the SplitDriverVersion function when processing graphics driver version strings. The function expects an input string with four dot-separated numbers, but on Android devices, it typically receives only one or two numbers. When mOsVersion is formatted like "7.0", the function sets variables 'a' and 'b' to "7" and "0" respectively, but leaves 'c' and 'd' uninitialized. This leads to a buffer overflow during the atoi operation due to missing null-termination (Mozilla Bug). The vulnerability has been assigned a CVSS v3.1 base score of 6.5 (Medium), with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H (NVD).

Impact

The vulnerability could result in a potentially exploitable crash of Firefox for Android during the startup process. While the impact is limited to Android devices, it represents a significant reliability issue as it affects the browser's initialization phase (Mozilla Advisory).

Mitigation and workarounds

The vulnerability was fixed in Firefox version 105 by modifying the SplitDriverVersion function to properly null-terminate unused output strings. Users should update to Firefox 105 or later to receive the security fix (Mozilla Advisory).

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-14330CRITICAL9.8
  • NixOSNixOS
  • rhel10::firefox-flatpak
NoYesDec 09, 2025
CVE-2025-14329HIGH8.8
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesDec 09, 2025
CVE-2025-14333HIGH8.1
  • NixOSNixOS
  • firefox
NoYesDec 09, 2025
CVE-2025-14332HIGH7.3
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesDec 09, 2025
CVE-2025-14331MEDIUM6.5
  • NixOSNixOS
  • rhel10::thunderbird-flatpak
NoYesDec 09, 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