Headline
CVE-2022-2183: patch 8.2.5151: reading beyond the end of the line with lisp indenting · vim/vim@8eba2bd
Out-of-bounds Read in GitHub repository vim/vim prior to 8.2.
Permalink
Browse files
patch 8.2.5151: reading beyond the end of the line with lisp indenting
Problem: Reading beyond the end of the line with lisp indenting. Solution: Avoid going over the NUL at the end of the line.
- Loading branch information
1 parent f7c7c3f commit 8eba2bd291b347e3008aa9e565652d51ad638cfa
Showing 3 changed files with 18 additions and 3 deletions.
- indent.c
- test_lispwords.vim
- version.c
@@ -2076,8 +2076,11 @@ get_lisp_indent(void)
amount += 2;
else
{
that++;
amount++;
if (*that != NUL)
{
that++;
amount++;
}
firsttry = amount;
while (VIM_ISWHITE(*that))
@@ -1,4 +1,5 @@
" Tests for ‘lispwords’ settings being global-local
" Tests for ‘lispwords’ settings being global-local.
" And other lisp indent stuff.
set nocompatible viminfo+=nviminfo
@@ -85,4 +86,13 @@ func Test_lisp_indent()
set nolisp
endfunc
func Test_lisp_indent_works()
" This was reading beyond the end of the line
new
exe “norm a\tü(\<CR>=”
set lisp
norm ==
bwipe!
endfunc
" vim: shiftwidth=2 sts=2 expandtab
@@ -734,6 +734,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
5151,
/**/
5150,
/**/
0 comments on commit 8eba2bd
Please sign in to comment.
Related news
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.
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.
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.
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 - 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.