Bug 2307454 (CVE-2024-43790) - CVE-2024-43790 vim: Out of bounds read when performing a search command
Summary: CVE-2024-43790 vim: Out of bounds read when performing a search command
Keywords:
Status: NEW
Alias: CVE-2024-43790
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: 2310919
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-08-22 22:20 UTC by OSIDB Bzimport
Modified: 2024-09-10 12:55 UTC (History)
5 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-08-22 22:20:31 UTC
Vim is an open source command line text editor. When performing a search and displaying the search-count message is disabled (:set shm+=S), the search pattern is displayed at the bottom of the screen in a buffer (msgbuf). When right-left mode (:set rl) is enabled, the search pattern is reversed. This happens by allocating a new buffer. If the search pattern contains some ASCII NUL characters, the buffer allocated will be smaller than the original allocated buffer (because for allocating the reversed buffer, the strlen() function is called, which only counts until it notices an ASCII NUL byte ) and thus the original length indicator is wrong. This causes an overflow when accessing characters inside the msgbuf by the previously (now wrong) length of the msgbuf. The issue has been fixed as of Vim patch v9.1.0689.


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