[CLSA-2026:1777477742] vim: Fix of 21 CVEs
Type:
security
Severity:
Important
Release date:
2026-07-23 22:33:59 UTC
Description:
- CVE-2021-4019: replace the unbounded STRCPY pair in find_help_tags() with vim_snprintf bounded by IOSIZE to prevent heap buffer overflow with long :help arguments starting with "\%_z@". - CVE-2021-4192: re-fetch regline/reginput via reg_getline() after getvvcol() in reg_match_visual() so the cached line pointer cannot become a use-after-free when getvvcol flushes the line buffer. - CVE-2021-4193: clamp pos->col to the first NUL in getvcol() so /\%V searches cannot read past the end of the line. - CVE-2022-1720: in get_visual_text(), drop a trailing NUL from non-mbyte selection length and guard the mbyte correction with *lenp > 0 so "gf" in Visual block mode does not read past the line. - CVE-2022-2126: also require sp->ts_fidx > 0 before decrementing ts_fidx in the DIFF_INSERT branch of suggest_trie_walk() so spell suggestion cannot read before the start of the bad-word buffer. - CVE-2022-2210: initialise off = 0 at the top of the deleted > 0 branch of diff_mark_adjust_tp() and only compute the real offset in the "5. delete lines at or just before top of diff" case, so a diff-block full-delete does not use a stale offset. - CVE-2022-2285: place a NUL terminator at tp[len] before key-name matching in check_termcode() so crafted typeahead cannot be read past the end of the buffer. - CVE-2022-2345: always vim_strsave(newsub) into reg_prev_sub in regtilde() and track an allocated regtilde result in sub_copy in do_sub() so a recursive :s cannot use freed memory.
Updated packages:
  • vim-X11-7.4.629-8.0.1.el7_9.tuxcare.els7.i686.rpm
    sha:80937e398c23ec31af09a2b4793b7428b4606504bbe2d6d16fbf8b2e98e7112c
  • vim-X11-7.4.629-8.0.1.el7_9.tuxcare.els7.x86_64.rpm
    sha:e0df98b7987ee59924e93448b2e25c3aecfc5bb9a0c9be8a99df718c8c5ad9aa
  • vim-common-7.4.629-8.0.1.el7_9.tuxcare.els7.i686.rpm
    sha:dde1b38527fe0d36abf21718d012c2d45775057a3faa52c61dddd7690669ccc3
  • vim-common-7.4.629-8.0.1.el7_9.tuxcare.els7.x86_64.rpm
    sha:bd3d571b5d30c50e8579d546a6b403d596840ca22a2f0dc418d4cfdbc8305dc7
  • vim-enhanced-7.4.629-8.0.1.el7_9.tuxcare.els7.i686.rpm
    sha:abf955b0966cf029f5d68b8ddff7b7381fcd9ee233ac1ba1adcb850421371eff
  • vim-enhanced-7.4.629-8.0.1.el7_9.tuxcare.els7.x86_64.rpm
    sha:9790785fd5699ee8815f525168af5ea4a1a95ac0e530c4bbfdce4a137ed5cfb2
  • vim-filesystem-7.4.629-8.0.1.el7_9.tuxcare.els7.i686.rpm
    sha:a5e10c5a6dc435a8cfcc840c2db0167b5b8df62f81c6681e7cebd20efaeffedc
  • vim-filesystem-7.4.629-8.0.1.el7_9.tuxcare.els7.x86_64.rpm
    sha:a2de3acd9ad39b27d40691650ec7b926ca93084c7baec11aadb0784cc3ff604f
  • vim-minimal-7.4.629-8.0.1.el7_9.tuxcare.els7.i686.rpm
    sha:60120e259de0379d14384b2365c9f8729ce1b61f238ce3a74aba6bbeac2c155e
  • vim-minimal-7.4.629-8.0.1.el7_9.tuxcare.els7.x86_64.rpm
    sha:0e031c4b35430ed0e1a25e9f804c81e730d5dfbbc1cb326a2df6a51a5e577c01
Notes:
This page is generated automatically and has not been checked for errors. For clarification or corrections please contact the CloudLinux Packaging Team.