ثغرة NFS2ROOT في نواة لينكس تمنح المهاجم صلاحيات الجذر عن بُعد دون كلمة مرور
- الحصول على الرابط
- X
- بريد إلكتروني
- التطبيقات الأخرى
كشفت شركة OpenSec عن ثغرة حرجة في خادم نظام الملفات الشبكي NFS المدمج في نواة لينكس (nfsd)، سُمّيت NFS2ROOT وحملت الرقم CVE-2026-99362 بتقييم 9.8 من 10. تتيح الثغرة لأي مهاجم يصل إلى المنفذ 2049 الحصول على صلاحيات الجذر الكاملة دون كلمة مرور أو حساب أو أي تفاعل من المستخدم، ويكفي اتصال TCP واحد.
يكمن الخلل في آلية الجلسات في NFSv4.1، حيث يحدد العميل حجم ذاكرة التخزين المؤقت للردود. إذا ضبطه على الحد الأدنى، يتقلص المخزن إلى صفر بايت، ثم يكتب الخادم الرد كاملاً فيه، فتُكتب 61 بايتاً خارج حدود الكائن في ذاكرة النواة. وبتسلسل هذا الخلل مع تسريب عناوين الذاكرة لتجاوز KASLR، يمكن الوصول إلى صدفة جذر. وتعود الثغرة إلى نواة 3.16 منذ عام 2014، ولا تتأثر الأجهزة التي تعمل كعميل NFS فقط.
صدرت الإصلاحات في الإصدارات 6.12.117 و6.18.61 و7.3.2 و7.4-rc1، لكن توزيعات كبرى مثل أوبونتو ما زالت تعرض نواتها ضمن الإصدارات المتأثرة بانتظار التحديثات. وتشمل الأنظمة المعرّضة أجهزة التخزين الشبكي NAS وعقد التخزين في Kubernetes وأي خادم ملفات لينكس مكشوف.
وجهة نظري: خدمات النواة التي تحلل بيانات الشبكة قبل المصادقة هي أخطر سطح هجوم، ومعظم الشركات تترك NFS مفتوحاً داخلياً بحجة الثقة بالشبكة. حدّثوا النواة وأعيدوا التشغيل فور توفر الحزمة، وإلى ذلك الحين أغلقوا المنفذ 2049 إلا عن شبكة التخزين، وراجعوا أي خادم NFS مكشوف على الإنترنت.
NFS2ROOT: a Linux kernel flaw gives remote attackers root with no password
OpenSec disclosed a critical vulnerability in the NFS server built into the Linux kernel (nfsd). Named NFS2ROOT and tracked as CVE-2026-99362, it scores 9.8 out of 10. An attacker who can reach port 2049 gets full root access with no password, no account and no user interaction. A single TCP connection is enough.
The bug sits in the NFSv4.1 session mechanism, where the client decides the size of the reply cache. Set to the minimum, the buffer shrinks to zero bytes, yet the server still writes the full reply into it, putting 61 bytes past the end of the object in kernel memory. Chained with a leak of memory addresses to bypass KASLR, this leads to a root shell. The flaw dates back to Linux 3.16 in 2014. Machines that are only NFS clients are not affected.
Fixes are in kernel versions 6.12.117, 6.18.61, 7.3.2 and 7.4-rc1, but major distributions such as Ubuntu still list their kernels as vulnerable while patches are in progress. Exposed systems include NAS devices, Kubernetes storage nodes and any reachable Linux file server.
My take: kernel services that parse network input before authentication are the most dangerous attack surface, and many companies leave NFS open internally on the assumption that the network is trusted. Update the kernel and reboot as soon as the package is available. Until then, block port 2049 except from the storage network, and check for any NFS server exposed to the internet.
- الحصول على الرابط
- X
- بريد إلكتروني
- التطبيقات الأخرى
تعليقات
إرسال تعليق