CVE-2021-29945
NixOS vulnerability analysis and mitigation

Overview

CVE-2021-29945 is a vulnerability in Mozilla Firefox's WebAssembly JIT compiler that was discovered and disclosed in April 2021. The vulnerability affects Firefox ESR < 78.10, Thunderbird < 78.10, and Firefox < 88, specifically on x86-32 platforms. The issue involves incorrect size computation in the WebAssembly JIT compiler that could lead to null-reads (Mozilla Advisory, NVD).

Technical details

The vulnerability stems from a miscalculation in the WebAssembly JIT compiler where it incorrectly computes the size of a return type. Specifically, on x86-32 platforms, the compiler allocates insufficient space for float32 multi-value returns, leading to potential stack corruption. The issue occurs when the JIT compiler miscalculates the area size computation, resulting in a byteSize of 4 when it should be larger. This vulnerability has a CVSS v3.1 Base Score of 6.5 (Medium) with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H (NVD).

Impact

The vulnerability's impact is primarily limited to causing crashes through null-reads when specific WebAssembly code is executed. The issue only affects x86-32 platforms, with other platforms remaining unaffected. While the vulnerability could potentially be used to access memory through spoofed null pointers with large offsets, exploitation is considered difficult and unlikely (Mozilla Bug).

Mitigation and workarounds

Mozilla addressed this vulnerability by releasing patches in Firefox 88, Firefox ESR 78.10, and Thunderbird 78.10. The fix involved correcting the area size computation in the WebAssembly JIT compiler to properly handle float32 return values (Mozilla Advisory, 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-12819HIGH8.1
  • NixOSNixOS
  • pgbouncer
NoYesDec 03, 2025
CVE-2025-20777MEDIUM6.7
  • NixOSNixOS
  • android
NoNoDec 02, 2025
CVE-2025-65105MEDIUM5.3
  • NixOSNixOS
  • apptainer
NoYesDec 02, 2025
CVE-2025-20789MEDIUM4.4
  • NixOSNixOS
  • android
NoNoDec 02, 2025
CVE-2025-20788MEDIUM4.4
  • NixOSNixOS
  • android
NoNoDec 02, 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