Security
Headlines
HeadlinesLatestCVEs

Headline

CVE-2022-2264: patch 9.0.0011: reading beyond the end of the line with put command · vim/vim@d25f003

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

CVE
#git#buffer_overflow

Permalink

Browse files

patch 9.0.0011: reading beyond the end of the line with put command

Problem: Reading beyond the end of the line with put command. Solution: Adjust the end mark position.

  • Loading branch information

1 parent b0375d4 commit d25f003342aca9889067f2e839963dfeccf1fe05

Showing 3 changed files with 16 additions and 0 deletions.

    • register.c
      • test_put.vim
    • version.c

@@ -1918,6 +1918,8 @@ do_put(

vim_memset(ptr, ' ', (size_t)spaces);

ptr += spaces;

}

else

totlen -= spaces; // didn’t use these spaces

}

// may insert some spaces after the new text

@@ -219,5 +219,17 @@ func Test_put_empty_register()

bwipe!

endfunc

" this was putting the end mark after the end of the line

func Test_put_visual_mode()

edit! SomeNewBuffer

set selection=exclusive

exe “norm o\t”

m0

sil! norm pp

bwipe!

set selection&

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 */

/**/

11,

/**/

10,

/**/

0 comments on commit d25f003

Please sign in to comment.

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