Security
Headlines
HeadlinesLatestCVEs

Headline

CVE-2022-2287: patch 9.0.0021: invalid memory access when adding word to spell word … · vim/vim@5e59ea5

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

CVE
#git

@@ -4366,6 +4366,23 @@ wordtree_alloc(spellinfo_T *spin)

return (wordnode_T *)getroom(spin, sizeof(wordnode_T), TRUE);

}

/*

* Return TRUE if “word” contains valid word characters.

* Control characters and trailing ‘/’ are invalid. Space is OK.

*/

static int

valid_spell_word(char_u *word)

{

char_u *p;

if (enc_utf8 && !utf_valid_string(word, NULL))

return FALSE;

for (p = word; *p != NUL; p += mb_ptr2len§)

if (*p < ' ' || (p[0] == ‘/’ && p[1] == NUL))

return FALSE;

return TRUE;

}

/*

* Store a word in the tree(s).

* Always store it in the case-folded tree. For a keep-case word this is

@@ -4391,7 +4408,7 @@ store_word(

char_u *p;

// Avoid adding illegal bytes to the word tree.

if (enc_utf8 && !utf_valid_string(word, NULL))

if (!valid_spell_word(word))

return FAIL;

(void)spell_casefold(curwin, word, len, foldword, MAXWLEN);

@@ -6194,7 +6211,7 @@ spell_add_word(

int i;

char_u *spf;

if (enc_utf8 && !utf_valid_string(word, NULL))

if (!valid_spell_word(word))

{

emsg(_(e_illegal_character_in_word));

return;

Related news

Ubuntu Security Notice USN-6270-1

Ubuntu Security Notice 6270-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 incorrectly handled memory when deleting buffers in diff mode. An attacker could possibly use this issue to cause a denial of service. This issue only affected 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. […]

Gentoo Linux Security Advisory 202208-32

Gentoo Linux Security Advisory 202208-32 - Multiple vulnerabilities have been discovered in Vim, the worst of which could result in denial of service. Versions less than 9.0.0060 are affected.

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