Headline
CVE-2021-3903: patch 8.2.3564: invalid memory access when scrolling without valid sc… · vim/vim@777e7c2
vim is vulnerable to Heap-based Buffer Overflow
@@ -34,14 +34,14 @@ func CountSpaces(type, …)
else
silent exe “normal! `[v`]y”
endif
let g:a=strlen(substitute(@@, '[^ ]', '’, ‘g’))
let g:a = strlen(substitute(@@, '[^ ]', '’, ‘g’))
let &selection = sel_save
let @@ = reg_save
endfunc
func OpfuncDummy(type, …)
" for testing operatorfunc
let g:opt=&linebreak
let g:opt = &linebreak
if a:0 " Invoked from Visual mode, use gv command.
silent exe “normal! gvy”
@@ -52,7 +52,7 @@ func OpfuncDummy(type, …)
endif
" Create a new dummy window
new
let g:bufnr=bufnr(‘%’)
let g:bufnr = bufnr(‘%’)
endfunc
func Test_normal00_optrans()
@@ -987,6 +987,22 @@ func Test_vert_scroll_cmds()
close!
endfunc
func Test_scroll_in_ex_mode()
" This was using invalid memory because w_botline was invalid.
let lines =<< trim END
diffsplit
norm os00(
call writefile([‘done’], ‘Xdone’)
qa!
END
call writefile(lines, ‘Xscript’)
call assert_equal(1, RunVim([], [], ‘–clean -X -Z -e -s -S Xscript’))
call assert_equal([‘done’], readfile(‘Xdone’))
call delete(‘Xscript’)
call delete(‘Xdone’)
endfunc
" Test for the ‘sidescroll’ option
func Test_sidescroll_opt()
new
Related news
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. […]