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.
Problem types
Use of Externally-Controlled Format String
Product status
Timeline
| 2026-04-13: | Reported to Red Hat. |
| 2026-04-13: | Made public. |
Credits
Red Hat would like to thank Michał Majchrowicz, Marcin Wyczechowski (AFINE Team) for reporting this issue.
References
access.redhat.com/security/cve/CVE-2026-6843
bugzilla.redhat.com/show_bug.cgi?id=2460017 (RHBZ#2460017)