Skip to content
Heist/ feed
Back to feed
UnratedFix available

vim: Fix of 3 CVEs

Type: advisorySources: OSV

- CVE-2022-2257: fix out-of-bounds read in str2special() when advancing past the trailing NUL of a menu item with only a modifier (message.c, upstream patch 9.0.0009) - CVE-2022-2182: fix heap buffer overflow in parse_cmd_address() when address line 0 is used with the ";" separator (":0;/PATTERN/"); clamp cursor column via check_cursor_col() for line 0 (ex_docmd.c, upstream patch 8.2.5150) - CVE-2022-2849: return zero byte length for NUL in latin_ptr2len() and dbcs_ptr2len() so iterating past the end of a null string cannot dereference an invalid address (mbyte.c, upstream patch 9.0.0220; minimal form — only the functional changes backported)

Products
vim-X11, vim-common, vim-enhanced, vim-filesystem, vim-minimal
Affected versions
Not specified
Fixed versions
2:8.2.2637-22.el9_6.1.tuxcare.els26
CVEs
CVE-2022-2182, CVE-2022-2257, CVE-2022-2849
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 13:52 UTC · Revision 1

Source evidence

vim: Fix of 3 CVEs

core-osv · Original source

Published 12 May 2026, 18:27 UTC

- CVE-2022-2257: fix out-of-bounds read in str2special() when advancing past the trailing NUL of a menu item with only a modifier (message.c, upstream patch 9.0.0009) - CVE-2022-2182: fix heap buffer overflow in parse_cmd_address() when address line 0 is used with the ";" separator (":0;/PATTERN/"); clamp cursor column via check_cursor_col() for line 0 (ex_docmd.c, upstream patch 8.2.5150) - CVE-2022-2849: return zero byte length for NUL in latin_ptr2len() and dbcs_ptr2len() so iterating past the end of a null string cannot dereference an invalid address (mbyte.c, upstream patch 9.0.0220; minimal form — only the functional changes backported)

osv:CLSA-2026-1778610428

vim-X11

Fixed versions: 2:8.2.2637-22.el9_6.1.tuxcare.els26

vim-common

Fixed versions: 2:8.2.2637-22.el9_6.1.tuxcare.els26

vim-enhanced

Fixed versions: 2:8.2.2637-22.el9_6.1.tuxcare.els26

vim-filesystem

Fixed versions: 2:8.2.2637-22.el9_6.1.tuxcare.els26

vim-minimal

Fixed versions: 2:8.2.2637-22.el9_6.1.tuxcare.els26

Complete source record
{
  "id": "612181b0bb72dcd1b4561a61968f2a1f76c5dc2a5c261601981b708f86ed7d61",
  "url": "https://osv.dev/vulnerability/CLSA-2026-1778610428",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "vim: Fix of 3 CVEs",
    "summary": "- CVE-2022-2257: fix out-of-bounds read in str2special() when advancing past the trailing NUL of a menu item with only a modifier (message.c, upstream patch 9.0.0009) - CVE-2022-2182: fix heap buffer overflow in parse_cmd_address() when address line 0 is used with the \";\" separator (\":0;/PATTERN/\"); clamp cursor column via check_cursor_col() for line 0 (ex_docmd.c, upstream patch 8.2.5150) - CVE-2022-2849: return zero byte length for NUL in latin_ptr2len() and dbcs_ptr2len() so iterating past the end of a null string cannot dereference an invalid address (mbyte.c, upstream patch 9.0.0220; minimal form — only the functional changes backported)",
    "evidence": "osv:CLSA-2026-1778610428",
    "products": [
      {
        "name": {
          "value": "vim-X11",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2:8.2.2637-22.el9_6.1.tuxcare.els26",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "vim-common",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2:8.2.2637-22.el9_6.1.tuxcare.els26",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "vim-enhanced",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2:8.2.2637-22.el9_6.1.tuxcare.els26",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "vim-filesystem",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2:8.2.2637-22.el9_6.1.tuxcare.els26",
            "evidence": "/affected/3/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "vim-minimal",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2:8.2.2637-22.el9_6.1.tuxcare.els26",
            "evidence": "/affected/4/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CLSA-2026-1778610428",
      "aliases": [
        "CLSA-2026-1778610428"
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2:8.2.2637-22.el9_6.1.tuxcare.els26"
                }
              ]
            }
          ],
          "package": {
            "name": "vim-X11",
            "purl": "pkg:rpm/tuxcare/vim-X11?distro=almalinux-9.6",
            "ecosystem": "TuxCare:AlmaLinux:9.6"
          },
          "database_specific": {
            "source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/almalinux9.6esu/CLSA-2026-1778610428.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2:8.2.2637-22.el9_6.1.tuxcare.els26"
                }
              ]
            }
          ],
          "package": {
            "name": "vim-common",
            "purl": "pkg:rpm/tuxcare/vim-common?distro=almalinux-9.6",
            "ecosystem": "TuxCare:AlmaLinux:9.6"
          },
          "database_specific": {
            "source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/almalinux9.6esu/CLSA-2026-1778610428.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2:8.2.2637-22.el9_6.1.tuxcare.els26"
                }
              ]
            }
          ],
          "package": {
            "name": "vim-enhanced",
            "purl": "pkg:rpm/tuxcare/vim-enhanced?distro=almalinux-9.6",
            "ecosystem": "TuxCare:AlmaLinux:9.6"
          },
          "database_specific": {
            "source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/almalinux9.6esu/CLSA-2026-1778610428.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2:8.2.2637-22.el9_6.1.tuxcare.els26"
                }
              ]
            }
          ],
          "package": {
            "name": "vim-filesystem",
            "purl": "pkg:rpm/tuxcare/vim-filesystem?distro=almalinux-9.6",
            "ecosystem": "TuxCare:AlmaLinux:9.6"
          },
          "database_specific": {
            "source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/almalinux9.6esu/CLSA-2026-1778610428.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2:8.2.2637-22.el9_6.1.tuxcare.els26"
                }
              ]
            }
          ],
          "package": {
            "name": "vim-minimal",
            "purl": "pkg:rpm/tuxcare/vim-minimal?distro=almalinux-9.6",
            "ecosystem": "TuxCare:AlmaLinux:9.6"
          },
          "database_specific": {
            "source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/almalinux9.6esu/CLSA-2026-1778610428.json"
          }
        }
      ],
      "modified": "2026-10-21T10:46:57.481427477Z",
      "provider": "osv",
      "upstream": [
        "CVE-2022-2182",
        "CVE-2022-2257",
        "CVE-2022-2849"
      ],
      "references": [
        "https://errata.tuxcare.com/els_os/tuxcare9.6esu/CLSA-2026-1778610428.html"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2022-2182",
        "evidence": "/upstream"
      },
      {
        "value": "CVE-2022-2257",
        "evidence": "/upstream"
      },
      {
        "value": "CVE-2022-2849",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 392287,
  "published_at": "2026-05-12T18:27:13+00:00"
}