Skip to content
Heist/ feed
Back to feed
UnratedFix available

Fix CVE(s): CVE-2022-3520

Type: advisorySources: OSV

* SECURITY UPDATE: out-of-bounds read after a Visual block put: do_put() set the '] mark as bd.textcol + totlen - 1 without a lower bound, so a blockwise register whose lines are all empty (y_width becomes -1 in str_to_reg(), giving totlen 0) left the column at -1. With 'selection' set to exclusive, nv_put() then passed that mark to inc(), which dereferenced a pointer before the start of the line buffer. - debian/patches/CVE-2022-3520.patch: clamp curbuf->b_op_end.col to 0 in src/ops.c; matches upstream patch 9.0.0765. - CVE-2022-3520

Products
vim, vim-athena, vim-common, vim-doc, vim-gnome, vim-gtk, vim-gtk3, vim-gui-common, vim-nox, vim-runtime, vim-tiny, xxd
Affected versions
Not specified
Fixed versions
2:8.0.1453-1ubuntu1.13+tuxcare.els4
CVEs
CVE-2022-3520
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 11:41 UTC · Revision 1

Source evidence

Fix CVE(s): CVE-2022-3520

core-osv · Original source

Published 25 Aug 2026, 17:33 UTC

* SECURITY UPDATE: out-of-bounds read after a Visual block put: do_put() set the '] mark as bd.textcol + totlen - 1 without a lower bound, so a blockwise register whose lines are all empty (y_width becomes -1 in str_to_reg(), giving totlen 0) left the column at -1. With 'selection' set to exclusive, nv_put() then passed that mark to inc(), which dereferenced a pointer before the start of the line buffer. - debian/patches/CVE-2022-3520.patch: clamp curbuf->b_op_end.col to 0 in src/ops.c; matches upstream patch 9.0.0765. - CVE-2022-3520

osv:CLSA-2026-1787679179

vim

Fixed versions: 2:8.0.1453-1ubuntu1.13+tuxcare.els4

vim-athena

Fixed versions: 2:8.0.1453-1ubuntu1.13+tuxcare.els4

vim-common

Fixed versions: 2:8.0.1453-1ubuntu1.13+tuxcare.els4

vim-doc

Fixed versions: 2:8.0.1453-1ubuntu1.13+tuxcare.els4

vim-gnome

Fixed versions: 2:8.0.1453-1ubuntu1.13+tuxcare.els4

vim-gtk

Fixed versions: 2:8.0.1453-1ubuntu1.13+tuxcare.els4

vim-gtk3

Fixed versions: 2:8.0.1453-1ubuntu1.13+tuxcare.els4

vim-gui-common

Fixed versions: 2:8.0.1453-1ubuntu1.13+tuxcare.els4

vim-nox

Fixed versions: 2:8.0.1453-1ubuntu1.13+tuxcare.els4

vim-runtime

Fixed versions: 2:8.0.1453-1ubuntu1.13+tuxcare.els4

vim-tiny

Fixed versions: 2:8.0.1453-1ubuntu1.13+tuxcare.els4

xxd

Fixed versions: 2:8.0.1453-1ubuntu1.13+tuxcare.els4

Complete source record
{
  "id": "0e4131c9608294af964f1149755147035d1dbabed2cf967255abb83cdacaf62b",
  "url": "https://osv.dev/vulnerability/CLSA-2026-1787679179",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Fix CVE(s): CVE-2022-3520",
    "summary": "* SECURITY UPDATE: out-of-bounds read after a Visual block put: do_put() set the '] mark as bd.textcol + totlen - 1 without a lower bound, so a blockwise register whose lines are all empty (y_width becomes -1 in str_to_reg(), giving totlen 0) left the column at -1. With 'selection' set to exclusive, nv_put() then passed that mark to inc(), which dereferenced a pointer before the start of the line buffer. - debian/patches/CVE-2022-3520.patch: clamp curbuf->b_op_end.col to 0 in src/ops.c; matches upstream patch 9.0.0765. - CVE-2022-3520",
    "evidence": "osv:CLSA-2026-1787679179",
    "products": [
      {
        "name": {
          "value": "vim",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2:8.0.1453-1ubuntu1.13+tuxcare.els4",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "vim-athena",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2:8.0.1453-1ubuntu1.13+tuxcare.els4",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "vim-common",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2:8.0.1453-1ubuntu1.13+tuxcare.els4",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "vim-doc",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2:8.0.1453-1ubuntu1.13+tuxcare.els4",
            "evidence": "/affected/3/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "vim-gnome",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2:8.0.1453-1ubuntu1.13+tuxcare.els4",
            "evidence": "/affected/4/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "vim-gtk",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2:8.0.1453-1ubuntu1.13+tuxcare.els4",
            "evidence": "/affected/5/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "vim-gtk3",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2:8.0.1453-1ubuntu1.13+tuxcare.els4",
            "evidence": "/affected/6/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "vim-gui-common",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2:8.0.1453-1ubuntu1.13+tuxcare.els4",
            "evidence": "/affected/7/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "vim-nox",
          "evidence": "/affected/8/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2:8.0.1453-1ubuntu1.13+tuxcare.els4",
            "evidence": "/affected/8/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "vim-runtime",
          "evidence": "/affected/9/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2:8.0.1453-1ubuntu1.13+tuxcare.els4",
            "evidence": "/affected/9/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "vim-tiny",
          "evidence": "/affected/10/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2:8.0.1453-1ubuntu1.13+tuxcare.els4",
            "evidence": "/affected/10/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "xxd",
          "evidence": "/affected/11/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2:8.0.1453-1ubuntu1.13+tuxcare.els4",
            "evidence": "/affected/11/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CLSA-2026-1787679179",
      "aliases": [
        "CLSA-2026-1787679179"
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2:8.0.1453-1ubuntu1.13+tuxcare.els4"
                }
              ]
            }
          ],
          "package": {
            "name": "vim",
            "purl": "pkg:deb/tuxcare/vim?distro=ubuntu-18.04",
            "ecosystem": "TuxCare:Ubuntu:18.04"
          },
          "database_specific": {
            "source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/ubuntu18.04els/CLSA-2026-1787679179.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2:8.0.1453-1ubuntu1.13+tuxcare.els4"
                }
              ]
            }
          ],
          "package": {
            "name": "vim-athena",
            "purl": "pkg:deb/tuxcare/vim-athena?distro=ubuntu-18.04",
            "ecosystem": "TuxCare:Ubuntu:18.04"
          },
          "database_specific": {
            "source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/ubuntu18.04els/CLSA-2026-1787679179.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2:8.0.1453-1ubuntu1.13+tuxcare.els4"
                }
              ]
            }
          ],
          "package": {
            "name": "vim-common",
            "purl": "pkg:deb/tuxcare/vim-common?distro=ubuntu-18.04",
            "ecosystem": "TuxCare:Ubuntu:18.04"
          },
          "database_specific": {
            "source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/ubuntu18.04els/CLSA-2026-1787679179.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2:8.0.1453-1ubuntu1.13+tuxcare.els4"
                }
              ]
            }
          ],
          "package": {
            "name": "vim-doc",
            "purl": "pkg:deb/tuxcare/vim-doc?distro=ubuntu-18.04",
            "ecosystem": "TuxCare:Ubuntu:18.04"
          },
          "database_specific": {
            "source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/ubuntu18.04els/CLSA-2026-1787679179.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2:8.0.1453-1ubuntu1.13+tuxcare.els4"
                }
              ]
            }
          ],
          "package": {
            "name": "vim-gnome",
            "purl": "pkg:deb/tuxcare/vim-gnome?distro=ubuntu-18.04",
            "ecosystem": "TuxCare:Ubuntu:18.04"
          },
          "database_specific": {
            "source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/ubuntu18.04els/CLSA-2026-1787679179.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2:8.0.1453-1ubuntu1.13+tuxcare.els4"
                }
              ]
            }
          ],
          "package": {
            "name": "vim-gtk",
            "purl": "pkg:deb/tuxcare/vim-gtk?distro=ubuntu-18.04",
            "ecosystem": "TuxCare:Ubuntu:18.04"
          },
          "database_specific": {
            "source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/ubuntu18.04els/CLSA-2026-1787679179.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2:8.0.1453-1ubuntu1.13+tuxcare.els4"
                }
              ]
            }
          ],
          "package": {
            "name": "vim-gtk3",
            "purl": "pkg:deb/tuxcare/vim-gtk3?distro=ubuntu-18.04",
            "ecosystem": "TuxCare:Ubuntu:18.04"
          },
          "database_specific": {
            "source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/ubuntu18.04els/CLSA-2026-1787679179.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2:8.0.1453-1ubuntu1.13+tuxcare.els4"
                }
              ]
            }
          ],
          "package": {
            "name": "vim-gui-common",
            "purl": "pkg:deb/tuxcare/vim-gui-common?distro=ubuntu-18.04",
            "ecosystem": "TuxCare:Ubuntu:18.04"
          },
          "database_specific": {
            "source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/ubuntu18.04els/CLSA-2026-1787679179.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2:8.0.1453-1ubuntu1.13+tuxcare.els4"
                }
              ]
            }
          ],
          "package": {
            "name": "vim-nox",
            "purl": "pkg:deb/tuxcare/vim-nox?distro=ubuntu-18.04",
            "ecosystem": "TuxCare:Ubuntu:18.04"
          },
          "database_specific": {
            "source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/ubuntu18.04els/CLSA-2026-1787679179.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2:8.0.1453-1ubuntu1.13+tuxcare.els4"
                }
              ]
            }
          ],
          "package": {
            "name": "vim-runtime",
            "purl": "pkg:deb/tuxcare/vim-runtime?distro=ubuntu-18.04",
            "ecosystem": "TuxCare:Ubuntu:18.04"
          },
          "database_specific": {
            "source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/ubuntu18.04els/CLSA-2026-1787679179.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2:8.0.1453-1ubuntu1.13+tuxcare.els4"
                }
              ]
            }
          ],
          "package": {
            "name": "vim-tiny",
            "purl": "pkg:deb/tuxcare/vim-tiny?distro=ubuntu-18.04",
            "ecosystem": "TuxCare:Ubuntu:18.04"
          },
          "database_specific": {
            "source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/ubuntu18.04els/CLSA-2026-1787679179.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2:8.0.1453-1ubuntu1.13+tuxcare.els4"
                }
              ]
            }
          ],
          "package": {
            "name": "xxd",
            "purl": "pkg:deb/tuxcare/xxd?distro=ubuntu-18.04",
            "ecosystem": "TuxCare:Ubuntu:18.04"
          },
          "database_specific": {
            "source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/ubuntu18.04els/CLSA-2026-1787679179.json"
          }
        }
      ],
      "modified": "2026-10-26T09:32:03.626392576Z",
      "provider": "osv",
      "upstream": [
        "CVE-2022-3520"
      ],
      "references": [
        "https://errata.tuxcare.com/els_os/ubuntu18.04els/CLSA-2026-1787679179.html",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-3520"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2022-3520",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 449542,
  "published_at": "2026-08-25T17:33:09+00:00"
}