Security
Headlines
HeadlinesLatestCVEs

Headline

CVE-2022-2816: patch 9.0.0212: invalid memory access when compiling :unlet · vim/vim@dbdd16b

Out-of-bounds Read in GitHub repository vim/vim prior to 9.0.0211.

CVE
#git

Permalink

Browse files

patch 9.0.0212: invalid memory access when compiling :unlet

Problem: Invalid memory access when compiling :unlet. Solution: Don’t read past the end of the line.

  • Loading branch information

1 parent d1d8f6b commit dbdd16b62560413abcc3c8e893cc3010ccf31666

Showing 3 changed files with 17 additions and 2 deletions.

      • test_vim9_cmd.vim
    • version.c
    • vim9cmds.c

@@ -1740,12 +1740,19 @@ def Test_lockvar()

lines =<< trim END

def _()

s:0([], s:0)

lockv

enddef

defcomp

END

v9.CheckScriptFailure(lines, 'E179’, 2)

v9.CheckScriptFailure(lines, 'E179’, 1)

lines =<< trim END

def T()

unlet

enddef

defcomp

END

v9.CheckScriptFailure(lines, 'E179’, 1)

enddef

def Test_substitute_expr()

@@ -735,6 +735,8 @@ static char *(features[]) =

static int included_patches[] =

{ /* Add new patch number below this line */

/**/

212,

/**/

211,

/**/

@@ -92,6 +92,12 @@ free_locals(cctx_T *cctx)

int

check_vim9_unlet(char_u *name)

{

if (*name == NUL)

{

semsg(_(e_argument_required_for_str), “unlet”);

return FAIL;

}

if (name[1] != ‘:’ || vim_strchr((char_u *)"gwtb", *name) == NULL)

{

// “unlet s:var” is allowed in legacy script.

0 comments on commit dbdd16b

Please sign in to comment.

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