跳转到帖子

Amazon Linux 2023: CVE-2024-43374: Medium priority package update for vim

recommended_posts

发布于
  • Members

Amazon Linux 2023: CVE-2024-43374: Medium priority package update for vim

Severity
2
CVSS
(AV:L/AC:L/Au:N/C:N/I:N/A:P)
Published
08/16/2024
Created
02/14/2025
Added
02/14/2025
Modified
02/14/2025

Description

The UNIX editor Vim prior to version 9.1.0678 has a use-after-free error in argument list handling. When adding a new file to the argument list, this triggers `Buf*` autocommands. If in such an autocommand the buffer that was just opened is closed (including the window where it is shown), this causes the window structure to be freed which contains a reference to the argument list that we are actually modifying. Once the autocommands are completed, the references to the window and argument list are no longer valid and as such cause an use-after-free. Impact is low since the user must either intentionally add some unusual autocommands that wipe a buffer during creation (either manually or by sourcing a malicious plugin), but it will crash Vim. The issue has been fixed as of Vim patch v9.1.0678. A heap use-after-free vulnerability was found in Vim's alist_add() function. Adding a new file to the argument list triggers Buf* autocommands. In an autocommand, if the buffer that was just opened is closed, including the window where it is shown, it causes the window structure to be freed, containing a reference to the argument list that is being modified. Once the autocommands are completed, references to the window and argument list are no longer valid, causing a use-after-free issue. To trigger this issue, a local attacker or user must add unusual autocommands that wipe a buffer during creation, either manually or by sourcing a malicious plugin, which will cause Vim to crash.

Solution(s)

  • amazon-linux-2023-upgrade-vim-common
  • amazon-linux-2023-upgrade-vim-data
  • amazon-linux-2023-upgrade-vim-debuginfo
  • amazon-linux-2023-upgrade-vim-debugsource
  • amazon-linux-2023-upgrade-vim-default-editor
  • amazon-linux-2023-upgrade-vim-enhanced
  • amazon-linux-2023-upgrade-vim-enhanced-debuginfo
  • amazon-linux-2023-upgrade-vim-filesystem
  • amazon-linux-2023-upgrade-vim-minimal
  • amazon-linux-2023-upgrade-vim-minimal-debuginfo
  • amazon-linux-2023-upgrade-xxd
  • amazon-linux-2023-upgrade-xxd-debuginfo

References

  • https://attackerkb.com/topics/cve-2024-43374
  • CVE - 2024-43374
  • https://alas.aws.amazon.com/AL2023/ALAS-2024-761.html
  • 查看数 700
  • 已创建
  • 最后回复

参与讨论

你可立刻发布并稍后注册。 如果你有帐户,立刻登录发布帖子。

游客
回帖…