vim: Fix of 4 CVEs
- CVE-2022-2175: fix invalid memory access in cmdline_insert_reg() when using an expression on the command line; save/restore new_cmdpos around the expression evaluation (ex_getln.c, upstream patch 8.2.5148; hunk 3 context adjusted for 8.2.2637) - CVE-2022-3256: fix use-after-free in movemark() when an autocommand changes the mark; make a local copy of the fmark before potentially triggering buffer autocommands (mark.c, upstream patch 9.0.0530) - CVE-2022-4292: fix use-after-free in did_set_spelllang() when a SpellFileMissing autocommand uses :bwipe to close the current window; also bail out when the window is no longer valid (spell.c, upstream patch 9.0.0882) - CVE-2022-3324: fix negative-index buffer access caused by negative window width; clamp next_curwin_size in win_equal_rec() and clamp wp->w_width in win_new_width() (window.c, upstream patch 9.0.0598)
- Products
- vim-X11, vim-common, vim-enhanced, vim-filesystem, vim-minimal
- Affected versions
- Not specified
- Fixed versions
- 2:8.2.2637-22.el9_2.1.tuxcare.els21
- CVEs
- CVE-2022-2175, CVE-2022-3256, CVE-2022-3324, CVE-2022-4292
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 13:49 UTC · Revision 1
Source evidence
- CVE-2022-2175: fix invalid memory access in cmdline_insert_reg() when using an expression on the command line; save/restore new_cmdpos around the expression evaluation (ex_getln.c, upstream patch 8.2.5148; hunk 3 context adjusted for 8.2.2637) - CVE-2022-3256: fix use-after-free in movemark() when an autocommand changes the mark; make a local copy of the fmark before potentially triggering buffer autocommands (mark.c, upstream patch 9.0.0530) - CVE-2022-4292: fix use-after-free in did_set_spelllang() when a SpellFileMissing autocommand uses :bwipe to close the current window; also bail out when the window is no longer valid (spell.c, upstream patch 9.0.0882) - CVE-2022-3324: fix negative-index buffer access caused by negative window width; clamp next_curwin_size in win_equal_rec() and clamp wp->w_width in win_new_width() (window.c, upstream patch 9.0.0598)
osv:CLSA-2026-1778602862
vim-X11
Fixed versions: 2:8.2.2637-22.el9_2.1.tuxcare.els21
vim-common
Fixed versions: 2:8.2.2637-22.el9_2.1.tuxcare.els21
vim-enhanced
Fixed versions: 2:8.2.2637-22.el9_2.1.tuxcare.els21
vim-filesystem
Fixed versions: 2:8.2.2637-22.el9_2.1.tuxcare.els21
vim-minimal
Fixed versions: 2:8.2.2637-22.el9_2.1.tuxcare.els21
Complete source record
{
"id": "5fe55a04b319a43d3ef36f5b1382e8d3f5fd51112cc7108b68a77c8f63c8f1e7",
"url": "https://osv.dev/vulnerability/CLSA-2026-1778602862",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "vim: Fix of 4 CVEs",
"summary": "- CVE-2022-2175: fix invalid memory access in cmdline_insert_reg() when using an expression on the command line; save/restore new_cmdpos around the expression evaluation (ex_getln.c, upstream patch 8.2.5148; hunk 3 context adjusted for 8.2.2637) - CVE-2022-3256: fix use-after-free in movemark() when an autocommand changes the mark; make a local copy of the fmark before potentially triggering buffer autocommands (mark.c, upstream patch 9.0.0530) - CVE-2022-4292: fix use-after-free in did_set_spelllang() when a SpellFileMissing autocommand uses :bwipe to close the current window; also bail out when the window is no longer valid (spell.c, upstream patch 9.0.0882) - CVE-2022-3324: fix negative-index buffer access caused by negative window width; clamp next_curwin_size in win_equal_rec() and clamp wp->w_width in win_new_width() (window.c, upstream patch 9.0.0598)",
"evidence": "osv:CLSA-2026-1778602862",
"products": [
{
"name": {
"value": "vim-X11",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2:8.2.2637-22.el9_2.1.tuxcare.els21",
"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_2.1.tuxcare.els21",
"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_2.1.tuxcare.els21",
"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_2.1.tuxcare.els21",
"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_2.1.tuxcare.els21",
"evidence": "/affected/4/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CLSA-2026-1778602862",
"aliases": [
"CLSA-2026-1778602862"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2:8.2.2637-22.el9_2.1.tuxcare.els21"
}
]
}
],
"package": {
"name": "vim-X11",
"purl": "pkg:rpm/tuxcare/vim-X11?distro=almalinux-9.2",
"ecosystem": "TuxCare:AlmaLinux:9.2"
},
"database_specific": {
"source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/almalinux9.2esu/CLSA-2026-1778602862.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2:8.2.2637-22.el9_2.1.tuxcare.els21"
}
]
}
],
"package": {
"name": "vim-common",
"purl": "pkg:rpm/tuxcare/vim-common?distro=almalinux-9.2",
"ecosystem": "TuxCare:AlmaLinux:9.2"
},
"database_specific": {
"source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/almalinux9.2esu/CLSA-2026-1778602862.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2:8.2.2637-22.el9_2.1.tuxcare.els21"
}
]
}
],
"package": {
"name": "vim-enhanced",
"purl": "pkg:rpm/tuxcare/vim-enhanced?distro=almalinux-9.2",
"ecosystem": "TuxCare:AlmaLinux:9.2"
},
"database_specific": {
"source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/almalinux9.2esu/CLSA-2026-1778602862.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2:8.2.2637-22.el9_2.1.tuxcare.els21"
}
]
}
],
"package": {
"name": "vim-filesystem",
"purl": "pkg:rpm/tuxcare/vim-filesystem?distro=almalinux-9.2",
"ecosystem": "TuxCare:AlmaLinux:9.2"
},
"database_specific": {
"source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/almalinux9.2esu/CLSA-2026-1778602862.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2:8.2.2637-22.el9_2.1.tuxcare.els21"
}
]
}
],
"package": {
"name": "vim-minimal",
"purl": "pkg:rpm/tuxcare/vim-minimal?distro=almalinux-9.2",
"ecosystem": "TuxCare:AlmaLinux:9.2"
},
"database_specific": {
"source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/almalinux9.2esu/CLSA-2026-1778602862.json"
}
}
],
"modified": "2026-10-21T10:45:35.618107596Z",
"provider": "osv",
"upstream": [
"CVE-2022-2175",
"CVE-2022-3256",
"CVE-2022-3324",
"CVE-2022-4292"
],
"references": [
"https://errata.tuxcare.com/els_os/almalinux9.2esu/CLSA-2026-1778602862.html"
]
},
"related_cves": [
{
"value": "CVE-2022-2175",
"evidence": "/upstream"
},
{
"value": "CVE-2022-3256",
"evidence": "/upstream"
},
{
"value": "CVE-2022-3324",
"evidence": "/upstream"
},
{
"value": "CVE-2022-4292",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 392153,
"published_at": "2026-05-12T16:21:08+00:00"
}