StackPatch is liveSee product

Back to CVE digest
Ubuntu USN · USN-8386-1

Nano vulnerabilities

Published: Thu, 04 Jun 2026 17:00

CVE-2026-6843CVE-2026-6842

Summary

Several security issues were fixed in Nano.

Details

Michał Majchrowicz and Marcin Wyczechowski discovered that Nano created the ~/.local directory with incorrect permissions. In environments with permissive umask settings, a local attacker could possibly use this issue to inject a malicious launcher file, resulting in information disclosure or other unintended actions. (CVE-2026-6842) Michał Majchrowicz and Marcin Wyczechowski discovered that Nano incorrectly handled directory names when updating the status line. A local attacker could possibly use this issue to cause Nano to crash, resulting in a denial of service. This issue only affected Ubuntu 22.04 LTS, Ubuntu 24.04 LTS, Ubuntu 25.10, and Ubuntu 26.04 LTS. (CVE-2026-6843)

Recommended actions per Ubuntu release

StackPatch playbook auto-generated per release codename and per affected package.

Ubuntu bionic

  • nano2.9.3-2ubuntu0.1~esm2apt_upgrade_esm

    Fixed at 2.9.3-2ubuntu0.1~esm2 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.

    sudo pro attach <token>
    sudo apt-get update
    sudo apt-get install --only-upgrade -y nano=2.9.3-2ubuntu0.1~esm2

    Sign up at https://ubuntu.com/pro. Free for personal + small-team use.

  • nano2.9.3-2ubuntu0.1~esm2apt_upgrade_esm

    Fixed at 2.9.3-2ubuntu0.1~esm2 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.

    sudo pro attach <token>
    sudo apt-get update
    sudo apt-get install --only-upgrade -y nano=2.9.3-2ubuntu0.1~esm2

    Sign up at https://ubuntu.com/pro. Free for personal + small-team use.

  • nano-tiny2.9.3-2ubuntu0.1~esm2apt_upgrade_esm

    Fixed at 2.9.3-2ubuntu0.1~esm2 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.

    sudo pro attach <token>
    sudo apt-get update
    sudo apt-get install --only-upgrade -y nano-tiny=2.9.3-2ubuntu0.1~esm2

    Sign up at https://ubuntu.com/pro. Free for personal + small-team use.

Ubuntu focal

  • nano4.8-1ubuntu1.1+esm1apt_upgrade

    Standard apt upgrade. Install 4.8-1ubuntu1.1+esm1 from the apt repo.

    sudo apt-get update
    sudo apt-get install --only-upgrade -y nano

    Most apt upgrades restart their service automatically. needrestart lists anything else.

  • nano4.8-1ubuntu1.1+esm1apt_upgrade

    Standard apt upgrade. Install 4.8-1ubuntu1.1+esm1 from the apt repo.

    sudo apt-get update
    sudo apt-get install --only-upgrade -y nano

    Most apt upgrades restart their service automatically. needrestart lists anything else.

  • nano-tiny4.8-1ubuntu1.1+esm1apt_upgrade

    Standard apt upgrade. Install 4.8-1ubuntu1.1+esm1 from the apt repo.

    sudo apt-get update
    sudo apt-get install --only-upgrade -y nano-tiny

    Most apt upgrades restart their service automatically. needrestart lists anything else.

Ubuntu jammy

  • nano6.2-1ubuntu0.2apt_upgrade

    Standard apt upgrade. Install 6.2-1ubuntu0.2 from the apt repo.

    sudo apt-get update
    sudo apt-get install --only-upgrade -y nano

    Most apt upgrades restart their service automatically. needrestart lists anything else.

  • nano6.2-1ubuntu0.2apt_upgrade

    Standard apt upgrade. Install 6.2-1ubuntu0.2 from the apt repo.

    sudo apt-get update
    sudo apt-get install --only-upgrade -y nano

    Most apt upgrades restart their service automatically. needrestart lists anything else.

  • nano-tiny6.2-1ubuntu0.2apt_upgrade

    Standard apt upgrade. Install 6.2-1ubuntu0.2 from the apt repo.

    sudo apt-get update
    sudo apt-get install --only-upgrade -y nano-tiny

    Most apt upgrades restart their service automatically. needrestart lists anything else.

Ubuntu noble

  • nano7.2-2ubuntu0.2apt_upgrade

    Standard apt upgrade. Install 7.2-2ubuntu0.2 from the apt repo.

    sudo apt-get update
    sudo apt-get install --only-upgrade -y nano

    Most apt upgrades restart their service automatically. needrestart lists anything else.

  • nano7.2-2ubuntu0.2apt_upgrade

    Standard apt upgrade. Install 7.2-2ubuntu0.2 from the apt repo.

    sudo apt-get update
    sudo apt-get install --only-upgrade -y nano

    Most apt upgrades restart their service automatically. needrestart lists anything else.

  • nano-tiny7.2-2ubuntu0.2apt_upgrade

    Standard apt upgrade. Install 7.2-2ubuntu0.2 from the apt repo.

    sudo apt-get update
    sudo apt-get install --only-upgrade -y nano-tiny

    Most apt upgrades restart their service automatically. needrestart lists anything else.

Ubuntu questing

  • nano8.4-1ubuntu0.1apt_upgrade

    Standard apt upgrade. Install 8.4-1ubuntu0.1 from the apt repo.

    sudo apt-get update
    sudo apt-get install --only-upgrade -y nano

    Most apt upgrades restart their service automatically. needrestart lists anything else.

  • nano8.4-1ubuntu0.1apt_upgrade

    Standard apt upgrade. Install 8.4-1ubuntu0.1 from the apt repo.

    sudo apt-get update
    sudo apt-get install --only-upgrade -y nano

    Most apt upgrades restart their service automatically. needrestart lists anything else.

  • nano-tiny8.4-1ubuntu0.1apt_upgrade

    Standard apt upgrade. Install 8.4-1ubuntu0.1 from the apt repo.

    sudo apt-get update
    sudo apt-get install --only-upgrade -y nano-tiny

    Most apt upgrades restart their service automatically. needrestart lists anything else.

Ubuntu resolute

  • nano8.7.1-1ubuntu0.1apt_upgrade

    Standard apt upgrade. Install 8.7.1-1ubuntu0.1 from the apt repo.

    sudo apt-get update
    sudo apt-get install --only-upgrade -y nano

    Most apt upgrades restart their service automatically. needrestart lists anything else.

  • nano8.7.1-1ubuntu0.1apt_upgrade

    Standard apt upgrade. Install 8.7.1-1ubuntu0.1 from the apt repo.

    sudo apt-get update
    sudo apt-get install --only-upgrade -y nano

    Most apt upgrades restart their service automatically. needrestart lists anything else.

  • nano-tiny8.7.1-1ubuntu0.1apt_upgrade

    Standard apt upgrade. Install 8.7.1-1ubuntu0.1 from the apt repo.

    sudo apt-get update
    sudo apt-get install --only-upgrade -y nano-tiny

    Most apt upgrades restart their service automatically. needrestart lists anything else.

Are YOU affected by USN-8386-1?

5-second check on your actual server. Reads /etc/os-release, uname -r, and dpkg-query; matches against the live USN + Debian Security Tracker feeds; tells you whether USN-8386-1 (and any other live CVE) applies. Anonymous, no signup.

curl https://mindsparkstack.com/scan.sh | bash
Want this automated for your servers?

StackPatch runs this match against YOUR installed packages every hour

Free 1-server / $99 lifetime founder seat (50 only) / $19+/mo monthly. Indie pricing.