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.
Advisories
Source ID Title
EUVD EUVD EUVD-2024-39296 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.
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Wed, 16 Jul 2025 13:45:00 +0000

Type Values Removed Values Added
Metrics epss

{'score': 0.00017}

epss

{'score': 0.00018}


Fri, 22 Nov 2024 12:00:00 +0000

Type Values Removed Values Added
References

Fri, 09 Aug 2024 14:30:00 +0000

Type Values Removed Values Added
First Time appeared Vim
Vim vim
Weaknesses CWE-415
CPEs cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*
Vendors & Products Vim
Vim vim

Wed, 07 Aug 2024 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2024-11-15T13:08:18.743Z

Reserved: 2024-07-24T16:51:40.952Z

Link: CVE-2024-41965

cve-icon Vulnrichment

Updated: 2024-11-15T13:08:18.743Z

cve-icon NVD

Status : Modified

Published: 2024-08-01T22:15:29.567

Modified: 2024-11-21T09:33:21.087

Link: CVE-2024-41965

cve-icon Redhat

Severity : Low

Publid Date: 2024-08-01T22:21:00Z

Links: CVE-2024-41965 - Bugzilla

cve-icon OpenCVE Enrichment

No data.