Advisory

RLSA-2022:0894

Also known as: CVE-2022-0261, CVE-2022-0318, CVE-2022-0359, CVE-2022-0361, CVE-2022-0392, CVE-2022-0413

Summary

Moderate: vim security update

Details

Vim (Vi IMproved) is an updated and improved version of the vi editor.

Security Fix(es):

  • vim: Heap-based buffer overflow in block_insert() in src/ops.c (CVE-2022-0261)
  • vim: Heap-based buffer overflow in utf_head_off() in mbyte.c (CVE-2022-0318)
  • vim: Heap-based buffer overflow in init_ccline() in ex_getln.c (CVE-2022-0359)
  • vim: Illegal memory access when copying lines in visual mode leads to heap buffer overflow (CVE-2022-0361)
  • vim: Heap-based buffer overflow in getexmodeline() in ex_getln.c (CVE-2022-0392)
  • vim: Use after free in src/ex_cmds.c (CVE-2022-0413)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Severity

High Basis: CVSS v3 score 7.8, vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Dates

Published
2022-03-15 09:11 UTC
Modified
2026-02-05 08:00 UTC

Affected packages and fixes

vim

RPM packages (rpm) · Rocky Linux 8

Affected

  • introduced 0, fixed 2:8.0.1763-16.el8_5.12 (ecosystem)

Fixed versions

2:8.0.1763-16.el8_5.12

Fix

  • Fixed version 2:8.0.1763-16.el8_5.12
    sudo dnf upgrade vim-2:8.0.1763-16.el8_5.12

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Rocky Linux errata (Apollo)

Rocky Linux errata, Rocky Enterprise Software Foundation.

Sources & licences