<?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-2026-0145</id>
    <title>An update for nano is now available for HCE 2.0</title>
    <severity>Moderate</severity>
    <release>HCE 2.0</release>
    <issued date="2026-05-21 10:29:41"/>
    <updated date="2026-05-21 10:29:41"/>
    <references>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2026-6842" id="CVE-2026-6842" title="CVE-2026-6842 Base Score: 2.5 Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N" type="cve"/>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2026-6843" id="CVE-2026-6843" title="CVE-2026-6843 Base Score: 5.5 Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H" type="cve"/>
    </references>
    <description>Security Fix(es):

A flaw was found in nano. In environments with permissive umask settings, a local attacker can exploit incorrect directory permissions (0777 instead of 0700) for the `~/.local` directory. This allows the attacker to inject a malicious `.desktop` launcher, which could lead to unintended actions or information disclosure if the launcher is subsequently processed. (CVE-2026-6842)

A flaw was found in nano. A local user could exploit a format string vulnerability in the `statusline()` function. By creating a directory with a name containing `printf` specifiers, the application attempts to display this name, leading to a segmentation fault (SEGV). This results in a Denial of Service (DoS) for the `nano` application. (CVE-2026-6843)
</description>
    <pkglist>
      <collection short="HCE 2.0" package="nano">
        <name>HCE 2.0</name>
        <package arch="x86_64" name="nano" version="8.0" release="1.r1.hce2">
          <filename>nano-8.0-1.r1.hce2.x86_64.rpm</filename>
        </package>
        <package arch="noarch" name="nano-help" version="8.0" release="1.r1.hce2">
          <filename>nano-help-8.0-1.r1.hce2.noarch.rpm</filename>
        </package>
        <package arch="aarch64" name="nano" version="8.0" release="1.r1.hce2">
          <filename>nano-8.0-1.r1.hce2.aarch64.rpm</filename>
        </package>
      </collection>
    </pkglist>
  </update>
