USN-8386-1: Nano vulnerabilities

Publication date

4 June 2026

Overview

Several security issues were fixed in Nano.


Packages

  • nano - GNU nano editor

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)

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)

Update instructions

In general, a standard system update will make all the necessary changes.

Learn more about how to get the fixes.

The problem can be corrected by updating your system to the following package versions:

Ubuntu Release Package Version
26.04 LTS resolute nano –  8.7.1-1ubuntu0.1
nano-tiny –  8.7.1-1ubuntu0.1
25.10 questing nano –  8.4-1ubuntu0.1
nano-tiny –  8.4-1ubuntu0.1
24.04 LTS noble nano –  7.2-2ubuntu0.2
nano-tiny –  7.2-2ubuntu0.2
22.04 LTS jammy nano –  6.2-1ubuntu0.2
nano-tiny –  6.2-1ubuntu0.2
20.04 LTS focal nano –  4.8-1ubuntu1.1+esm1  
nano-tiny –  4.8-1ubuntu1.1+esm1  
18.04 LTS bionic nano –  2.9.3-2ubuntu0.1~esm2  
nano-tiny –  2.9.3-2ubuntu0.1~esm2  

Reduce your security exposure

Ubuntu Pro provides ten-year security coverage to 25,000+ packages in Main and Universe repositories, and it is free for up to five machines.


Have additional questions?

Talk to a member of the team ›