USN-6302-1: Vim vulnerabilities
Severity
Medium
Vendor
Canonical Ubuntu
Versions Affected
- Canonical Ubuntu 18.04
- Canonical Ubuntu 22.04
Description
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 xxd – 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 vim-tiny – 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
CVEs contained in this USN include: CVE-2022-3099, CVE-2022-2522, CVE-2022-2580, CVE-2022-2598, CVE-2022-2816, CVE-2022-2817, CVE-2022-2819, CVE-2022-2862, CVE-2022-2874, CVE-2022-2889, CVE-2022-2982, CVE-2022-3016, CVE-2022-3037, CVE-2022-3134, CVE-2022-3153.
Affected Cloud Foundry Products and Versions
Severity is medium unless otherwise noted.
- cflinuxfs4
- All versions prior to 1.31.0
- Jammy Stemcells
- 1.x versions prior to 1.222
- All other stemcells not listed.
- CF Deployment
- All versions prior to 30.0.0, or later versions with Jammy Stemcells prior to 1.222
Mitigation
Users of affected products are strongly encouraged to follow the mitigations below.
The Cloud Foundry project recommends upgrading the following releases:
- cflinuxfs4
- Upgrade all versions to 1.31.0 or greater
- Jammy Stemcells
- Upgrade 1.x versions to 1.222 or greater
- All other stemcells should be upgraded to the latest version available on bosh.io.
- CF Deployment
- Upgrade all versions to 30.0.0 or greater and upgrade Jammy Stemcells to 1.222 or greater
References
History
2023-10-05: Initial vulnerability report published.