Vulnerabilities · 2024 · Vim
CVE-2024-41957
Vim vulnerability
Vim is an open source command line text editor. Vim < v9.1.0647 has double free in src/alloc.c:616. When closing a window, the corresponding tagstack data will be cleared and freed. However a bit later, the quickfix list belonging to that window will also be cleared and if that quickfix list points to the same tagstack data, Vim will try to free it again, resulting in a double-free/use-after-free access exception. Impact is low since the user must intentionally execute vim with several non-default flags, but it may cause a crash of Vim. The issue has been fixed as of Vim patch v9.1.0647
Affected products
Vim. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Vim runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/vim/vim/security/advisories/GHSA-f9cr-gv85-hcr4 · Vendor Advisory
- github.com/vim/vim/commit/8a0bbe7b8aad6f8da28dee218c01bc8a0185a · Patch
- seclists.org/fulldisclosure/2024/Sep/33
- www.openwall.com/lists/oss-security/2024/08/01/1
- security.netapp.com/advisory/ntap-20241129-0007/
- nvd.nist.gov/vuln/detail/CVE-2024-41957
- cve.org/CVERecord?id=CVE-2024-41957
More vulnerabilities in Vim products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.