ALAS-2023-431


Amazon Linux 2023 Security Advisory: ALAS-2023-431
Advisory Release Date: 2023-11-09 21:29 Pacific
Advisory Updated Date: 2023-11-14 21:13 Pacific
Severity: Medium

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


Issue Correction:
Run dnf update vim --releasever 2023.2.20231113 to update your system.

New Packages:
aarch64:
    vim-enhanced-debuginfo-9.0.2081-1.amzn2023.aarch64
    vim-debuginfo-9.0.2081-1.amzn2023.aarch64
    vim-minimal-debuginfo-9.0.2081-1.amzn2023.aarch64
    vim-enhanced-9.0.2081-1.amzn2023.aarch64
    vim-minimal-9.0.2081-1.amzn2023.aarch64
    xxd-debuginfo-9.0.2081-1.amzn2023.aarch64
    xxd-9.0.2081-1.amzn2023.aarch64
    vim-debugsource-9.0.2081-1.amzn2023.aarch64
    vim-common-9.0.2081-1.amzn2023.aarch64

noarch:
    vim-default-editor-9.0.2081-1.amzn2023.noarch
    vim-filesystem-9.0.2081-1.amzn2023.noarch
    vim-data-9.0.2081-1.amzn2023.noarch

src:
    vim-9.0.2081-1.amzn2023.src

x86_64:
    vim-enhanced-debuginfo-9.0.2081-1.amzn2023.x86_64
    vim-enhanced-9.0.2081-1.amzn2023.x86_64
    xxd-9.0.2081-1.amzn2023.x86_64
    vim-minimal-9.0.2081-1.amzn2023.x86_64
    vim-debuginfo-9.0.2081-1.amzn2023.x86_64
    xxd-debuginfo-9.0.2081-1.amzn2023.x86_64
    vim-minimal-debuginfo-9.0.2081-1.amzn2023.x86_64
    vim-debugsource-9.0.2081-1.amzn2023.x86_64
    vim-common-9.0.2081-1.amzn2023.x86_64