摘要:
vim security update
安全等级: Medium
公告ID: KylinSec-SA-2025-1644
发布日期: 2025年3月18日
关联CVE: CVE-2025-1215 CVE-2025-26603
Vim is an advanced text editor that seeks to provide the power of the de-facto Unix editor 'Vi', with a more complete feature set. Vim is a highly configurable text editor built to enable efficient text editing. It is an improved version of the vi editor distributed with most UNIX systems.
Security Fix(es):
A vulnerability classified as problematic was found in vim up to 9.1.1096. This vulnerability affects unknown code of the file src/main.c. The manipulation of the argument --log leads to memory corruption. It is possible to launch the attack on the local host. Upgrading to version 9.1.1097 is able to address this issue. The patch is identified as c5654b84480822817bb7b69ebc97c174c91185e9. It is recommended to upgrade the affected component.(CVE-2025-1215)
Vim is a greatly improved version of the good old UNIX editor Vi. Vim allows to redirect screen messages using the `:redir` ex command to register, variables and files. It also allows to show the contents of registers using the `:registers` or `:display` ex command. When redirecting the output of `:display` to a register, Vim will free the register content before storing the new content in the register. Now when redirecting the `:display` command to a register that is being displayed, Vim will free the content while shortly afterwards trying to access it, which leads to a use-after-free. Vim pre 9.1.1115 checks in the ex_display() function, that it does not try to redirect to a register while displaying this register at the same time. However this check is not complete, and so Vim does not check the `+` and `*` registers (which typically donate the X11/clipboard registers, and when a clipboard connection is not possible will fall back to use register 0 instead. In Patch 9.1.1115 Vim will therefore skip outputting to register zero when trying to redirect to the clipboard registers `*` or `+`. Users are advised to upgrade. There are no known workarounds for this vulnerability.(CVE-2025-26603)
cve名称 | 产品 | 组件 | 是否受影响 |
---|---|---|---|
CVE-2025-1215 | KY3.4-5A | vim | Fixed |
CVE-2025-1215 | V6 | vim | Fixed |
CVE-2025-26603 | KY3.4-5A | vim | Fixed |
CVE-2025-26603 | V6 | vim | Fixed |
软件名称 | 架构 | 版本号 |
---|---|---|
vim-filesystem | noarch | 9.0-32.kb1.ky3_4 |
vim-X11 | x86_64 | 9.0-32.kb1.ky3_4 |
vim-common | x86_64 | 9.0-32.kb1.ky3_4 |
vim-enhanced | x86_64 | 9.0-32.kb1.ky3_4 |
vim-minimal | x86_64 | 9.0-32.kb1.ky3_4 |
vim-X11 | aarch64 | 9.0-32.kb1.ky3_4 |
vim-common | aarch64 | 9.0-32.kb1.ky3_4 |
vim-enhanced | aarch64 | 9.0-32.kb1.ky3_4 |
vim-minimal | aarch64 | 9.0-32.kb1.ky3_4 |
软件名称 | 架构 | 版本号 |
---|---|---|
vim-filesystem | noarch | 9.0.2092-17.ks6 |
vim-X11 | x86_64 | 9.0.2092-17.ks6 |
vim-common | x86_64 | 9.0.2092-17.ks6 |
vim-enhanced | x86_64 | 9.0.2092-17.ks6 |
vim-minimal | x86_64 | 9.0.2092-17.ks6 |
vim-X11 | aarch64 | 9.0.2092-17.ks6 |
vim-common | aarch64 | 9.0.2092-17.ks6 |
vim-enhanced | aarch64 | 9.0.2092-17.ks6 |
vim-minimal | aarch64 | 9.0.2092-17.ks6 |
方法一:下载安装包进行升级安装
1、通过下载链接下载需要升级的升级包保存,如 xxx.rpm
2、通过rpm命令升级,如 rpm -Uvh xxx.rpm
方法二:通过软件源进行升级安装
1、保持能够连接上互联网
2、通过yum命令升级指定的包,如 yum install 包名