Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

Security advisory

ALAS2-2022-1751

Active Moderate

ALAS2-2022-1751 (medium): vim

Published
22 Feb 2022
Updated
22 Feb 2022

Related CVEs

CVE identifiers linked by this publisher.

7
Publisher relationship details 7 records

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.

5

Shared package data

Applies to all 5 occurrences
  1. 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
  2. 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
  3. 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
  4. 4vim

    Occurrence-specific details
    Architecture
    src

    Replacement RPMs

    • vim-8.2.4314-1.amzn2.0.1.src
  5. 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.

0

No CVSS assessments were provided.

Publisher references

14
  • CVE-2022-0156 advisory · Tags: Red Hat https://access.redhat.com/security/cve/CVE-2022-0156
  • CVE-2022-0158 advisory · Tags: Red Hat https://access.redhat.com/security/cve/CVE-2022-0158
  • CVE-2022-0213 advisory · Tags: Red Hat https://access.redhat.com/security/cve/CVE-2022-0213
  • CVE-2022-0261 advisory · Tags: Red Hat https://access.redhat.com/security/cve/CVE-2022-0261
  • CVE-2022-0318 advisory · Tags: Red Hat https://access.redhat.com/security/cve/CVE-2022-0318
  • CVE-2022-0351 advisory · Tags: Red Hat https://access.redhat.com/security/cve/CVE-2022-0351
  • CVE-2022-0359 advisory · Tags: Red Hat https://access.redhat.com/security/cve/CVE-2022-0359
  • CVE-2022-0156 advisory · Tags: Mitre https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0156
  • CVE-2022-0158 advisory · Tags: Mitre https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0158
  • CVE-2022-0213 advisory · Tags: Mitre https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0213
  • CVE-2022-0261 advisory · Tags: Mitre https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0261
  • CVE-2022-0318 advisory · Tags: Mitre https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0318
  • CVE-2022-0351 advisory · Tags: Mitre https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0351
  • CVE-2022-0359 advisory · Tags: Mitre https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0359

Provenance

Schema version
Unknown
Parser version
amazon-alas/1
Severity origin
publisher
Publisher document provenance records
KindLocatorSource commitDocument hashParserFetched
html_pagehttps://alas.aws.amazon.com/AL2/ALAS2-2022-1751.htmlUnknowncc41bf86b4f1705f377b1d9c18e42b248701d34fc1b24b4a76ab5040bb9ba22eamazon-alas/12026-11-16T08:26:43Z
rss_entryhttps://alas.aws.amazon.com/AL2/ALAS2-2022-1751.htmlUnknownUnknownamazon-alas/12026-11-16T08:26:43Z
catalog_entryhttps://alas.aws.amazon.com/AL2/ALAS2-2022-1751.htmlUnknownUnknownamazon-alas/12026-11-16T08:26:43Z

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected