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.
{
"license": "CC-BY-4.0",
"sources": [
{
"affected": {
"vim:vim": [
"< 9.1.0648"
]
},
"database_specific": {
"status": "Analyzed"
},
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2024-41965",
"id": "CVE-2024-41965",
"imported": "2026-12-02T14:11:18.537Z",
"modified": "2026-09-17T17:59:23.527Z",
"published": "2024-08-01T22:15:29.567Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2024-41965"
},
{
"affected": {
"vim:vim": [
"< 9.1.0648"
]
},
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-39296",
"id": "EUVD-2024-39296",
"imported": "2026-12-02T14:11:20.038Z",
"modified": "2024-11-15T13:08:18Z",
"published": "2024-08-01T21:44:09Z",
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2024-39296"
}
]
}