CVE-2021-3974
NixOS vulnerability analysis and mitigation

Overview

CVE-2021-3974 is a Use After Free vulnerability discovered in Vim text editor. The vulnerability was disclosed on November 19, 2021, affecting multiple versions of Vim. The issue exists in the regexp_nfa.c file when using regular expressions with marks (UBUNTU, MITRE).

Technical details

The vulnerability is caused by using freed memory when handling regular expressions with marks in the regexp_nfa.c file. The issue occurs specifically when getting the mark position, as the line may have been freed before being accessed again. The vulnerability has been assigned a CVSS v3.1 base score of 7.8 (High), with the vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. The vulnerability requires local access and user interaction to be exploited (UBUNTU).

Impact

If successfully exploited, this vulnerability could lead to unauthorized access to memory after it has been freed, potentially resulting in a denial of service (application crash) or other unspecified impacts. The vulnerability affects the confidentiality, integrity, and availability of the system with high severity (DEBIAN-LTS).

Mitigation and workarounds

The vulnerability has been fixed in Vim version 8.2.3612 with the patch that ensures the line is retrieved again after getting the mark position. The fix was implemented in commit 64066b9. Multiple Linux distributions have released security updates to address this vulnerability, including Ubuntu, Debian, and Fedora (VIM-COMMIT, FEDORA-ANNOUNCE).

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-61619HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61618HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61617HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61610HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61609HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 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