CVE-2021-21779
NixOS vulnerability analysis and mitigation

Overview

A use-after-free vulnerability was discovered in WebKit's GraphicsContext handling of certain events in WebKitGTK 2.30.4. The vulnerability was identified and reported by Marcin Towalski of Cisco Talos, and was assigned CVE-2021-21779. The issue was disclosed in July 2021 and affected WebKitGTK and WPE WebKit versions before 2.32.3 (Talos Report, OSS Security).

Technical details

The vulnerability exists in how WebKit's GraphicsContext handles function fillText. The issue occurs when processing height attribute changes in HTMLCanvasElement objects. When a canvas element's height is modified through an eventchangeheight, the previous allocation is freed but subsequent calls to fillGradient() attempt to access the freed memory ranges. This creates a use-after-free condition that could be exploited with proper memory layout control and heap grooming. The vulnerability has been assigned a CVSS v3 score of 6.8 (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 could lead to potential information leaks and further memory corruption. The impact requires user interaction as a victim must be tricked into visiting a malicious webpage to trigger the vulnerability (OSS Security, Debian Security).

Mitigation and workarounds

The vulnerability was patched in WebKitGTK and WPE WebKit version 2.32.3. Users and administrators are strongly recommended to upgrade to this version or later. The fix was also backported to various Linux distributions including Debian (version 2.32.3-1~deb10u1) and Fedora (version 2.32.3-1.fc33/34) (Debian Security, 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-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