CVE-2022-31740
NixOS vulnerability analysis and mitigation

Overview

CVE-2022-31740 is a high-severity vulnerability discovered in Firefox's WebAssembly (WASM) implementation that affects arm64 architectures. The vulnerability was discovered by Gary Kwong and disclosed on May 31, 2022. This security flaw affects multiple Mozilla products including Firefox < 101, Firefox ESR < 91.10, and Thunderbird < 91.10 (Mozilla Advisory).

Technical details

The vulnerability stems from an incorrect assembly generation in WASM code on arm64 platforms, leading to a register allocation problem. The issue specifically involves constraints on how defineReuseInput can be combined with multi-argument operations and useRegisterAtStart. The bug manifests as an assertion failure in debug builds at jit/RegisterAllocator.cpp:270, indicating a violation of internal data structure invariants (Mozilla Bug).

Impact

The vulnerability could result in a potentially exploitable crash on arm64 systems. While the issue primarily manifests as an assertion failure in debug builds, it could potentially lead to memory corruption in release builds (Mozilla Advisory).

Mitigation and workarounds

The vulnerability was fixed in Firefox 101, Firefox ESR 91.10, and Thunderbird 91.10. The fix involves modifying how register allocation is handled for the f32.copysign WASM instruction on arm64 platforms. Users are advised to upgrade to these or later versions to mitigate the vulnerability (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-48606HIGH7.8
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48639HIGH7.3
  • 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

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