Skip to content
OpenAdvisories

Description

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.

Affected products

VendorProductAffectedFixed
Red Hat Red Hat Enterprise Linux 10 — —
Red Hat Red Hat Enterprise Linux 6 — —
Red Hat Red Hat Enterprise Linux 7 — —
Red Hat Red Hat Enterprise Linux 8 — —
Red Hat Red Hat Enterprise Linux 9 — —
Red Hat Red Hat OpenShift Container Platform 4 — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 nano 9.0-1 —
Debian 13 nano 8.4-1+deb13u1 —
Debian 12 nano No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS nano 8.7.1-1ubuntu0.1 USN-8386-1
Ubuntu 25.10 nano 8.4-1ubuntu0.1 USN-8386-1
Ubuntu 24.04 LTS nano 7.2-2ubuntu0.2 USN-8386-1
Ubuntu 22.04 LTS nano 6.2-1ubuntu0.2 USN-8386-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS nano 4.8-1ubuntu1.1+esm1 USN-8386-1
Ubuntu Pro 18.04 LTS nano 2.9.3-2ubuntu0.1~esm2 USN-8386-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed nano 9.0-2.1 openSUSE-SU-2026:10851-1
openSUSE Leap 16.0 nano 9.1-bp160.1.1 openSUSE-SU-2026:21166-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 nano 6.4-3 —

Advisories 3

References