CWE
416 415
Advisory Published
Updated

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

First published: Thu Aug 01 2024(Updated: )

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.

Credit: security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
SUSE Vim<9.1.0648

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • 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.

  • How do I fix CVE-2024-41965?

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

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

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

  • 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.

  • 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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203