CVE-2022-3256
published 2022-09-22CVE-2022-3256: Use After Free in GitHub repository vim/vim prior to 9.0.0530.
PriorityP433high7.8CVSS 3.1
AVLACLPRNUIRSUCHIHAH
EPSS
0.45%
36.0th percentile
Use After Free in GitHub repository vim/vim prior to 9.0.0530.
Affected
22 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | debian_linux | — | — |
| debian | vim | < vim 2:9.0.0626-1 (bookworm) | vim 2:9.0.0626-1 (bookworm) |
| fedoraproject | fedora | — | — |
| fedoraproject | fedora | — | — |
| fedoraproject | fedora | — | — |
| linux | linux_kernel | >= 2.6.16 < 5.4.229 | 5.4.229 |
| linux | linux_kernel | >= 5.11.0 < 5.15.86 | 5.15.86 |
| linux | linux_kernel | >= 5.16.0 < 6.0.16 | 6.0.16 |
| linux | linux_kernel | >= 5.5.0 < 5.10.163 | 5.10.163 |
| linux | linux_kernel | >= 6.1.0 < 6.1.2 | 6.1.2 |
| msrc | cbl2_vim_9.0.0614-1_on_cbl_mariner_2.0 | — | — |
| msrc | cm1_vim_9.0.0614-1_on_cbl_mariner_1.0 | — | — |
| vim | vim | < 9.0.0530 | 9.0.0530 |
| vim | vim | >= 0 < 2:9.0.0626-1 | 2:9.0.0626-1 |
| vim | vim | >= 0 < 2:9.0.0626-1 | 2:9.0.0626-1 |
| vim | vim | >= 0 < 2:9.0.0626-1 | 2:9.0.0626-1 |
| vim | vim | >= 0 < 2:8.1.2269-1ubuntu5.18 | 2:8.1.2269-1ubuntu5.18 |
| vim | vim | >= 0 < 2:8.2.3995-1ubuntu2.12 | 2:8.2.3995-1ubuntu2.12 |
| vim | vim | >= 0 < 2:7.4.052-1ubuntu3.1+esm13 | 2:7.4.052-1ubuntu3.1+esm13 |
| vim | vim | >= 0 < 2:7.4.1689-3ubuntu1.5+esm14 | 2:7.4.1689-3ubuntu1.5+esm14 |
| vim | vim | >= 0 < 2:8.0.1453-1ubuntu1.13+esm5 | 2:8.0.1453-1ubuntu1.13+esm5 |
| vim | vim_vim | >= unspecified < 9.0.0530 | 9.0.0530 |
CVSS provenance
nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv3.07.8HIGHCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
osv7.8HIGH
vendor_debian7.8LOW
vendor_msrc7.8HIGH
vendor_redhat7.8HIGH
vendor_ubuntu7.8HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
configfs: fix possible memory leak in configfs_create_dir()
osv·2025-12-24
CVE-2022-50751 configfs: fix possible memory leak in configfs_create_dir()
configfs: fix possible memory leak in configfs_create_dir()
In the Linux kernel, the following vulnerability has been resolved:
configfs: fix possible memory leak in configfs_create_dir()
kmemleak reported memory leaks in configfs_create_dir():
unreferenced object 0xffff888009f6af00 (size 192):
comm "modprobe", pid 3777, jiffies 4295537735 (age 233.784s)
backtrace:
kmem_cache_alloc (mm/slub.c:3250 mm/slub.c:3256 mm/slub.c:3263 mm/slub.c:3273)
new_fragment (./include/linux/slab.h:600 fs/configfs/dir.c:163)
configfs_register_subsystem (fs/configfs/dir.c:1857)
basic_write (drivers/hwtracing/stm/p_basic.c:14) stm_p_basic
do_one_initcall (init/main.c:1296)
do_init_module (kernel/module/main.c:2455)
...
unreferenced object 0xffff888003ba7180 (size 96):
comm "modprobe", pid 3777, jiffies 429
OSV
vim vulnerabilities
osv·2023-10-09·CVSS 7.8
CVE-2022-3235 [HIGH] vim vulnerabilities
vim vulnerabilities
It was discovered that Vim incorrectly handled memory when opening certain
files. If an attacker could trick a user into opening a specially crafted
file, it could cause Vim to crash, or possibly execute arbitrary code. This
issue only affected Ubuntu 22.04 LTS. (CVE-2022-3235, CVE-2022-3278,
CVE-2022-3297, CVE-2022-3491)
It was discovered that Vim incorrectly handled memory when opening certain
files. If an attacker could trick a user into opening a specially crafted
file, it could cause Vim to crash, or possibly execute arbitrary code. This
issue only affected Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, and Ubuntu 22.04
LTS. (CVE-2022-3352, CVE-2022-4292)
It was discovered that Vim incorrectly handled memory when replacing in
virtualedit mode. An attacker could possibly us
OSV
vim vulnerabilities
osv·2022-12-12·CVSS 7.8
CVE-2022-2345 [HIGH] vim vulnerabilities
vim vulnerabilities
It was discovered that Vim uses freed memory in recurisve substitution of
specially crafted patterns. An attacker could possbly use this to crash Vim
and cause denial of service. (CVE-2022-2345)
It was discovered that Vim makes illegal memory calls when patterns start
with an illegal byte. An attacker could possibly use this to crash Vim,
access or modify memory, or execute arbitrary commands. (CVE-2022-2581)
It was discovered that Vim could be made to crash when parsing invalid line
numbers. An attacker could possbly use this to crash Vim and cause denial
of service. (CVE-2022-3099)
It was discovered that Vim uses freed memory when autocmd changes a mark.
An attacker could possbly use this to crash Vim and cause denial of
service. (CVE-2022-3256)
It was discovered
GHSA
GHSA-cfw9-4m3h-gp62: Use After Free in GitHub repository vim/vim prior to 9
ghsa_unreviewed·2022-09-23
CVE-2022-3256 [HIGH] CWE-416 GHSA-cfw9-4m3h-gp62: Use After Free in GitHub repository vim/vim prior to 9
Use After Free in GitHub repository vim/vim prior to 9.0.0530.
OSV
CVE-2022-3256: Use After Free in GitHub repository vim/vim prior to 9
osv·2022-09-22·CVSS 7.8
CVE-2022-3256 [HIGH] CVE-2022-3256: Use After Free in GitHub repository vim/vim prior to 9
Use After Free in GitHub repository vim/vim prior to 9.0.0530.
Ubuntu
Vim vulnerabilities
vendor_ubuntu·2023-10-09·CVSS 7.8
CVE-2022-3591 [HIGH] Vim vulnerabilities
Title: Vim vulnerabilities
Summary: Several security issues were fixed in Vim.
It was discovered that Vim incorrectly handled memory when opening certain
files. If an attacker could trick a user into opening a specially crafted
file, it could cause Vim to crash, or possibly execute arbitrary code. This
issue only affected Ubuntu 22.04 LTS. (CVE-2022-3235, CVE-2022-3278,
CVE-2022-3297, CVE-2022-3491)
It was discovered that Vim incorrectly handled memory when opening certain
files. If an attacker could trick a user into opening a specially crafted
file, it could cause Vim to crash, or possibly execute arbitrary code. This
issue only affected Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, and Ubuntu 22.04
LTS. (CVE-2022-3352, CVE-2022-4292)
It was discovered that Vim incorrectly handled memory when
Ubuntu
Vim vulnerabilities
vendor_ubuntu·2022-12-12·CVSS 7.8
CVE-2022-3591 [HIGH] Vim vulnerabilities
Title: Vim vulnerabilities
Summary: Several security issues were fixed in Vim.
It was discovered that Vim uses freed memory in recurisve substitution of
specially crafted patterns. An attacker could possbly use this to crash Vim
and cause denial of service. (CVE-2022-2345)
It was discovered that Vim makes illegal memory calls when patterns start
with an illegal byte. An attacker could possibly use this to crash Vim,
access or modify memory, or execute arbitrary commands. (CVE-2022-2581)
It was discovered that Vim could be made to crash when parsing invalid line
numbers. An attacker could possbly use this to crash Vim and cause denial
of service. (CVE-2022-3099)
It was discovered that Vim uses freed memory when autocmd changes a mark.
An attacker could possbly use this to crash Vim and
Red Hat
vim: use-after-free in movemark() at mark.c
vendor_redhat·2022-09-22·CVSS 7.8
CVE-2022-3256 [HIGH] CWE-416 vim: use-after-free in movemark() at mark.c
vim: use-after-free in movemark() at mark.c
Use After Free in GitHub repository vim/vim prior to 9.0.0530.
A heap use-after-free vulnerability was found in vim's movemark() function of the src/mark.c file. This issue occurs because vim uses freed memory when 'autocmd' changes the mark. This flaw allows an attacker to trick a user into opening a specially crafted file, triggering a heap use-after-free that causes an application to crash, possibly executing code and corrupting memory.
Statement: Red Hat Product Security has rated this issue as having a Low security impact, because the "victim" has to run an untrusted file IN SCRIPT MODE. Someone who is running untrusted files in script mode is equivalent to someone just taking a random python script and running it.
Since Red Hat Enterpris
Microsoft
Use After Free in vim/vim
vendor_msrc·2022-09-13·CVSS 7.8
CVE-2022-3256 [HIGH] CWE-416 Use After Free in vim/vim
Use After Free in vim/vim
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
@huntrdev: @huntrdev
Customer Action Required: Yes
Remediation: CBL-Mariner Releases
Reference: https://learn.microsoft.com/en-us/a
Debian
CVE-2022-3256: vim - Use After Free in GitHub repository vim/vim prior to 9.0.0530.
vendor_debian·2022·CVSS 7.8
CVE-2022-3256 [HIGH] CVE-2022-3256: vim - Use After Free in GitHub repository vim/vim prior to 9.0.0530.
Use After Free in GitHub repository vim/vim prior to 9.0.0530.
Scope: local
bookworm: resolved (fixed in 2:9.0.0626-1)
bullseye: open
forky: resolved (fixed in 2:9.0.0626-1)
sid: resolved (fixed in 2:9.0.0626-1)
trixie: resolved (fixed in 2:9.0.0626-1)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/vim/vim/commit/8ecfa2c56b4992c7f067b92488aa9acea5a454adhttps://huntr.dev/bounties/8336a3df-212a-4f8d-ae34-76ef1f936bb3https://lists.debian.org/debian-lts-announce/2022/11/msg00032.htmlhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4QI7AETXBHPC7SGA77Q7O5IEGULWYET7/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GTBVD4J2SKVSWK4VBN5JP5OEVK6GDS3N/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LSSEWQLK55MCNT4Z2IIJEJYEI5HLCODI/https://security.gentoo.org/glsa/202305-16https://github.com/vim/vim/commit/8ecfa2c56b4992c7f067b92488aa9acea5a454adhttps://huntr.dev/bounties/8336a3df-212a-4f8d-ae34-76ef1f936bb3https://lists.debian.org/debian-lts-announce/2022/11/msg00032.htmlhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4QI7AETXBHPC7SGA77Q7O5IEGULWYET7/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GTBVD4J2SKVSWK4VBN5JP5OEVK6GDS3N/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LSSEWQLK55MCNT4Z2IIJEJYEI5HLCODI/https://security.gentoo.org/glsa/202305-16
2022-09-22
Published