# CVE-2024-41957: Vim double free in src/alloc.c:616

- Priority: **Routine**
- Reason: Not severe (CVSS 4.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-08-01 · Modified: 2025-11-04
- Aliases: ALPINE-CVE-2024-41957, UBUNTU-CVE-2024-41957, DEBIAN-CVE-2024-41957
- Record: https://cvemate.com/vulnerability/CVE-2024-41957 · JSON: https://cvemate.com/vulnerability/CVE-2024-41957/json

## Description

```text
Vim is an open source command line text editor. Vim < v9.1.0647 has double free in src/alloc.c:616. When closing a window, the corresponding tagstack data will be cleared and freed. However a bit later, the quickfix list belonging to that window will also be cleared and if that quickfix list points to the same tagstack data, Vim will try to free it again, resulting in a double-free/use-after-free access exception. Impact is low since the user must intentionally execute vim with several non-default flags,
but it may cause a crash of Vim. The issue has been fixed as of Vim patch v9.1.0647
```

## Signals

- CVSS: 5.3 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
- EPSS: 0.366%, percentile 32.465%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine vim (Alpine Linux): \< 9.1.0652-r0
- debian vim (Debian): All versions (No fix recorded) \| \< 2:9.1.0698-1
- ubuntu vim (Ubuntu): \< 2:7.4.052-1ubuntu3.1+esm18 \| \< 2:7.4.1689-3ubuntu1.5+esm24 \| \< 2:8.0.1453-1ubuntu1.13+esm9 \| \< 2:8.1.2269-1ubuntu5.24 \| \< 2:8.2.3995-1ubuntu2.18 \| \< 2:9.1.0016-1ubuntu7.2
- vim vim: \< 9.1.0647

## References

- <https://github.com/vim/vim/security/advisories/GHSA-f9cr-gv85-hcr4>
- <https://github.com/vim/vim/commit/8a0bbe7b8aad6f8da28dee218c01bc8a0185a>
- <http://www.openwall.com/lists/oss-security/2024/08/01/1>
- <https://security.netapp.com/advisory/ntap-20241129-0007/>
- <http://seclists.org/fulldisclosure/2024/Sep/33>
- <https://security.alpinelinux.org/vuln/CVE-2024-41957>
- <https://ubuntu.com/security/CVE-2024-41957>
- <https://www.cve.org/CVERecord?id=CVE-2024-41957>
- <https://ubuntu.com/security/notices/USN-6993-1>
- <https://security-tracker.debian.org/tracker/CVE-2024-41957>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-41957>

---

Data as of 2026-12-05T04:45:23.474Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
