Security
Headlines
HeadlinesLatestCVEs

Headline

CVE-2022-2571: patch 9.0.0102: reading past end of line with insert mode completion · vim/vim@a6f9e30

Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.0101.

CVE
#git#buffer_overflow

Permalink

Browse files

patch 9.0.0102: reading past end of line with insert mode completion

Problem: Reading past end of line with insert mode completion. Solution: Check text length.

  • Loading branch information

1 parent 4e677b9 commit a6f9e300161f4cb54713da22f65b261595e8e614

Showing 3 changed files with 11 additions and 1 deletion.

    • insexpand.c
      • test_ins_complete.vim
    • version.c

@@ -3501,7 +3501,7 @@ ins_comp_get_next_word_or_line(

{

char_u *tmp_ptr = ptr;

if (compl_status_adding())

if (compl_status_adding() && compl_length <= (int)STRLEN(tmp_ptr))

{

tmp_ptr += compl_length;

// Skip if already inside a word.

@@ -2142,5 +2142,13 @@ func Test_ins_complete_add()

bwipe!

endfunc

func Test_ins_complete_end_of_line()

" this was reading past the end of the line

new

norm 8o€ý

sil! norm o

bwipe!

endfunc

" vim: shiftwidth=2 sts=2 expandtab

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

static int included_patches[] =

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

/**/

102,

/**/

101,

/**/

0 comments on commit a6f9e30

Please sign in to comment.

Related news

Ubuntu Security Notice USN-5995-1

Ubuntu Security Notice 5995-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 possible execute arbitrary code. This issue only affected Ubuntu 14.04 ESM, Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, and Ubuntu 22.04 LTS.

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