Security
Headlines
HeadlinesLatestCVEs

Headline

CVE-2022-2817: patch 9.0.0213: using freed memory with error in assert argument · vim/vim@249e1b9

Use After Free in GitHub repository vim/vim prior to 9.0.0212.

CVE
#git

@@ -597,6 +597,7 @@ f_assert_fails(typval_T *argvars, typval_T *rettv)

int save_trylevel = trylevel;

int called_emsg_before = called_emsg;

char *wrong_arg_msg = NULL;

char_u *tofree = NULL;

if (check_for_string_or_number_arg(argvars, 0) == FAIL

|| check_for_opt_string_or_list_arg(argvars, 1) == FAIL

@@ -660,13 +661,17 @@ f_assert_fails(typval_T *argvars, typval_T *rettv)

}

else if (list->lv_len == 2)

{

tv = &list->lv_u.mat.lv_last->li_tv;

actual = get_vim_var_str(VV_ERRMSG);

expected = tv_get_string_buf_chk(tv, buf);

if (!pattern_match(expected, actual, FALSE))

// make a copy, an error in pattern_match() may free it

tofree = actual = vim_strsave(get_vim_var_str(VV_ERRMSG));

if (actual != NULL)

{

error_found = TRUE;

expected_str = expected;

tv = &list->lv_u.mat.lv_last->li_tv;

expected = tv_get_string_buf_chk(tv, buf);

if (!pattern_match(expected, actual, FALSE))

{

error_found = TRUE;

expected_str = expected;

}

}

}

}

@@ -749,6 +754,7 @@ f_assert_fails(typval_T *argvars, typval_T *rettv)

msg_scrolled = 0;

lines_left = Rows;

VIM_CLEAR(emsg_assert_fails_msg);

vim_free(tofree);

set_vim_var_string(VV_ERRMSG, NULL, 0);

if (wrong_arg_msg != NULL)

emsg(_(wrong_arg_msg));

Related news

Ubuntu Security Notice USN-6302-1

Ubuntu Security Notice 6302-1 - 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. It was discovered that Vim did not properly perform bounds checks in the diff mode in certain situations. An attacker could possibly use this issue to cause a denial of service. This issue only affected Ubuntu 18.04 LTS, Ubuntu 20.04 LTS and Ubuntu 22.04 LTS.

Gentoo Linux Security Advisory 202305-16

Gentoo Linux Security Advisory 202305-16 - Multiple vulnerabilities have been found in Vim, the worst of which could result in denial of service. Versions less than 9.0.1157 are affected.

CVE-2022-46756: DSA-2022-335: Dell VxRail Security Update for Multiple Third-Party Component Vulnerabilities

Dell VxRail, versions prior to 7.0.410, contain a Container Escape Vulnerability. A local high-privileged attacker could potentially exploit this vulnerability, leading to the execution of arbitrary OS commands on the container's underlying OS. Exploitation may lead to a system take over by an attacker.

Scanvus now supports Vulners and Vulns.io VM Linux vulnerability detection APIs

Hello everyone! Great news for my open source Scanvus project! You can now perform vulnerability checks on Linux hosts and docker images not only using the Vulners.com API, but also with the Vulns.io VM API. It’s especially nice that all the code to support the new API was written and contributed by colleagues from Vulns.io. […]

CVE: Latest News

CVE-2023-50976: Transactions API Authorization by oleiman · Pull Request #14969 · redpanda-data/redpanda
CVE-2023-6905
CVE-2023-6903
CVE-2023-6904
CVE-2023-3907