CVE-2021-21775
NixOS vulnerability analysis and mitigation

Overview

A use-after-free vulnerability was discovered in Webkit WebKitGTK 2.30.4, identified as CVE-2021-21775. The vulnerability exists in the way certain events are processed for ImageLoader objects. The issue was discovered by Marcin Towalski of Cisco Talos and was publicly disclosed on June 2, 2021. The vulnerability affects WebKitGTK and WPE WebKit versions before 2.32.3 (Talos Report, OSS Security).

Technical details

The vulnerability is classified as a use-after-free (CWE-416) issue that occurs when WebKit engine tries to access a stale reference to an object that has already been freed and the corresponding memory is allocated for a different one. The stale reference is retained during event handler execution because of the srcset attribute which initially tries to load the image from the wrong path. The vulnerability has a CVSS v3.0 score of 6.8 (MEDIUM) with vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L (Talos Report).

Impact

If successfully exploited, this vulnerability can lead to potential information leaks and memory corruption. With proper memory layout control and heap grooming, an attacker could potentially take control of the erroneous object reuse, which could result in information disclosure and possibly further memory corruption (Talos Report).

Mitigation and workarounds

The vulnerability was patched in WebKitGTK and WPE WebKit version 2.32.3. Users are recommended to upgrade to this version or later. The fix was distributed through various Linux distributions including Debian (version 2.32.3-1~deb10u1) and Fedora (version 2.32.3-1.fc33/34) (Debian Advisory, Fedora Update).

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-48625HIGH7
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48608MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48569MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-65799MEDIUM4.3
  • NixOSNixOS
  • memos
NoYesDec 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