Skip to content
OpenAdvisories
Medium ALAS2-2022-1751 7 CVEs

Moderate: vim security update (Amazon Linux 2)

Published Feb 15, 2022 · Updated Feb 21, 2022

Summary

Package updates are available for Amazon Linux 2 that fix the following vulnerabilities: CVE-2022-0359: 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-0351: 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-0318: 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-0261: 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-0213: 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-0158: 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-0156: 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.

Fixed packages 7

ReleasePackageFixed in
Amazon Linux · 2 vim-common 2:8.2.4314-1.amzn2.0.1
Amazon Linux · 2 vim-data 2:8.2.4314-1.amzn2.0.1
Amazon Linux · 2 vim-debuginfo 2:8.2.4314-1.amzn2.0.1
Amazon Linux · 2 vim-enhanced 2:8.2.4314-1.amzn2.0.1
Amazon Linux · 2 vim-filesystem 2:8.2.4314-1.amzn2.0.1
Amazon Linux · 2 vim-minimal 2:8.2.4314-1.amzn2.0.1
Amazon Linux · 2 vim-X11 2:8.2.4314-1.amzn2.0.1

Vulnerabilities 7

References

  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-0156.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-0158.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-0213.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-0261.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-0318.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-0351.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-0359.html