CVE-2023-46246
Fixed in a distro release EPSS <1%CVSS 4.0
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.
Products: vim
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| Amazon Linux 2 | vim-X11 | 2:9.0.2081-1.amzn2.0.1 |
| Amazon Linux 2 | vim-common | 2:9.0.2081-1.amzn2.0.1 |
| Amazon Linux 2 | vim-data | 2:9.0.2081-1.amzn2.0.1 |
| Amazon Linux 2 | vim-enhanced | 2:9.0.2081-1.amzn2.0.1 |
| Amazon Linux 2 | vim-filesystem | 2:9.0.2081-1.amzn2.0.1 |
| Amazon Linux 2 | vim-minimal | 2:9.0.2081-1.amzn2.0.1 |
| Amazon Linux 2 | xxd | 2:9.0.2081-1.amzn2.0.1 |
| Amazon Linux 2023 | vim-common | 2:9.0.2081-1.amzn2023 |
| Amazon Linux 2023 | vim-data | 2:9.0.2081-1.amzn2023 |
| Amazon Linux 2023 | vim-default-editor | 2:9.0.2081-1.amzn2023 |
| Amazon Linux 2023 | vim-enhanced | 2:9.0.2081-1.amzn2023 |
| Amazon Linux 2023 | vim-filesystem | 2:9.0.2081-1.amzn2023 |
| Amazon Linux 2023 | vim-minimal | 2:9.0.2081-1.amzn2023 |
| Amazon Linux 2023 | xxd | 2:9.0.2081-1.amzn2023 |
| Debian 12 | vim | no fix |
| Debian 13 | vim | 2:9.0.2087-1 |
| Debian 14 | vim | 2:9.0.2087-1 |
| SUSE Enterprise Storage 7.1 | vim | 9.0.2103-150000.5.57.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS | vim | 9.0.2103-150000.5.57.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS | vim | 9.0.2103-150000.5.57.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP3-ESPOS | vim | 9.0.2103-150000.5.57.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS | vim | 9.0.2103-150000.5.57.1 |
| SUSE Linux Enterprise Micro 5.1 | vim | 9.0.2103-150000.5.57.1 |
| SUSE Linux Enterprise Micro 5.2 | vim | 9.0.2103-150000.5.57.1 |
| SUSE Linux Enterprise Micro 5.3 | vim | 9.0.2103-150000.5.57.1 |
| SUSE Linux Enterprise Micro 5.4 | vim | 9.0.2103-150000.5.57.1 |
| SUSE Linux Enterprise Micro 5.5 | vim | 9.0.2103-150500.20.6.1 |
| SUSE Linux Enterprise Module for Basesystem 15 SP4 | vim | 9.0.2103-150000.5.57.1 |
| SUSE Linux Enterprise Module for Basesystem 15 SP5 | vim | 9.0.2103-150500.20.6.1 |
| SUSE Linux Enterprise Module for Desktop Applications 15 SP4 | vim | 9.0.2103-150000.5.57.1 |
| SUSE Linux Enterprise Module for Desktop Applications 15 SP5 | vim | 9.0.2103-150500.20.6.1 |
| SUSE Linux Enterprise Server 12 SP5 | vim | 9.0.2103-17.26.1 |
| SUSE Linux Enterprise Server 15 SP1-LTSS | vim | 9.0.2103-150000.5.57.1 |
| SUSE Linux Enterprise Server 15 SP2-LTSS | vim | 9.0.2103-150000.5.57.1 |
| SUSE Linux Enterprise Server 15 SP3-LTSS | vim | 9.0.2103-150000.5.57.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP5 | vim | 9.0.2103-17.26.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP1 | vim | 9.0.2103-150000.5.57.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP2 | vim | 9.0.2103-150000.5.57.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP3 | vim | 9.0.2103-150000.5.57.1 |
| Ubuntu 20.04 LTS | vim | 2:8.1.2269-1ubuntu5.21 |
| Ubuntu 22.04 LTS | vim | 2:8.2.3995-1ubuntu2.15 |
| Ubuntu Pro 14.04 LTS | vim | 2:7.4.052-1ubuntu3.1+esm15 |
| Ubuntu Pro 16.04 LTS | vim | 2:7.4.1689-3ubuntu1.5+esm22 |
| Ubuntu Pro 18.04 LTS | vim | 2:8.0.1453-1ubuntu1.13+esm7 |
| openSUSE Leap 15.4 | vim | 9.0.2103-150000.5.57.1 |
| openSUSE Leap 15.5 | vim | 9.0.2103-150500.20.6.1 |
| openSUSE Leap Micro 5.3 | vim | 9.0.2103-150000.5.57.1 |
| openSUSE Leap Micro 5.4 | vim | 9.0.2103-150000.5.57.1 |