CVE-2026-32249 NFA regex engine NULL pointer dereference affects Vim < 9.2.0137
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebianRed Hat
Description
Vim is an open source, command line text editor. From 9.1.0011 to before 9.2.0137, Vim's NFA regex compiler, when encountering a collection containing a combining character as the endpoint of a character range (e.g. [0-0\u05bb]), incorrectly emits the composing bytes of that character as separate NFA states. This corrupts the NFA postfix stack, resulting in NFA_START_COLL having a NULL out1 pointer. When nfa_max_width() subsequently traverses the compiled NFA to estimate match width for the look-behind assertion, it dereferences state->out1->out without a NULL check, causing a segmentation fault. This vulnerability is fixed in 9.2.0137.
Upgrade path
9 packages: 8 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat/vim(Red Hat enterprise_linux 10) | All versions | No fix listed | No fix yet |
| alpine/vim(Alpine v3.23) | >= 9.1.0011, < 9.2.0140-r0 | 9.2.0140-r0 | Fixed |
| alpine/vim(Alpine v3.24) | >= 9.1.0011, < 9.2.0140-r0 | 9.2.0140-r0 | Fixed |
| azure linux vim(Azure Linux 3.0) | < 9.2.0240-1 | 9.2.0240-1 | Fixed |
| cbl-mariner vim(CBL-Mariner 2.0) | < 9.2.0240-1 | 9.2.0240-1 | Fixed |
| debian/vim(Debian 13) | < 2:9.1.1230-2+deb13u1; = 2:9.1.1230-2 | 2:9.1.1230-2+deb13u1 | Fixed |
| debian/vim(Debian 14) | < 2:9.2.0218-1; = 2:9.1.1230-2; = 2:9.1.1385-1; = 2:9.1.1766-1 +7 more | 2:9.2.0218-1 | Fixed |
| ubuntu/vim(Ubuntu 24.04) | < 2:9.1.0016-1ubuntu7.11 | 2:9.1.0016-1ubuntu7.11 | Fixed |
| vim | = >= 9.1.0011, < 9.2.0137; >= 9.1.0011, < 9.2.0137 | 9.2.0137 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| cbl-mariner vim(CBL-Mariner:2.0) | < 9.2.0240-1 | 9.2.0240-1 |
| azure linux vim(Azure Linux:3.0) | < 9.2.0240-1 | 9.2.0240-1 |
| vim | = >= 9.1.0011, < 9.2.0137 | No fix listed |
| debian/vim(Debian:13) | < 2:9.1.1230-2+deb13u1 | 2:9.1.1230-2+deb13u1 |
| debian/vim(Debian:13) | = 2:9.1.1230-2 | No fix listed |
| debian/vim(Debian:14) | < 2:9.2.0218-1 | 2:9.2.0218-1 |
| debian/vim(Debian:14) | = 2:9.1.1230-2 | No fix listed |
| debian/vim(Debian:14) | = 2:9.1.1385-1 | No fix listed |
| debian/vim(Debian:14) | = 2:9.1.1766-1 | No fix listed |
| debian/vim(Debian:14) | = 2:9.1.1829-1 | No fix listed |
| debian/vim(Debian:14) | = 2:9.1.1846-1 | No fix listed |
| debian/vim(Debian:14) | = 2:9.1.1882-1 | No fix listed |
| debian/vim(Debian:14) | = 2:9.1.2103-1 | No fix listed |
| debian/vim(Debian:14) | = 2:9.1.2141-1 | No fix listed |
| debian/vim(Debian:14) | = 2:9.2.0119-1 | No fix listed |
| debian/vim(Debian:14) | = 2:9.2.0136-1 | No fix listed |
| redhat/vim(Red Hat:enterprise_linux:10) | All versions | No fix listed |
| alpine/vim(Alpine:v3.23) | >= 9.1.0011, < 9.2.0140-r0 | 9.2.0140-r0 |
| alpine/vim(Alpine:v3.24) | >= 9.1.0011, < 9.2.0140-r0 | 9.2.0140-r0 |
| ubuntu/vim(Ubuntu:24.04) | < 2:9.1.0016-1ubuntu7.11 | 2:9.1.0016-1ubuntu7.11 |
| vim | >= 9.1.0011, < 9.2.0137 | 9.2.0137 |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- https://github.com/vim/vim/security/advisories/GHSA-9phh-423r-778r vendor-advisory
- https://github.com/vim/vim/commit/36d6e87542cf823d833e451e09a90ee429899cec patch
- https://github.com/vim/vim/releases/tag/v9.2.0137 release-notes
- Debian Security Tracker CVE-2026-32249 vendor-advisory
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2447110 issue-tracking
- www.cve.org
- nvd.nist.gov
- security.alpinelinux.org vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-8171-1 vendor-advisory
- bugs.debian.org issue-tracking