CVE-2024-41957
published 2024-08-01CVE-2024-41957: 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…
PriorityP424medium5.3CVSS 3.1
AVLACLPRNUIRSUCLILAL
EPSS
0.36%
28.9th percentile
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
23 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| apple | macos_sequoia | — | — |
| debian | vim | < vim 2:9.1.0698-1 (forky) | vim 2:9.1.0698-1 (forky) |
| msrc | azl3_vim_9.0.2190-4_on_azure_linux_3.0 | — | — |
| msrc | azl3_vim_9.0.2190-6_on_azure_linux_3.0 | — | — |
| msrc | azure_linux_3.0_arm | — | — |
| msrc | azure_linux_3.0_x64 | — | — |
| msrc | cbl2_vim_9.0.2121-4_on_cbl_mariner_2.0 | — | — |
| msrc | cbl2_vim_9.0.2121-5_on_cbl_mariner_2.0 | — | — |
| msrc | cbl_mariner_2.0_arm | — | — |
| msrc | cbl_mariner_2.0_x64 | — | — |
| vim | vim | < 9.1.0647 | 9.1.0647 |
| vim | vim | >= 0 < 9.1.0652-r0 | 9.1.0652-r0 |
| vim | vim | >= 0 < 9.1.0652-r0 | 9.1.0652-r0 |
| vim | vim | >= 0 < 9.1.0652-r0 | 9.1.0652-r0 |
| vim | vim | >= 0 < 9.1.0652-r0 | 9.1.0652-r0 |
| vim | vim | >= 0 < 2:9.1.0698-1 | 2:9.1.0698-1 |
| vim | vim | >= 0 < 2:9.1.0698-1 | 2:9.1.0698-1 |
| vim | vim | >= 0 < 2:8.1.2269-1ubuntu5.24 | 2:8.1.2269-1ubuntu5.24 |
| vim | vim | >= 0 < 2:8.2.3995-1ubuntu2.18 | 2:8.2.3995-1ubuntu2.18 |
| vim | vim | >= 0 < 2:9.1.0016-1ubuntu7.2 | 2:9.1.0016-1ubuntu7.2 |
| vim | vim | >= 0 < 2:7.4.052-1ubuntu3.1+esm18 | 2:7.4.052-1ubuntu3.1+esm18 |
| vim | vim | >= 0 < 2:7.4.1689-3ubuntu1.5+esm24 | 2:7.4.1689-3ubuntu1.5+esm24 |
| vim | vim | >= 0 < 2:8.0.1453-1ubuntu1.13+esm9 | 2:8.0.1453-1ubuntu1.13+esm9 |
CVSS provenance
nvdv3.15.3MEDIUMCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
osv5.3MEDIUM
vendor_msrc5.3MEDIUM
vendor_debian4.5LOW
vendor_redhat4.5MEDIUM
vendor_ubuntu4.5MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
vim vulnerabilities
osv·2024-09-05·CVSS 5.3
CVE-2024-41957 [MEDIUM] vim vulnerabilities
vim vulnerabilities
It was discovered that Vim incorrectly handled memory when closing a
window, leading to a double-free vulnerability. If a user was tricked
into opening a specially crafted file, an attacker could crash the
application, leading to a denial of service, or possibly achieve code
execution with user privileges. (CVE-2024-41957)
It was discovered that Vim incorrectly handled memory when adding a new
file to an argument list, leading to a use-after-free. If a user was
tricked into opening a specially crafted file, an attacker could crash
the application, leading to a denial of service. (CVE-2024-43374)
OSV
CVE-2024-41957: Vim is an open source command line text editor
osv·2024-08-01·CVSS 5.3
CVE-2024-41957 [MEDIUM] CVE-2024-41957: Vim is an open source command line text editor
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
OSV
CVE-2024-41957: Vim is an open source command line text editor
osv·2024-08-01·CVSS 5.3
CVE-2024-41957 [MEDIUM] CVE-2024-41957: Vim is an open source command line text editor
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
Apple
CVE-2024-41957: macOS Sequoia 15
vendor_apple·2024-09-16·CVSS 4.5
CVE-2024-41957 [MEDIUM] CVE-2024-41957: macOS Sequoia 15
Apple Security Update: About the security content of macOS Sequoia 15
Product: macOS Sequoia
Version: 15
CVE: CVE-2024-41957
Component: CVE-2024-41957
Ubuntu
Vim vulnerabilities
vendor_ubuntu·2024-09-05·CVSS 4.5
CVE-2024-41957 [MEDIUM] Vim vulnerabilities
Title: Vim vulnerabilities
Summary: Several security issues were fixed in Vim.
It was discovered that Vim incorrectly handled memory when closing a
window, leading to a double-free vulnerability. If a user was tricked
into opening a specially crafted file, an attacker could crash the
application, leading to a denial of service, or possibly achieve code
execution with user privileges. (CVE-2024-41957)
It was discovered that Vim incorrectly handled memory when adding a new
file to an argument list, leading to a use-after-free. If a user was
tricked into opening a specially crafted file, an attacker could crash
the application, leading to a denial of service. (CVE-2024-43374)
Instructions: In general, a standard system update will make all the necessary changes.
Microsoft
Vim double free in src/alloc.c:616
vendor_msrc·2024-08-13·CVSS 5.3
CVE-2024-41957 [MEDIUM] CWE-415 Vim double free in src/alloc.c:616
Vim double free in src/alloc.c:616
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
GitHub_M: GitHub_M
Customer Action Required: Yes
Remediation: CBL-Mariner Releases
Reference: https://learn.microsoft.com/
Red Hat
vim: Double-free/use-after-free vulnerability with Vim editor
vendor_redhat·2024-08-01·CVSS 4.5
CVE-2024-41957 [MEDIUM] CWE-415 vim: Double-free/use-after-free vulnerability with Vim editor
vim: Double-free/use-after-free vulnerability with Vim editor
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
A double-free and use-after-free vulnerability was found in the Vim editor. This flaw exists due to the corresponding tagstack being used twic
Debian
CVE-2024-41957: vim - Vim is an open source command line text editor. Vim < v9.1.0647 has double free ...
vendor_debian·2024·CVSS 4.5
CVE-2024-41957 [MEDIUM] CVE-2024-41957: vim - Vim is an open source command line text editor. Vim < v9.1.0647 has double free ...
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
Scope: local
bookworm: open
bullseye: open
forky: resolved (fixed in 2:9.1.0698-1)
sid: resolved (fixed in 2:9.1.0698-1)
trixie: resolved (fixed in 2:9.1.0698-1)
No detection rules found.
No public exploits indexed.
2024-08-01
Published