Vim is an open source, command line text editor. A use-after-free was found in Vim < 9.1.0764. When closing a buffer (visible in a window) a BufWinLeave auto command can cause an use-after-free if this auto command happens to re-open the same buffer in a new split window. Impact is low since the user must have intentionally set up such a strange auto command and run some buffer unload commands. However this may lead to a crash. This issue has been addressed in version 9.1.0764 and all users are advised to upgrade. There are no known workarounds for this vulnerability.
{
"cwe_ids": [
"CWE-416"
]
}[
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"threshold": 0.9,
"line_hashes": [
"101075502189873325901811151771038698400",
"97662905960511277419423967557759896987",
"85306833463270013221841300369241064400",
"297012844111014925658579613963287217283"
]
},
"source": "https://github.com/vim/vim/commit/51b62387be93c65fa56bbabe1c3c1ea5df187641",
"id": "CVE-2024-47814-25c49f66",
"signature_version": "v1",
"target": {
"file": "src/ex_cmds.c"
}
},
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"threshold": 0.9,
"line_hashes": [
"146200493773228420153804765641940418619",
"42259909106032842605688067761934232613",
"293911296929221659536240660602500906642",
"127507315580540851491070254095327707139"
]
},
"source": "https://github.com/vim/vim/commit/51b62387be93c65fa56bbabe1c3c1ea5df187641",
"id": "CVE-2024-47814-4cc2789d",
"signature_version": "v1",
"target": {
"file": "src/version.c"
}
},
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"function_hash": "273054787672445404533720598154899315943",
"length": 11350.0
},
"source": "https://github.com/vim/vim/commit/51b62387be93c65fa56bbabe1c3c1ea5df187641",
"id": "CVE-2024-47814-b3f42e43",
"signature_version": "v1",
"target": {
"function": "do_ecmd",
"file": "src/ex_cmds.c"
}
},
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"threshold": 0.9,
"line_hashes": [
"20628506459565502597858279752628316776",
"266709981520998657341363948110378989382",
"143914877032358768809464557074412227036"
]
},
"source": "https://github.com/vim/vim/commit/51b62387be93c65fa56bbabe1c3c1ea5df187641",
"id": "CVE-2024-47814-c706b266",
"signature_version": "v1",
"target": {
"file": "src/buffer.c"
}
}
]