CVE-2024-41965: Vim < v9.1.0648 has a double-free in dialog_changed()

Published Aug 1, 2024
·
Updated

Vim < v9.1.0648 has a double-free in dialogchanged()

Other sources

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.

— MITRE

Affected Software

7 affected componentsFixes available
Microsoft azl3 vim 9.0.2190-6
Microsoft cbl2 vim 9.0.2121-5
Microsoft azl3 vim 9.0.2190-4
Microsoft cbl2 vim 9.0.2121-4
NetApp Hci Compute Node
Neovim Neovim>=0.10.0<0.10.2
vim Vim<9.1.0648

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade vim to a version that resolves this vulnerability.

    Fixed in v9.1.0648

Event History

Aug 1, 2024
CVE Published
via MITRE·09:44 PM
Data Sourced
via MITRE·09:44 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Sep 11, 2024
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
DescriptionSeverity

Frequently Asked Questions

1

What is the severity of CVE-2024-41965?

CVE-2024-41965 has a medium severity rating due to the potential for a double-free vulnerability that could lead to application crashes.

2

How do I fix CVE-2024-41965?

To fix CVE-2024-41965, update Vim to version 9.1.0648 or later.

3

What versions of Vim are affected by CVE-2024-41965?

Vim versions before 9.1.0648 are affected by CVE-2024-41965.

4

What could happen if I don't address CVE-2024-41965?

If CVE-2024-41965 is not addressed, it may lead to crashes or data loss when managing modified buffers.

5

Is CVE-2024-41965 a remote exploitation risk?

CVE-2024-41965 does not have a direct remote exploitation risk but may affect user experience when editing files.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203