Lucene search

K
amazonAmazonALAS-2023-2338
HistoryNov 09, 2023 - 7:19 p.m.

Medium: vim

2023-11-0919:19:00
alas.aws.amazon.com
18
vim
heap-use-after-free
integer overflow
patched
amazon linux 2
security advisory
update
red hat
mitre
unix

5.5 Medium

CVSS3

Attack Vector

LOCAL

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

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

5.8 Medium

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

5.1%

Issue Overview:

Vim is an improved version of the good old UNIX editor Vi. Heap-use-after-free in memory allocated in the function ga_grow_inner in in the file src/alloc.c at line 748, which is freed in the file src/ex_docmd.c in the function do_cmdline at line 1010 and then used again in src/cmdhist.c at line 759. When using the :history command, it’s possible that the provided argument overflows the accepted value. Causing an Integer Overflow and potentially later an use-after-free. This vulnerability has been patched in version 9.0.2068. (CVE-2023-46246)

Affected Packages:

vim

Note:

This advisory is applicable to Amazon Linux 2 (AL2) Core repository. Visit this FAQ section for the difference between AL2 Core and AL2 Extras advisories.

Issue Correction:
Run yum update vim to update your system.

New Packages:

aarch64:  
    vim-common-9.0.2081-1.amzn2.0.1.aarch64  
    vim-minimal-9.0.2081-1.amzn2.0.1.aarch64  
    vim-enhanced-9.0.2081-1.amzn2.0.1.aarch64  
    vim-X11-9.0.2081-1.amzn2.0.1.aarch64  
    xxd-9.0.2081-1.amzn2.0.1.aarch64  
    vim-debuginfo-9.0.2081-1.amzn2.0.1.aarch64  
  
i686:  
    vim-common-9.0.2081-1.amzn2.0.1.i686  
    vim-minimal-9.0.2081-1.amzn2.0.1.i686  
    vim-enhanced-9.0.2081-1.amzn2.0.1.i686  
    vim-X11-9.0.2081-1.amzn2.0.1.i686  
    xxd-9.0.2081-1.amzn2.0.1.i686  
    vim-debuginfo-9.0.2081-1.amzn2.0.1.i686  
  
noarch:  
    vim-filesystem-9.0.2081-1.amzn2.0.1.noarch  
    vim-data-9.0.2081-1.amzn2.0.1.noarch  
  
src:  
    vim-9.0.2081-1.amzn2.0.1.src  
  
x86_64:  
    vim-common-9.0.2081-1.amzn2.0.1.x86_64  
    vim-minimal-9.0.2081-1.amzn2.0.1.x86_64  
    vim-enhanced-9.0.2081-1.amzn2.0.1.x86_64  
    vim-X11-9.0.2081-1.amzn2.0.1.x86_64  
    xxd-9.0.2081-1.amzn2.0.1.x86_64  
    vim-debuginfo-9.0.2081-1.amzn2.0.1.x86_64  

Additional References

Red Hat: CVE-2023-46246

Mitre: CVE-2023-46246

5.5 Medium

CVSS3

Attack Vector

LOCAL

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

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

5.8 Medium

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

5.1%