
Cloud Vulnerability DB
A community-led vulnerabilities database
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).
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).
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).
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).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."