USN-5775-1: Vim vulnerabilities

Publication date

12 December 2022

Overview

Several security issues were fixed in Vim.

Releases


Packages

  • vim - Vi IMproved - enhanced vi editor

Details

It was discovered that Vim uses freed memory in recurisve substitution of
specially crafted patterns. An attacker could possbly use this to crash Vim
and cause denial of service. (CVE-2022-2345)

It was discovered that Vim makes illegal memory calls when patterns start
with an illegal byte. An attacker could possibly use this to crash Vim,
access or modify memory, or execute arbitrary commands. (CVE-2022-2581)

It was discovered that Vim could be made to crash when parsing invalid line
numbers. An attacker could possbly use this to crash Vim and cause denial
of service. (CVE-2022-3099)

It was discovered that Vim uses freed memory when autocmd changes a mark.
An attacker could possbly use this to crash Vim and cause denial of
service. (CVE-2022-3256)

It was discovered the...

It was discovered that Vim uses freed memory in recurisve substitution of
specially crafted patterns. An attacker could possbly use this to crash Vim
and cause denial of service. (CVE-2022-2345)

It was discovered that Vim makes illegal memory calls when patterns start
with an illegal byte. An attacker could possibly use this to crash Vim,
access or modify memory, or execute arbitrary commands. (CVE-2022-2581)

It was discovered that Vim could be made to crash when parsing invalid line
numbers. An attacker could possbly use this to crash Vim and cause denial
of service. (CVE-2022-3099)

It was discovered that Vim uses freed memory when autocmd changes a mark.
An attacker could possbly use this to crash Vim and cause denial of
service. (CVE-2022-3256)

It was discovered the Vim uses an incorrect array index when window width
is negative. A local attacker could possbly use this to crash Vim and cause
denial of service. (CVE-2022-3324)

It was discoverd that certain buffers could be sent to the wrong window. An
attacker with local access could use this to send messages to the wrong
window. (CVE-2022-3591)


Update instructions

In general, a standard system update will make all the necessary changes.

Learn more about how to get the fixes.

The problem can be corrected by updating your system to the following package versions:

Ubuntu Release Package Version
16.04 xenial vim-nox-py2 –  2:7.4.1689-3ubuntu1.5+esm14  
vim-gnome –  2:7.4.1689-3ubuntu1.5+esm14  
vim-athena-py2 –  2:7.4.1689-3ubuntu1.5+esm14  
vim-athena –  2:7.4.1689-3ubuntu1.5+esm14  
vim-gtk –  2:7.4.1689-3ubuntu1.5+esm14  
vim –  2:7.4.1689-3ubuntu1.5+esm14  
vim-gtk3-py2 –  2:7.4.1689-3ubuntu1.5+esm14  
vim-gtk-py2 –  2:7.4.1689-3ubuntu1.5+esm14  
vim-tiny –  2:7.4.1689-3ubuntu1.5+esm14  
vim-gnome-py2 –  2:7.4.1689-3ubuntu1.5+esm14  
vim-gtk3 –  2:7.4.1689-3ubuntu1.5+esm14  
vim-nox –  2:7.4.1689-3ubuntu1.5+esm14  

Reduce your security exposure

Ubuntu Pro provides ten-year security coverage to 25,000+ packages in Main and Universe repositories, and it is free for up to five machines.


Have additional questions?

Talk to a member of the team ›