USN-6302-1
It was discovered that Vim incorrectly handled memory when opening certain files. If an attacker could trick a user into opening a specially crafted file, it could cause Vim to crash, or possibly execute arbitrary code. This issue only affected Ubuntu 22.04 LTS. (CVE-2022-2522, CVE-2022-2580, CVE-2022-2817, CVE-2022-2819, CVE-2022-2862, CVE-2022-2889, CVE-2022-2982, CVE-2022-3134) It was discovered that Vim did not properly perform bounds checks in the diff mode in certain situations. An attacker could possibly use this issue to cause a denial of service. This issue only affected Ubuntu 18.04 LTS, Ubuntu 20.04 LTS and Ubuntu 22.04 LTS. (CVE-2022-2598) It was discovered that Vim did not properly perform bounds checks in certain situations. An attacker could possibly use this issue to cause a denial of service. This issue only affected Ubuntu 22.04 LTS. (CVE-2022-2816) It was discovered that Vim incorrectly handled memory when skipping compiled code. An attacker could possibly use this issue to cause a denial of service. This issue only affected Ubuntu 22.04 LTS. (CVE-2022-2874) It was discovered that Vim incorrectly handled memory when opening certain files. If an attacker could trick a user into opening a specially crafted file, it could cause Vim to crash, or possibly execute arbitrary code. This issue only affected Ubuntu 20.04 LTS and Ubuntu 22.04 LTS. (CVE-2022-3016, CVE-2022-3037) It was discovered that Vim incorrectly handled memory when invalid line number on ":for" is ignored. An attacker could possibly use this issue to cause a denial of service. (CVE-2022-3099) It was discovered that Vim incorrectly handled memory when passing invalid arguments to the assert_fails() method. An attacker could possibly use this issue to cause a denial of service. This issue only affected Ubuntu 22.04 LTS. (CVE-2022-3153) Update Instructions: Run `sudo pro fix USN-6302-1` to fix the vulnerability. The problem can be corrected by updating your system to the following package versions: vim-common - 2:8.2.3995-1ubuntu2.11 vim-athena - 2:8.2.3995-1ubuntu2.11 vim-tiny - 2:8.2.3995-1ubuntu2.11 vim-gtk - 2:8.2.3995-1ubuntu2.11 vim-gui-common - 2:8.2.3995-1ubuntu2.11 vim - 2:8.2.3995-1ubuntu2.11 vim-doc - 2:8.2.3995-1ubuntu2.11 xxd - 2:8.2.3995-1ubuntu2.11 vim-runtime - 2:8.2.3995-1ubuntu2.11 vim-gtk3 - 2:8.2.3995-1ubuntu2.11 vim-nox - 2:8.2.3995-1ubuntu2.11 No subscription required
Evidence and freshness
Last supporting evidence check: 2026-11-28T04:50:43.236Z UTC
Upstream Advisory
Affected Packages
vim-common 2:8.2.3995-1ubuntu2.11-2:8.2.3995-1ubuntu2.11
vim-athena 2:8.2.3995-1ubuntu2.11-2:8.2.3995-1ubuntu2.11
vim-tiny 2:8.2.3995-1ubuntu2.11-2:8.2.3995-1ubuntu2.11
vim-gtk 2:8.2.3995-1ubuntu2.11-2:8.2.3995-1ubuntu2.11
vim-gui-common 2:8.2.3995-1ubuntu2.11-2:8.2.3995-1ubuntu2.11
vim 2:8.2.3995-1ubuntu2.11-2:8.2.3995-1ubuntu2.11
vim-doc 2:8.2.3995-1ubuntu2.11-2:8.2.3995-1ubuntu2.11
xxd 2:8.2.3995-1ubuntu2.11-2:8.2.3995-1ubuntu2.11
vim-runtime 2:8.2.3995-1ubuntu2.11-2:8.2.3995-1ubuntu2.11
vim-gtk3 2:8.2.3995-1ubuntu2.11-2:8.2.3995-1ubuntu2.11
vim-nox 2:8.2.3995-1ubuntu2.11-2:8.2.3995-1ubuntu2.11
vim-common 2:8.1.2269-1ubuntu5.17-2:8.1.2269-1ubuntu5.17
vim-athena 2:8.1.2269-1ubuntu5.17-2:8.1.2269-1ubuntu5.17
vim-tiny 2:8.1.2269-1ubuntu5.17-2:8.1.2269-1ubuntu5.17
vim-gtk 2:8.1.2269-1ubuntu5.17-2:8.1.2269-1ubuntu5.17
vim-gui-common 2:8.1.2269-1ubuntu5.17-2:8.1.2269-1ubuntu5.17
vim 2:8.1.2269-1ubuntu5.17-2:8.1.2269-1ubuntu5.17
vim-doc 2:8.1.2269-1ubuntu5.17-2:8.1.2269-1ubuntu5.17
xxd 2:8.1.2269-1ubuntu5.17-2:8.1.2269-1ubuntu5.17
vim-runtime 2:8.1.2269-1ubuntu5.17-2:8.1.2269-1ubuntu5.17
vim-gtk3 2:8.1.2269-1ubuntu5.17-2:8.1.2269-1ubuntu5.17
vim-nox 2:8.1.2269-1ubuntu5.17-2:8.1.2269-1ubuntu5.17