Bug 2487989 (CVE-2026-52859) - CVE-2026-52859 vim: Vim: Denial of Service via out-of-bounds write in terminal handling
Summary: CVE-2026-52859 vim: Vim: Denial of Service via out-of-bounds write in termina...
Keywords:
Status: NEW
Alias: CVE-2026-52859
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2488267
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-06-11 19:02 UTC by OSIDB Bzimport
Modified: 2026-09-17 09:57 UTC (History)
17 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2026:66336 0 None None None 2026-09-10 06:31:35 UTC
Red Hat Product Errata RHSA-2026:66348 0 None None None 2026-09-10 08:56:11 UTC
Red Hat Product Errata RHSA-2026:66366 0 None None None 2026-09-10 11:43:03 UTC

Description OSIDB Bzimport 2026-06-11 19:02:47 UTC
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.

Comment 3 errata-xmlrpc 2026-09-10 06:31:33 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2026:66336 https://access.redhat.com/errata/RHSA-2026:66336

Comment 4 errata-xmlrpc 2026-09-10 08:56:09 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2026:66348 https://access.redhat.com/errata/RHSA-2026:66348

Comment 5 errata-xmlrpc 2026-09-10 11:43:01 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2026:66366 https://access.redhat.com/errata/RHSA-2026:66366


Note You need to log in before you can comment on or make changes to this bug.