vim: Fix of 3 CVEs
- 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_2.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:49 UTC · Revision 1
Source evidence
- 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-1778611387
vim-X11
Fixed versions: 2:8.2.2637-22.el9_2.1.tuxcare.els26
vim-common
Fixed versions: 2:8.2.2637-22.el9_2.1.tuxcare.els26
vim-enhanced
Fixed versions: 2:8.2.2637-22.el9_2.1.tuxcare.els26
vim-filesystem
Fixed versions: 2:8.2.2637-22.el9_2.1.tuxcare.els26
vim-minimal
Fixed versions: 2:8.2.2637-22.el9_2.1.tuxcare.els26
Complete source record
{
"id": "a0d46cf2c81c63bb50da3007bf49bd8258f1f2bffcd893c28f9e0eabc9b7aa12",
"url": "https://osv.dev/vulnerability/CLSA-2026-1778611387",
"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-1778611387",
"products": [
{
"name": {
"value": "vim-X11",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2:8.2.2637-22.el9_2.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_2.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_2.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_2.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_2.1.tuxcare.els26",
"evidence": "/affected/4/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CLSA-2026-1778611387",
"aliases": [
"CLSA-2026-1778611387"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2:8.2.2637-22.el9_2.1.tuxcare.els26"
}
]
}
],
"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-1778611387.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2:8.2.2637-22.el9_2.1.tuxcare.els26"
}
]
}
],
"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-1778611387.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2:8.2.2637-22.el9_2.1.tuxcare.els26"
}
]
}
],
"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-1778611387.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2:8.2.2637-22.el9_2.1.tuxcare.els26"
}
]
}
],
"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-1778611387.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2:8.2.2637-22.el9_2.1.tuxcare.els26"
}
]
}
],
"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-1778611387.json"
}
}
],
"modified": "2026-10-21T10:45:35.562732618Z",
"provider": "osv",
"upstream": [
"CVE-2022-2182",
"CVE-2022-2257",
"CVE-2022-2849"
],
"references": [
"https://errata.tuxcare.com/els_os/almalinux9.2esu/CLSA-2026-1778611387.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": 392152,
"published_at": "2026-05-12T18:43:13+00:00"
}