Skip to content
OpenAdvisories
High SUSE-SU-2024:1287-1 10 CVEs

Security update for vim

Published Apr 15, 2024 · Updated Feb 4, 2026

Summary

This update for vim fixes the following issues:

Updated to version 9.1.0111, fixes the following security problems

- CVE-2023-48231: Use-After-Free in win_close() (bsc#1217316).
- CVE-2023-48232: Floating point Exception in adjust_plines_for_skipcol() (bsc#1217320).
- CVE-2023-48233: overflow with count for :s command (bsc#1217321).
- CVE-2023-48234: overflow in nv_z_get_count (bsc#1217324).
- CVE-2023-48235: overflow in ex address parsing (CVE-2023-48235).
- CVE-2023-48236: overflow in get_number (bsc#1217329).
- CVE-2023-48237: overflow in shift_line (bsc#1217330).
- CVE-2023-48706: heap-use-after-free in ex_substitute (bsc#1217432).
- CVE-2024-22667: stack-based buffer overflow in did_set_langmap function in map.c (bsc#1219581).
- CVE-2023-4750: Heap use-after-free in function bt_quickfix (bsc#1215005).

Fixed packages 4

ReleasePackageFixed in
openSUSE · Leap 15.5 vim 9.1.0111-150500.20.9.1
SUSE · SLE Micro 5.5 Linux Enterprise Micro 5.5 vim 9.1.0111-150500.20.9.1
SUSE · SLES 15 SP5 Linux Enterprise Module for Basesystem 15 SP5 vim 9.1.0111-150500.20.9.1
SUSE · SLES 15 SP5 Linux Enterprise Module for Desktop Applications 15 SP5 vim 9.1.0111-150500.20.9.1

Vulnerabilities 10

  • High 7.8

    Use After Free in vim/vim

    Use After Free in GitHub repository vim/vim prior to 9.0.1857.

  • High 7.8

    Vim before 9.0.2142 has a stack-based buffer overflow because did_set_langmap in map.c calls sprintf to write to the er…

  • Low 3.9

    Use-After-Free in win_close() in vim

    Vim is an open source command line text editor. When closing a window, vim may try to access already freed window structure. Exploitation beyond crashing the application has not been shown to be viable. This issue has been addressed in commit `25aabc2b` which…

  • Low 3.9

    Floating point Exception in adjust_plines_for_skipcol() in vim

    Vim is an open source command line text editor. A floating point exception may occur when calculating the line offset for overlong lines and smooth scrolling is enabled and the cpo-settings include the 'n' flag. This may happen when a window border is present…

  • Low 3.6

    Vim has heap-use-after-free at /src/charset.c:1770:12 in skipwhite

    Vim is a UNIX editor that, prior to version 9.0.2121, has a heap-use-after-free vulnerability. When executing a `:s` command for the very first time and using a sub-replace-special atom inside the substitution part, it is possible that the recursive `:s` call…

  • Low 2.8

    overflow with count for :s command in vim

    Vim is an open source command line text editor. If the count after the :s command is larger than what fits into a (signed) long variable, abort with e_value_too_large. Impact is low, user interaction is required and a crash may not even happen in all situatio…

  • Low 2.8

    overflow in nv_z_get_count in vim

    Vim is an open source command line text editor. When getting the count for a normal mode z command, it may overflow for large counts given. Impact is low, user interaction is required and a crash may not even happen in all situations. This issue has been addr…

  • Low 2.8

    overflow in ex address parsing in vim

    Vim is an open source command line text editor. When parsing relative ex addresses one may unintentionally cause an overflow. Ironically this happens in the existing overflow check, because the line number becomes negative and LONG_MAX - lnum will cause the o…

  • Low 2.8

    overflow in get_number in vim

    Vim is an open source command line text editor. When using the z= command, the user may overflow the count with values larger than MAX_INT. Impact is low, user interaction is required and a crash may not even happen in all situations. This vulnerability has b…

  • Low 2.8

    overflow in shift_line in vim

    Vim is an open source command line text editor. In affected versions when shifting lines in operator pending mode and using a very large value, it may be possible to overflow the size of integer. Impact is low, user interaction is required and a crash may not…

References

  • report
    https://bugzilla.suse.com/1215005
  • report
    https://bugzilla.suse.com/1217316
  • report
    https://bugzilla.suse.com/1217320
  • report
    https://bugzilla.suse.com/1217321
  • report
    https://bugzilla.suse.com/1217324
  • report
    https://bugzilla.suse.com/1217326
  • report
    https://bugzilla.suse.com/1217329
  • report
    https://bugzilla.suse.com/1217330
  • report
    https://bugzilla.suse.com/1217432
  • report
    https://bugzilla.suse.com/1219581
  • web
    https://www.suse.com/security/cve/CVE-2023-4750
  • web
    https://www.suse.com/security/cve/CVE-2023-48231
  • web
    https://www.suse.com/security/cve/CVE-2023-48232
  • web
    https://www.suse.com/security/cve/CVE-2023-48233
  • web
    https://www.suse.com/security/cve/CVE-2023-48234
  • web
    https://www.suse.com/security/cve/CVE-2023-48235
  • web
    https://www.suse.com/security/cve/CVE-2023-48236
  • web
    https://www.suse.com/security/cve/CVE-2023-48237
  • web
    https://www.suse.com/security/cve/CVE-2023-48706
  • web
    https://www.suse.com/security/cve/CVE-2024-22667