Vulnerability · Published Apr 22, 2026 · Assigned by redhat
CVE-2026-6843Nano: nano: format string vulnerability leads to denial of service
Medium 5.5
In plain English
A medium-severity security flaw in Red Hat Enterprise Linux 10 from Red Hat. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 1% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | nano | no fix listed | DEBIAN-CVE-2026-6843 |
| Debian:13 | nano | 8.4-1+deb13u1 | DEBIAN-CVE-2026-6843 |
| Debian:14 | nano | 9.0-1 | DEBIAN-CVE-2026-6843 |
| Ubuntu:22.04:LTS | nano | 6.2-1ubuntu0.2 | USN-8386-1 |
| Ubuntu:22.04:LTS | nano | 6.2-1ubuntu0.2 | UBUNTU-CVE-2026-6843 |
| Ubuntu:24.04:LTS | nano | 7.2-2ubuntu0.2 | UBUNTU-CVE-2026-6843 |
| Ubuntu:24.04:LTS | nano | 7.2-2ubuntu0.2 | USN-8386-1 |
| Ubuntu:25.10 | nano | 8.4-1ubuntu0.1 | UBUNTU-CVE-2026-6843 |
| Ubuntu:25.10 | nano | 8.4-1ubuntu0.1 | USN-8386-1 |
| Ubuntu:26.04:LTS | nano | 8.7.1-1ubuntu0.1 | UBUNTU-CVE-2026-6843 |
| Ubuntu:26.04:LTS | nano | 8.7.1-1ubuntu0.1 | USN-8386-1 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Red Hat | Red Hat Enterprise Linux 10 | see references |
| Red Hat | Red Hat Enterprise Linux 6 | see references |
| Red Hat | Red Hat Enterprise Linux 7 | see references |
| Red Hat | Red Hat Enterprise Linux 8 | see references |
| Red Hat | Red Hat Enterprise Linux 9 | see references |
| Red Hat | Red Hat OpenShift Container Platform 4 | see references |
| Red Hat | Red Hat OpenShift Container Platform 4 | see references |
Weakness: CWE-134 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
References
- https://access.redhat.com/security/cve/CVE-2026-6843 vdb-entry, x_refsource_REDHAT
- RHBZ#2460017 issue-tracking, x_refsource_REDHAT