JLSEC-2026-1833: Use After Free
Vim is an open source command line text editor. double-free in dialogchanged() 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in v9.1.0648
Event History
Frequently Asked Questions
What user interaction and local access are required for exploitation?
An attacker would need local access, low-level privileges, and user interaction. The issue is triggered during the modified-buffer abandonment workflow when Vim prompts about saving a buffer that does not yet have a name.
Which versions are affected and what version fixes the issue?
Vim versions earlier than v9.1.0648 are affected. The issue is fixed in Vim patch v9.1.0648.
What is the likely impact if the flaw is triggered?
The double-free can lead to a later heap-use-after-free. The described outcome is a crash, with confidentiality, integrity, and availability all rated as low impact.