vim is vulnerable to use after free. The vulnerability exists in utf_ptr2char
function in mbyte.c
because the freed memory is used when searching for pattern in path which allows an attacker to cause a memory corruption causing an application crash.
seclists.org/fulldisclosure/2022/Oct/28
seclists.org/fulldisclosure/2022/Oct/41
github.com/vim/vim/commit/409510c588b1eec1ae33511ae97a21eb8e110895
huntr.dev/bounties/949090e5-f4ea-4edf-bd79-cd98f0498a5b
lists.debian.org/debian-lts-announce/2022/06/msg00014.html
lists.debian.org/debian-lts-announce/2022/11/msg00009.html
security-tracker.debian.org/tracker/CVE-2022-1968
security.gentoo.org/glsa/202208-32
security.gentoo.org/glsa/202305-16
support.apple.com/kb/HT213488