cve/2024/CVE-2024-41965.md
2024-08-09 18:54:21 +00:00

18 lines
1.1 KiB
Markdown

### [CVE-2024-41965](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-41965)
![](https://img.shields.io/static/v1?label=Product&message=vim&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=%3D%20%3C%209.1.0648%20&color=brighgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-416%3A%20Use%20After%20Free&color=brighgreen)
### 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.
### POC
#### Reference
- https://github.com/vim/vim/security/advisories/GHSA-46pw-v7qw-xc2f
#### Github
- https://github.com/fkie-cad/nvd-json-data-feeds