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

CVE-2022-2982
NixOS vulnerability analysis and mitigation

Overview

CVE-2022-2982 is a heap use-after-free vulnerability discovered in Vim's qf_fill_buffer() function within the src/quickfix.c file, affecting versions prior to 9.0.0260. The vulnerability was identified and disclosed in August 2022, impacting various distributions of the Vim text editor (NVD, CVE).

Technical details

The vulnerability occurs when Vim uses freed memory during recursive calls to the 'quickfixtextfunc' functionality. The issue specifically manifests in the qf_fill_buffer() function located in the src/quickfix.c file. The problem was addressed in version 9.0.0260 by implementing a fix that prevents recursive calls to the affected function (GitHub Commit).

Impact

When exploited, this vulnerability could lead to a program crash or potentially allow for arbitrary code execution if a user is tricked into opening a specially crafted file (Red Hat CVE).

Exploitability

The vulnerability requires user interaction, specifically through the use of the 'quickfixtextfunc' functionality in Vim. While the vulnerability has been publicly disclosed, there are no known reports of this being actively exploited in the wild (Debian Tracker).

Mitigation and workarounds

The vulnerability has been fixed in Vim version 9.0.0260 and later. Users are advised to upgrade to the patched version. Various distributions have released security updates to address this issue, including Fedora (vim-9.0.412-1.fc37) and Ubuntu (2:8.2.3995-1ubuntu2.11) (Fedora Update).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Alpine

Fixed

edge

vim: 9.0.0369-r0

Fixed

v3.18

vim: 9.0.0369-r0

Fixed

v3.19

vim: 9.0.0369-r0

Fixed

v3.20

vim: 9.0.0369-r0

Fixed

v3.21

vim: 9.0.0369-r0

Fixed

v3.22

vim: 9.0.0369-r0

Fixed

v3.23

vim: 9.0.0369-r0

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
NoNoSep 15, 2026
CVE-2026-91781LOW1.9
  • NixOS logoNixOS
  • binutils
NoNoSep 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
  • mingw32-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