Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

CVE-2024-4774
NixOS vulnerability analysis and mitigation

Overview

CVE-2024-4774 is a vulnerability discovered in Firefox's ShmemCharMapHashEntry() code that was susceptible to potentially undefined behavior by bypassing the move semantics for one of its data members. The vulnerability affects Firefox versions prior to 126 and was disclosed on May 14, 2024 (Mozilla Security, NVD).

Technical details

The vulnerability exists in the ShmemCharMapHashEntry class which contains a mozilla::fontlist::Pointer member that has a std::atomic. The issue arises because the class is declared with ALLOW_MEMMOVE = true, allowing nsHashtable to move it using memmove() instead of calling its move constructor/move assignment operator. Since std::atomic is not guaranteed to be trivially copyable according to the C++ Standard N4750, this operation results in undefined behavior (Mozilla Bugzilla). The vulnerability has been assigned a CVSS base score of 6.5 (Medium) with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L (Ubuntu CVE).

Impact

The impact of this vulnerability is considered low as the actual compilers used by Mozilla implement atomics as trivially copyable in practice. While the undefined behavior exists, it's unlikely to cause significant security issues in current implementations (Mozilla Bugzilla).

Exploitability

There are no known exploits of this vulnerability in the wild. The issue was primarily identified as a theoretical concern rather than a practical security threat, as noted by Mozilla security researchers (Mozilla Bugzilla).

Mitigation and workarounds

The vulnerability has been fixed in Firefox version 126. Users are advised to upgrade to Firefox 126 or later to receive the fix. The fix involves modifying the ShmemCharMapHashEntry implementation to properly handle move semantics (Mozilla Security).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

sid

firefox: 126.0-1

Fixed

SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-91782LOW1.9
  • NixOS logoNixOS
  • binutils
NoYesSep 15, 2026
CVE-2026-91781LOW1.9
  • NixOS logoNixOS
  • binutils
NoYesSep 15, 2026
CVE-2026-91780LOW1.9
  • NixOS logoNixOS
  • binutils
NoNoSep 15, 2026
CVE-2026-91779LOW1.9
  • NixOS logoNixOS
  • binutils
NoNoSep 15, 2026
CVE-2026-90831LOW1.9
  • NixOS logoNixOS
  • seal-binutils
NoYesSep 14, 2026

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