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.
CVE-2026-6843 is a format string vulnerability in nano's statusline() function that allows local users to cause a denial of service through specially crafted directory names. An attacker can trigger a segmentation fault by creating directories with printf format specifiers in their names.
تم اكتشاف ثغرة صيغة نص في دالة statusline بتطبيق محرر النصوص nano تسمح للمستخدمين المحليين باستغلالها. يمكن للمهاجم إنشاء مجلد باسم يحتوي على محددات printf مما يؤدي إلى انهيار التطبيق وحدوث خلل في الذاكرة.
This vulnerability affects nano text editor through a format string flaw in the statusline function, allowing local attackers to crash the application via malicious directory names. The issue results in denial of service when nano attempts to display directory names containing format string specifiers.
Update nano to the latest patched version that fixes the format string vulnerability in the statusline() function. Implement input validation and sanitization for directory names before display. Restrict local user access to sensitive directories where nano is used.
قم بتحديث تطبيق nano إلى أحدث إصدار يتضمن إصلاح ثغرة صيغة النص. طبق التحقق من صحة المدخلات وتنظيفها لأسماء المجلدات قبل عرضها. قيد وصول المستخدمين المحليين إلى المجلدات الحساسة حيث يتم استخدام nano.