Advisory

USN-8386-1

Also known as: CVE-2026-6842, CVE-2026-6843

Summary

nano vulnerabilities

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)

Severity

Not rated by the source.

Dates

Published
2026-06-04 17:00 UTC
Modified
2026-06-05 03:14 UTC

Affected packages and fixes

nano

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 6.2-1ubuntu0.2 (ecosystem)

Fixed versions

6.2-1ubuntu0.2

Fix

  • Fixed version 6.2-1ubuntu0.2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

nano

Debian packages (deb) · Ubuntu 24.04

Affected

  • introduced 0, fixed 7.2-2ubuntu0.2 (ecosystem)

Fixed versions

7.2-2ubuntu0.2

Fix

  • Fixed version 7.2-2ubuntu0.2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

nano

Debian packages (deb) · Ubuntu 25.10

Affected

  • introduced 0, fixed 8.4-1ubuntu0.1 (ecosystem)

Fixed versions

8.4-1ubuntu0.1

Fix

  • Fixed version 8.4-1ubuntu0.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

nano

Debian packages (deb) · Ubuntu 26.04

Affected

  • introduced 0, fixed 8.7.1-1ubuntu0.1 (ecosystem)

Fixed versions

8.7.1-1ubuntu0.1

Fix

  • Fixed version 8.7.1-1ubuntu0.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences