4.5 CVE-2024-41957

Patch
 

Vim is an open source command line text editor. Vim < v9.1.0647 has double free in src/alloc.c:616. When closing a window, the corresponding tagstack data will be cleared and freed. However a bit later, the quickfix list belonging to that window will also be cleared and if that quickfix list points to the same tagstack data, Vim will try to free it again, resulting in a double-free/use-after-free access exception. Impact is low since the user must intentionally execute vim with several non-default flags, but it may cause a crash of Vim. The issue has been fixed as of Vim patch v9.1.0647
https://nvd.nist.gov/vuln/detail/CVE-2024-41957

Categories

CWE-415 : Double Free
When a program calls free() twice with the same argument, the program's memory management data structures become corrupted. This corruption can cause the program to crash or, in some circumstances, cause two later calls to malloc() to return the same pointer. If malloc() returns the same value twice and the program later gives the attacker control over the data that is written into this doubly-allocated memory, the program becomes vulnerable to a buffer overflow attack.

References


 

CPE

cpe start end
Configuration 1
cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:* < 9.1.0647


REMEDIATION


Patch

Url
https://github.com/vim/vim/commit/8a0bbe7b8aad6f8da28dee218c01bc8a0185a


EXPLOITS


Exploit-db.com

id description date
No known exploits

POC Github

Url
No known exploits

Other Nist (github, ...)

Url
No known exploits


CAPEC


Common Attack Pattern Enumerations and Classifications

id description severity
No entry