CVE-2024-47814 use-after-free when closing buffers in Vim
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
Description
Vim is an open source, command line text editor. A use-after-free was found in Vim < 9.1.0764. When closing a buffer (visible in a window) a BufWinLeave auto command can cause an use-after-free if this auto command happens to re-open the same buffer in a new split window. Impact is low since the user must have intentionally set up such a strange auto command and run some buffer unload commands. However this may lead to a crash. This issue has been addressed in version 9.1.0764 and all users are advised to upgrade. There are no known workarounds for this vulnerability.
Upgrade path
12 packages: 11 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| netapp bootstrap os | All versions | No fix listed | No fix yet |
| alpine/vim(Alpine v3.21) | < 9.1.0936-r0 | 9.1.0936-r0 | Fixed |
| alpine/vim(Alpine v3.22) | < 9.1.0936-r0 | 9.1.0936-r0 | Fixed |
| alpine/vim(Alpine v3.23) | < 9.1.0936-r0 | 9.1.0936-r0 | Fixed |
| alpine/vim(Alpine v3.24) | < 9.1.0936-r0 | 9.1.0936-r0 | Fixed |
| debian/vim(Debian 12) | < 2:9.0.1378-2+deb12u1; = 2:9.0.1378-2 | 2:9.0.1378-2+deb12u1 | Fixed |
| debian/vim(Debian 13) | < 2:9.1.0777-1 | 2:9.1.0777-1 | Fixed |
| debian/vim(Debian 14) | < 2:9.1.0777-1 | 2:9.1.0777-1 | Fixed |
| Microsoft azure linux | < 9.1.0791-1 | 9.1.0791-1 | Fixed |
| ubuntu/vim(Ubuntu 22.04) | < 2:8.2.3995-1ubuntu2.21 | 2:8.2.3995-1ubuntu2.21 | Fixed |
| ubuntu/vim(Ubuntu 24.04) | < 2:9.1.0016-1ubuntu7.5 | 2:9.1.0016-1ubuntu7.5 | Fixed |
| vim | < 9.1.0764; = < v9.1.0764 | 9.1.0764 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Microsoft azure linux | < 9.1.0791-1 | 9.1.0791-1 |
| debian/vim(Debian:12) | < 2:9.0.1378-2+deb12u1 | 2:9.0.1378-2+deb12u1 |
| debian/vim(Debian:12) | = 2:9.0.1378-2 | No fix listed |
| debian/vim(Debian:13) | < 2:9.1.0777-1 | 2:9.1.0777-1 |
| debian/vim(Debian:14) | < 2:9.1.0777-1 | 2:9.1.0777-1 |
| ubuntu/vim(Ubuntu:22.04) | < 2:8.2.3995-1ubuntu2.21 | 2:8.2.3995-1ubuntu2.21 |
| vim | = < v9.1.0764 | No fix listed |
| alpine/vim(Alpine:v3.21) | < 9.1.0936-r0 | 9.1.0936-r0 |
| alpine/vim(Alpine:v3.22) | < 9.1.0936-r0 | 9.1.0936-r0 |
| alpine/vim(Alpine:v3.23) | < 9.1.0936-r0 | 9.1.0936-r0 |
| alpine/vim(Alpine:v3.24) | < 9.1.0936-r0 | 9.1.0936-r0 |
| ubuntu/vim(Ubuntu:24.04) | < 2:9.1.0016-1ubuntu7.5 | 2:9.1.0016-1ubuntu7.5 |
| vim | < 9.1.0764 | 9.1.0764 |
| netapp bootstrap os | All versions | No fix listed |
References
- MSRC Security Update Guide vendor-advisory
- vim vendor-advisory
- Debian Security Tracker CVE-2024-47814 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-7131-1 vendor-advisory
- www.cve.org
- https://github.com/vim/vim/security/advisories/GHSA-rj48-v4mq-j4vg vendor-advisory
- https://github.com/vim/vim/commit/51b62387be93c65fa56bbabe1c3 patch
- security.netapp.com third-party-advisory
- lists.debian.org
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking