<?xml version="1.0" encoding="utf-8"?>
  <?xml-stylesheet type="text/xsl" href="sa-render.xsl"?>
  <update from="huaweicloud.com" type="security" status="stable" version="1">
    <id>HCE2-SA-2025-0131</id>
    <title>An update for vim is now available for HCE 2.0</title>
    <severity>Moderate</severity>
    <release>HCE 2.0</release>
    <issued date="2025-03-15 12:21:02"/>
    <updated date="2025-03-15 12:21:02"/>
    <references>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2025-24014" id="CVE-2025-24014" title="CVE-2025-24014 Base Score: 4.2 Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L" type="cve"/>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2025-22134" id="CVE-2025-22134" title="CVE-2025-22134 Base Score: 4.2 Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L" type="cve"/>
    </references>
    <description>Security Fix(es):

Vim is an open source, command line text editor. A segmentation fault was found in Vim before 9.1.1043. In silent Ex mode (-s -e), Vim typically doesn_x27;t show a screen and just operates silently in batch mode. However, it is still possible to trigger the function that handles the scrolling of a gui version of Vim by feeding some binary characters to Vim. The function that handles the scrolling however may be triggering a redraw, which will access the ScreenLines pointer, even so this variable hasn_x27;t been allocated (since there is no screen). This vulnerability is fixed in 9.1.1043. (CVE-2025-24014)

When switching to other buffers using the :all command and visual mode still being active, this may cause a heap-buffer overflow, because Vim does not properly end visual mode and therefore may try to access beyond the end of a line in a buffer. In Patch 9.1.1003 Vim will correctly reset the visual mode before opening other windows and buffers and therefore fix this bug. In addition it does verify that it won_x27;t try to access a position if the position is greater than the corresponding buffer line. Impact is medium since the user must have switched on visual mode when executing the :all ex command. The Vim project would like to thank github user gandalf4a for reporting this issue. The issue has been fixed as of Vim patch v9.1.1003 (CVE-2025-22134)
</description>
    <pkglist>
      <collection short="HCE 2.0" package="vim">
        <name>HCE 2.0</name>
        <package arch="aarch64" name="vim-common" version="9.0" release="1.r30.hce2">
          <filename>vim-common-9.0-1.r30.hce2.aarch64.rpm</filename>
        </package>
        <package arch="aarch64" name="vim-enhanced" version="9.0" release="1.r30.hce2">
          <filename>vim-enhanced-9.0-1.r30.hce2.aarch64.rpm</filename>
        </package>
        <package arch="noarch" name="vim-filesystem" version="9.0" release="1.r30.hce2">
          <filename>vim-filesystem-9.0-1.r30.hce2.noarch.rpm</filename>
        </package>
        <package arch="aarch64" name="vim-minimal" version="9.0" release="1.r30.hce2">
          <filename>vim-minimal-9.0-1.r30.hce2.aarch64.rpm</filename>
        </package>
        <package arch="x86_64" name="vim-common" version="9.0" release="1.r30.hce2">
          <filename>vim-common-9.0-1.r30.hce2.x86_64.rpm</filename>
        </package>
        <package arch="x86_64" name="vim-enhanced" version="9.0" release="1.r30.hce2">
          <filename>vim-enhanced-9.0-1.r30.hce2.x86_64.rpm</filename>
        </package>
        <package arch="x86_64" name="vim-minimal" version="9.0" release="1.r30.hce2">
          <filename>vim-minimal-9.0-1.r30.hce2.x86_64.rpm</filename>
        </package>
      </collection>
    </pkglist>
  </update>
