CVE-2022-1616 - Use After Free

Severity

78%

Complexity

18%

Confidentiality

98%

Use after free in append_command in GitHub repository vim/vim prior to 8.2.4895. This vulnerability is capable of crashing software, Bypass Protection Mechanism, Modify Memory, and possible remote execution

CVSS 3.1 Base Score 7.8. CVSS Attack Vector: local. CVSS Attack Complexity: low. CVSS Vector: (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H).

CVSS 2.0 Base Score 6.8. CVSS Attack Vector: network. CVSS Attack Complexity: medium. CVSS Vector: (AV:N/AC:M/Au:N/C:P/I:P/A:P).

Demo Examples

Use After Free

CWE-416

The following example demonstrates the weakness.


               
}
free(buf3R2);

Use After Free

CWE-416

The following code illustrates a use after free error:


               
}
free(ptr);
logError("operation aborted before commit", ptr);

When an error occurs, the pointer is immediately freed. However, this pointer is later incorrectly used in the logError function.

Overview

First reported 3 years ago

2022-05-07 19:15:00

Last updated 2 years ago

2022-12-08 20:00:00

Affected Software

Debian Linux 9.0

9.0

References

https://github.com/vim/vim/commit/d88934406c5375d88f8f1b65331c9f0cab68cc6c

https://huntr.dev/bounties/40f1d75f-fb2f-4281-b585-a41017f217e2

FEDORA-2022-e92c3ce170

FEDORA-2022-f0db3943d9

[debian-lts-announce] 20220516 [SECURITY] [DLA 3011-1] vim security update

https://github.com/vim/vim/commit/d88934406c5375d88f8f1b65331c9f0cab68cc6c

Patch, Third Party Advisory

https://huntr.dev/bounties/40f1d75f-fb2f-4281-b585-a41017f217e2

Exploit, Patch, Third Party Advisory

FEDORA-2022-e92c3ce170

Mailing List, Third Party Advisory

FEDORA-2022-f0db3943d9

Mailing List, Third Party Advisory

[debian-lts-announce] 20220516 [SECURITY] [DLA 3011-1] vim security update

Mailing List, Third Party Advisory

FEDORA-2022-8df66cdbef

GLSA-202208-32

FEDORA-2022-8df66cdbef

Mailing List, Third Party Advisory

GLSA-202208-32

Third Party Advisory

https://support.apple.com/kb/HT213488

https://support.apple.com/kb/HT213488

Third Party Advisory

20221030 APPLE-SA-2022-10-27-5 Additional information for APPLE-SA-2022-10-24-2 macOS Ventura 13

https://support.apple.com/kb/HT213488

Release Notes, Third Party Advisory

20221030 APPLE-SA-2022-10-27-5 Additional information for APPLE-SA-2022-10-24-2 macOS Ventura 13

Mailing List, Release Notes, Third Party Advisory

20221030 APPLE-SA-2022-10-24-2 macOS Ventura 13

[debian-lts-announce] 20221108 [SECURITY] [DLA 3182-1] vim security update

20221030 APPLE-SA-2022-10-24-2 macOS Ventura 13

Mailing List, Third Party Advisory

[debian-lts-announce] 20221108 [SECURITY] [DLA 3182-1] vim security update

Mailing List, Third Party Advisory

Stay updated

ExploitPedia is constantly evolving. Sign up to receive a notification when we release additional functionality.

Get in touch

If you'd like to report a bug or have any suggestions for improvements then please do get in touch with us using this form. We will get back to you as soon as we can.