Amazon Linux 2022 : vim-common, vim-data, vim-default-editor (ALAS2022-2022-155)

critical Nessus Plugin ID 166352

Synopsis

The remote Amazon Linux 2022 host is missing a security update.

Description

It is, therefore, affected by multiple vulnerabilities as referenced in the ALAS2022-2022-155 advisory.

A use-after-free vulnerability was found in vim's do_cmdline() function of the src/ex_docmd.c file. The issue triggers when an invalid line number on :for is ignored. This flaw allows an attacker to trick a user into opening a specially crafted file, triggering use-after-free that causes an application to crash, possibly executing code and corrupting memory. (CVE-2022-3099)

A heap use-after-free vulnerability was found in vim's do_tag() function of the src/tag.c file. The issue triggers when the 'tagfunc' closes the window. This flaw allows an attacker to trick a user into opening a specially crafted file, triggering a heap use-after-free that causes an application to crash, possibly executing code and corrupting memory. (CVE-2022-3134)

NULL Pointer Dereference in GitHub repository vim/vim prior to 9.0.0404. (CVE-2022-3153)

Tenable has extracted the preceding description block directly from the tested product security advisory.

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Run 'dnf update vim --releasever=2022.0.20221019' to update your system.

See Also

https://alas.aws.amazon.com/AL2022/ALAS-2022-155.html

https://alas.aws.amazon.com/cve/html/CVE-2021-3770.html

https://alas.aws.amazon.com/cve/html/CVE-2021-3903.html

https://alas.aws.amazon.com/cve/html/CVE-2021-3927.html

https://alas.aws.amazon.com/cve/html/CVE-2021-3928.html

https://alas.aws.amazon.com/cve/html/CVE-2021-3968.html

https://alas.aws.amazon.com/cve/html/CVE-2021-3973.html

https://alas.aws.amazon.com/cve/html/CVE-2021-3974.html

https://alas.aws.amazon.com/cve/html/CVE-2021-3984.html

https://alas.aws.amazon.com/cve/html/CVE-2021-4019.html

https://alas.aws.amazon.com/cve/html/CVE-2021-4069.html

https://alas.aws.amazon.com/cve/html/CVE-2021-4136.html

https://alas.aws.amazon.com/cve/html/CVE-2021-4166.html

https://alas.aws.amazon.com/cve/html/CVE-2021-4173.html

https://alas.aws.amazon.com/cve/html/CVE-2021-4187.html

https://alas.aws.amazon.com/cve/html/CVE-2021-4192.html

https://alas.aws.amazon.com/cve/html/CVE-2021-4193.html

https://alas.aws.amazon.com/cve/html/CVE-2022-0128.html

https://alas.aws.amazon.com/cve/html/CVE-2022-0156.html

https://alas.aws.amazon.com/cve/html/CVE-2022-0158.html

https://alas.aws.amazon.com/cve/html/CVE-2022-0213.html

https://alas.aws.amazon.com/cve/html/CVE-2022-0261.html

https://alas.aws.amazon.com/cve/html/CVE-2022-0318.html

https://alas.aws.amazon.com/cve/html/CVE-2022-0319.html

https://alas.aws.amazon.com/cve/html/CVE-2022-0351.html

https://alas.aws.amazon.com/cve/html/CVE-2022-0359.html

https://alas.aws.amazon.com/cve/html/CVE-2022-0361.html

https://alas.aws.amazon.com/cve/html/CVE-2022-0368.html

https://alas.aws.amazon.com/cve/html/CVE-2022-0392.html

https://alas.aws.amazon.com/cve/html/CVE-2022-0393.html

https://alas.aws.amazon.com/cve/html/CVE-2022-0407.html

https://alas.aws.amazon.com/cve/html/CVE-2022-0408.html

https://alas.aws.amazon.com/cve/html/CVE-2022-0413.html

https://alas.aws.amazon.com/cve/html/CVE-2022-0417.html

https://alas.aws.amazon.com/cve/html/CVE-2022-0443.html

https://alas.aws.amazon.com/cve/html/CVE-2022-0554.html

https://alas.aws.amazon.com/cve/html/CVE-2022-0572.html

https://alas.aws.amazon.com/cve/html/CVE-2022-0629.html

https://alas.aws.amazon.com/cve/html/CVE-2022-0685.html

https://alas.aws.amazon.com/cve/html/CVE-2022-0696.html

https://alas.aws.amazon.com/cve/html/CVE-2022-0714.html

https://alas.aws.amazon.com/cve/html/CVE-2022-0729.html

https://alas.aws.amazon.com/cve/html/CVE-2022-0943.html

https://alas.aws.amazon.com/cve/html/CVE-2022-1154.html

https://alas.aws.amazon.com/cve/html/CVE-2022-1160.html

https://alas.aws.amazon.com/cve/html/CVE-2022-1381.html

https://alas.aws.amazon.com/cve/html/CVE-2022-1420.html

https://alas.aws.amazon.com/cve/html/CVE-2022-1616.html

https://alas.aws.amazon.com/cve/html/CVE-2022-1619.html

https://alas.aws.amazon.com/cve/html/CVE-2022-1620.html

https://alas.aws.amazon.com/cve/html/CVE-2022-1621.html

https://alas.aws.amazon.com/cve/html/CVE-2022-1629.html

https://alas.aws.amazon.com/cve/html/CVE-2022-1674.html

https://alas.aws.amazon.com/cve/html/CVE-2022-1720.html

https://alas.aws.amazon.com/cve/html/CVE-2022-1725.html

https://alas.aws.amazon.com/cve/html/CVE-2022-1733.html

https://alas.aws.amazon.com/cve/html/CVE-2022-1735.html

https://alas.aws.amazon.com/cve/html/CVE-2022-1769.html

https://alas.aws.amazon.com/cve/html/CVE-2022-1771.html

https://alas.aws.amazon.com/cve/html/CVE-2022-1785.html

https://alas.aws.amazon.com/cve/html/CVE-2022-1796.html

https://alas.aws.amazon.com/cve/html/CVE-2022-1851.html

https://alas.aws.amazon.com/cve/html/CVE-2022-1886.html

https://alas.aws.amazon.com/cve/html/CVE-2022-1897.html

https://alas.aws.amazon.com/cve/html/CVE-2022-1898.html

https://alas.aws.amazon.com/cve/html/CVE-2022-1927.html

https://alas.aws.amazon.com/cve/html/CVE-2022-1942.html

https://alas.aws.amazon.com/cve/html/CVE-2022-1968.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2000.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2042.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2124.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2125.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2126.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2129.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2175.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2182.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2183.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2206.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2207.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2208.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2210.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2231.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2257.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2264.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2284.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2285.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2286.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2287.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2288.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2289.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2304.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2343.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2344.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2345.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2522.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2571.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2580.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2581.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2598.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2816.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2817.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2819.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2845.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2849.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2862.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2874.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2889.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2923.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2946.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2980.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2982.html

https://alas.aws.amazon.com/cve/html/CVE-2022-3016.html

https://alas.aws.amazon.com/cve/html/CVE-2022-3037.html

https://alas.aws.amazon.com/cve/html/CVE-2022-3099.html

https://alas.aws.amazon.com/cve/html/CVE-2022-3134.html

https://alas.aws.amazon.com/cve/html/CVE-2022-3153.html

Plugin Details

Severity: Critical

ID: 166352

File Name: al2022_ALAS2022-2022-155.nasl

Version: 1.11

Type: local

Agent: unix

Published: 10/20/2022

Updated: 12/11/2024

Supported Sensors: Agentless Assessment, Continuous Assessment, Frictionless Assessment Agent, Frictionless Assessment AWS, Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: High

Base Score: 9.3

Temporal Score: 7.3

Vector: CVSS2#AV:N/AC:M/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2021-3973

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

CVSS Score Source: CVE-2022-0318

Vulnerability Information

CPE: p-cpe:/a:amazon:linux:vim-filesystem, p-cpe:/a:amazon:linux:vim-data, cpe:/o:amazon:linux:2022, p-cpe:/a:amazon:linux:vim-enhanced-debuginfo, p-cpe:/a:amazon:linux:vim-common, p-cpe:/a:amazon:linux:vim-minimal-debuginfo, p-cpe:/a:amazon:linux:vim-minimal, p-cpe:/a:amazon:linux:vim-common-debuginfo, p-cpe:/a:amazon:linux:vim-enhanced, p-cpe:/a:amazon:linux:vim-default-editor, p-cpe:/a:amazon:linux:vim-debuginfo, p-cpe:/a:amazon:linux:vim-debugsource

Required KB Items: Host/local_checks_enabled, Host/AmazonLinux/release, Host/AmazonLinux/rpm-list

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 10/17/2022

Vulnerability Publication Date: 9/3/2022

Reference Information

CVE: CVE-2021-3770, CVE-2021-3903, CVE-2021-3927, CVE-2021-3928, CVE-2021-3968, CVE-2021-3973, CVE-2021-3974, CVE-2021-3984, CVE-2021-4019, CVE-2021-4069, CVE-2021-4136, CVE-2021-4166, CVE-2021-4173, CVE-2021-4187, CVE-2021-4192, CVE-2021-4193, CVE-2022-0128, CVE-2022-0156, CVE-2022-0158, CVE-2022-0213, CVE-2022-0261, CVE-2022-0318, CVE-2022-0319, CVE-2022-0351, CVE-2022-0359, CVE-2022-0361, CVE-2022-0368, CVE-2022-0392, CVE-2022-0393, CVE-2022-0407, CVE-2022-0408, CVE-2022-0413, CVE-2022-0417, CVE-2022-0443, CVE-2022-0554, CVE-2022-0572, CVE-2022-0629, CVE-2022-0685, CVE-2022-0696, CVE-2022-0714, CVE-2022-0729, CVE-2022-0943, CVE-2022-1154, CVE-2022-1160, CVE-2022-1381, CVE-2022-1420, CVE-2022-1616, CVE-2022-1619, CVE-2022-1620, CVE-2022-1621, CVE-2022-1629, CVE-2022-1674, CVE-2022-1720, CVE-2022-1725, CVE-2022-1733, CVE-2022-1735, CVE-2022-1769, CVE-2022-1771, CVE-2022-1785, CVE-2022-1796, CVE-2022-1851, CVE-2022-1886, CVE-2022-1897, CVE-2022-1898, CVE-2022-1927, CVE-2022-1942, CVE-2022-1968, CVE-2022-2000, CVE-2022-2042, CVE-2022-2124, CVE-2022-2125, CVE-2022-2126, CVE-2022-2129, CVE-2022-2175, CVE-2022-2182, CVE-2022-2183, CVE-2022-2206, CVE-2022-2207, CVE-2022-2208, CVE-2022-2210, CVE-2022-2231, CVE-2022-2257, CVE-2022-2264, CVE-2022-2284, CVE-2022-2285, CVE-2022-2286, CVE-2022-2287, CVE-2022-2288, CVE-2022-2289, CVE-2022-2304, CVE-2022-2343, CVE-2022-2344, CVE-2022-2345, CVE-2022-2522, CVE-2022-2571, CVE-2022-2580, CVE-2022-2581, CVE-2022-2598, CVE-2022-2816, CVE-2022-2817, CVE-2022-2819, CVE-2022-2845, CVE-2022-2849, CVE-2022-2862, CVE-2022-2874, CVE-2022-2889, CVE-2022-2923, CVE-2022-2946, CVE-2022-2980, CVE-2022-2982, CVE-2022-3016, CVE-2022-3037, CVE-2022-3099, CVE-2022-3134, CVE-2022-3153

IAVB: 2022-B-0049-S, 2023-B-0016-S