ALAS2-2022-1751
Active ModerateALAS2-2022-1751 (medium): vim
Related CVEs
CVE identifiers linked by this publisher.
Publisher relationship details 7 records
Shared by all 7 CVE relationships
Exact relationship value
advisory_listExact field value
referencesExact evidence value
https://alas.aws.amazon.com/AL2/ALAS2-2022-1751.html| CVE |
|---|
| CVE-2022-0156 |
| CVE-2022-0158 |
| CVE-2022-0213 |
| CVE-2022-0261 |
| CVE-2022-0318 |
| CVE-2022-0351 |
| CVE-2022-0359 |
Description
It was found that vim was vulnerable to use-after-free flaw in the way it was treating allocated lines in user functions. A specially crafted file could crash the vim process or possibly lead to other undefined behaviors. (CVE-2022-0156) It was found that vim was vulnerable to a 1 byte heap based out of bounds read flaw in the `compile_get_env()` function.
Read full publisher description 1787 characters
It was found that vim was vulnerable to use-after-free flaw in the way it was treating allocated lines in user functions. A specially crafted file could crash the vim process or possibly lead to other undefined behaviors. (CVE-2022-0156) It was found that vim was vulnerable to a 1 byte heap based out of bounds read flaw in the `compile_get_env()` function. A file could use that flaw to disclose 1 byte of vim's internal memory. (CVE-2022-0158) A flaw was found in vim. The vulnerability occurs due to not checking the length for the NameBuff function, which can lead to a heap buffer overflow. This flaw allows an attacker to input a specially crafted file, leading to a crash or code execution. (CVE-2022-0213) A heap based out-of-bounds write flaw was found in vim's ops.c. This flaw allows an attacker to trick a user to open a crafted file triggering an out-of-bounds write. This vulnerability is capable of crashing software, modify memory, and possible code execution. (CVE-2022-0261) A flaw was found in vim. The vulnerability occurs due to reading beyond the end of a line in the utf_head_off function, which can lead to a heap buffer overflow. This flaw allows an attacker to input a specially crafted file, leading to a crash or code execution. (CVE-2022-0318) A flaw was found in vim. The vulnerability occurs due to too many recursions, which can lead to a segmentation fault. This flaw allows an attacker to input a specially crafted file, leading to a crash or code execution. (CVE-2022-0351) A flaw was found in vim. The vulnerability occurs due to Illegal memory access with large tabstop in Ex mode, which can lead to a heap buffer overflow. This flaw allows an attacker to input a specially crafted file, leading to a crash or code execution. (CVE-2022-0359)
Solution
Run yum update vim or yum update --advisory ALAS2-2022-1751 to update your system.
Affected packages
Each item is one publisher package occurrence. Shared details are shown once; differences stay with the occurrence.
Shared package data
Applies to all 5 occurrences-
1vim
Occurrence-specific details
- Architecture
- aarch64
Replacement RPMs
- vim-common-8.2.4314-1.amzn2.0.1.aarch64
- vim-minimal-8.2.4314-1.amzn2.0.1.aarch64
- vim-enhanced-8.2.4314-1.amzn2.0.1.aarch64
- vim-X11-8.2.4314-1.amzn2.0.1.aarch64
- vim-debuginfo-8.2.4314-1.amzn2.0.1.aarch64
-
2vim
Occurrence-specific details
- Architecture
- i686
Replacement RPMs
- vim-common-8.2.4314-1.amzn2.0.1.i686
- vim-minimal-8.2.4314-1.amzn2.0.1.i686
- vim-enhanced-8.2.4314-1.amzn2.0.1.i686
- vim-X11-8.2.4314-1.amzn2.0.1.i686
- vim-debuginfo-8.2.4314-1.amzn2.0.1.i686
-
3vim
Occurrence-specific details
- Architecture
- noarch
Replacement RPMs
- vim-filesystem-8.2.4314-1.amzn2.0.1.noarch
- vim-data-8.2.4314-1.amzn2.0.1.noarch
-
4vim
Occurrence-specific details
- Architecture
- src
Replacement RPMs
- vim-8.2.4314-1.amzn2.0.1.src
-
5vim
Occurrence-specific details
- Architecture
- x86_64
Replacement RPMs
- vim-common-8.2.4314-1.amzn2.0.1.x86_64
- vim-minimal-8.2.4314-1.amzn2.0.1.x86_64
- vim-enhanced-8.2.4314-1.amzn2.0.1.x86_64
- vim-X11-8.2.4314-1.amzn2.0.1.x86_64
- vim-debuginfo-8.2.4314-1.amzn2.0.1.x86_64
CVSS assessments
Publisher supplied scores and vectors; these do not replace the advisory severity above.
No CVSS assessments were provided.
Publisher references
14- CVE-2022-0156 https://access.redhat.com/security/cve/CVE-2022-0156
- CVE-2022-0158 https://access.redhat.com/security/cve/CVE-2022-0158
- CVE-2022-0213 https://access.redhat.com/security/cve/CVE-2022-0213
- CVE-2022-0261 https://access.redhat.com/security/cve/CVE-2022-0261
- CVE-2022-0318 https://access.redhat.com/security/cve/CVE-2022-0318
- CVE-2022-0351 https://access.redhat.com/security/cve/CVE-2022-0351
- CVE-2022-0359 https://access.redhat.com/security/cve/CVE-2022-0359
- CVE-2022-0156 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0156
- CVE-2022-0158 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0158
- CVE-2022-0213 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0213
- CVE-2022-0261 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0261
- CVE-2022-0318 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0318
- CVE-2022-0351 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0351
- CVE-2022-0359 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0359
Provenance
- Schema version
- Unknown
- Parser version
- amazon-alas/1
- Severity origin
- publisher
| Kind | Locator | Source commit | Document hash | Parser | Fetched |
|---|---|---|---|---|---|
| html_page | https://alas.aws.amazon.com/AL2/ALAS2-2022-1751.html | Unknown | cc41bf86b4f1705f377b1d9c18e42b248701d34fc1b24b4a76ab5040bb9ba22e | amazon-alas/1 | 2026-11-16T08:26:43Z |
| rss_entry | https://alas.aws.amazon.com/AL2/ALAS2-2022-1751.html | Unknown | Unknown | amazon-alas/1 | 2026-11-16T08:26:43Z |
| catalog_entry | https://alas.aws.amazon.com/AL2/ALAS2-2022-1751.html | Unknown | Unknown | amazon-alas/1 | 2026-11-16T08:26:43Z |