CVE-2024-41965: neovim Use After Free
Vulnerability summary
CVE-2024-41965 is a medium (CVSS 4.2) Use After Free vulnerability in neovim. EPSS estimates a 0.33% chance of exploitation in the next 30 days, higher than 24.6% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 3 · Related 4Timeline
- 01-08-2024PublishedVulnerability first disclosed.
- 15-11-2024Last modifiedVulnerability information updated.
Description
Vim is an open source command line text editor. double-free in dialog_changed() in Vim < v9.1.0648. When abandoning a buffer, Vim may ask the user what to do with the modified buffer. If the user wants the changed buffer to be saved, Vim may create a new Untitled file, if the buffer did not have a name yet. However, when setting the buffer name to Unnamed, Vim will falsely free a pointer twice, leading to a double-free and possibly later to a heap-use-after-free, which can lead to a crash. The issue has been fixed as of Vim patch v9.1.0648.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · AlpineEcosystem advisory · calculated4.2MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L
- OSV · DebianEcosystem advisory · calculated4.2MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L
- NVDNIST4.2MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L
EPSS trend
Probability
0.33%
Chance of exploitation in the next 30 days
Percentile
25%
Versus all other CVEs
30-day change
0.00 pp
From 0.33% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-416Use After FreeThe product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.
- CWE-415Double FreeThe product calls free() twice on the same memory address.
Affected systems
Alpine1 product
- vim< 9.1.0652-r0
Debian1 product
- vimAll versions (No fix recorded) | < 2:9.1.0698-1
Neovim1 product
- neovim≥ 0.10.0, < 0.10.2
Netapp1 product
Vim1 product
- vim< 9.1.0648
5 vendors · 5 products
References
6 links- security.netapp.com/advisory/ntap-20241115-0002/Vendor Advisory