Vulnerability Information
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
Vulnerability Title
Vim: Out-of-bounds Read in Terminal Screen Snapshot
Vulnerability Description
Vim is an open source, command line text editor. Prior to version 9.2.0565, the update_snapshot() function in src/terminal.c copies the visible terminal screen into the scrollback buffer when a snapshot is taken. For each screen cell it walks the cell's chars[] array with no upper bound, stopping only when it encounters a NUL terminator. When a cell legitimately fills all VTERM_MAX_CHARS_PER_CELL (6) slots — a base character plus five combining marks — the bundled libvterm returns the array without a terminating NUL, so the loop reads past the fixed six-element array and appends the out-of-bounds values to a buffer reserved for only six characters. A program whose output is rendered inside a :terminal window can trigger this with a short byte sequence and no Vim scripting, leading to a crash. This issue has been patched in version 9.2.0565.
CVSS Information
N/A
Vulnerability Type
跨界内存读
Vulnerability Title
Vim 缓冲区错误漏洞
Vulnerability Description
Vim是Vim开源的一款跨平台的文本编辑器。 Vim 9.2.0565之前版本存在缓冲区错误漏洞,该漏洞源于update_snapshot()函数在复制可见终端屏幕到滚动缓冲区时,对每个屏幕单元的chars[]数组无上限遍历,当单元填满所有VTERM_MAX_CHARS_PER_CELL(6)个槽位时,libvterm返回无终止NUL的数组,导致越界读取并附加到仅保留6个字符的缓冲区,可能导致崩溃。
CVSS Information
N/A
Vulnerability Type
N/A