CVE Vulnerabilities

CVE-2022-0156

Use After Free

Published: Jan 10, 2022 | Modified: Jun 17, 2026
CVSS 3.x
5.5
MEDIUM
Source:
NVD
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS 2.x
4.3 MEDIUM
AV:N/AC:M/Au:N/C:N/I:N/A:P
RedHat/V2
RedHat/V3
5.5 MODERATE
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Ubuntu
MEDIUM

vim is vulnerable to Use After Free

Weakness

The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory “belongs” to the code that operates on the new pointer.

Affected Software

NameVendorStart VersionEnd Version
VimVim*8.2.4040 (excluding)
VimUbuntuhirsute*
VimUbuntuimpish*
VimUbuntujammy*
VimUbuntutrusty*
VimUbuntuupstream*
VimUbuntuxenial*

Potential Mitigations

References