CVE-2024-4771
NixOS vulnerability analysis and mitigation

Overview

A memory allocation check vulnerability (CVE-2024-4771) was discovered in Firefox versions prior to 126. The vulnerability was reported by Irvan Kurniawan and disclosed on May 14, 2024. This security flaw affects the Firefox web browser's memory handling system (Mozilla Advisory, NVD).

Technical details

The vulnerability stems from a missing memory allocation check which could lead to a use-after-free condition if the allocation failed. The issue specifically involves the hb_blob_create_or_fail function where, when the hb_object_create calloc returns nullptr and the user_data is freed, the user_data could be reused by ForgetHashEntry code. The vulnerability has been assigned a CVSS v3.1 base score of 8.6 (High) with vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H (NVD).

Impact

If exploited, this vulnerability could trigger a crash or potentially be leveraged to achieve code execution. However, the real-world risk is considered relatively low as the allocation involved is only 48 bytes, and exploitation would require the system to be on the edge of memory exhaustion (Mozilla Bug).

Exploitability

The vulnerability is classified as moderately difficult to exploit. While it could potentially lead to code execution, the exploitation conditions are specific and challenging to achieve. The issue requires reaching a particular small-allocation failure without triggering an out-of-memory crash in the process (Mozilla Advisory).

Mitigation and workarounds

The vulnerability has been fixed in Firefox version 126. The fix involves ensuring that the mSharedBlobData pointer is cleared in the failure case. Users are advised to upgrade to Firefox 126 or later versions to protect against this 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-2026-18713HIGH8.8
  • NixOS logoNixOS
  • i
NoNoAug 12, 2026
CVE-2026-18669HIGH8.8
  • NixOS logoNixOS
  • i
NoNoAug 12, 2026
CVE-2026-18235HIGH8.3
  • NixOS logoNixOS
  • i
NoNoAug 12, 2026
CVE-2026-17420MEDIUM6.3
  • NixOS logoNixOS
  • i
NoNoAug 12, 2026
CVE-2026-18250MEDIUM5
  • NixOS logoNixOS
  • i
NoNoAug 12, 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