Improper control of generation of code ('code injection') in Microsoft Defender for Linux allows an unauthorized attacker to execute code over an adjacent network.
CVE-2026-21537 is a critical code injection vulnerability in Microsoft Defender for Endpoint on Linux (CVSS 8.8) that allows adjacent network attackers to execute arbitrary code. While no public exploit is currently available, the high CVSS score and code injection nature make this a significant threat to Linux-based security infrastructure across Saudi organizations. Immediate patching is essential for all Linux deployments running Defender for Endpoint.
IMMEDIATE ACTIONS:
1. Identify all Linux systems running Microsoft Defender for Endpoint across your infrastructure
2. Prioritize patching for systems in DMZ, cloud environments, and critical infrastructure
3. Implement network segmentation to restrict adjacent network access to Defender components
4. Enable enhanced logging for Defender for Endpoint processes
PATCHING GUIDANCE:
1. Apply Microsoft's latest security update for Defender for Endpoint on Linux immediately
2. Test patches in non-production environment first
3. Schedule patching during maintenance windows with minimal business impact
4. Verify patch installation: mdatp health --field real_time_protection_enabled
COMPENSATING CONTROLS (if patching delayed):
1. Implement firewall rules to restrict adjacent network access to Defender service ports
2. Disable unnecessary network services on Defender-protected systems
3. Monitor for suspicious process execution from Defender processes
4. Implement application whitelisting for Defender binaries
DETECTION RULES:
1. Monitor for unexpected child processes spawned by /opt/microsoft/mdatp/sbin/wdavdaemon
2. Alert on unusual network connections from Defender service ports
3. Track modifications to Defender configuration files in /etc/opt/microsoft/mdatp/
4. Monitor for code injection attempts targeting Defender processes (strace, ptrace syscalls)
الإجراءات الفورية:
1. تحديد جميع أنظمة Linux التي تعمل بـ Microsoft Defender for Endpoint عبر البنية التحتية
2. إعطاء الأولوية لتصحيح الأنظمة في DMZ والبيئات السحابية والبنية التحتية الحرجة
3. تنفيذ تقسيم الشبكة لتقييد الوصول إلى مكونات Defender من الشبكات المجاورة
4. تفعيل السجلات المحسّنة لعمليات Defender for Endpoint
إرشادات التصحيح:
1. تطبيق آخر تحديث أمان من Microsoft لـ Defender for Endpoint على Linux فوراً
2. اختبار التصحيحات في بيئة غير الإنتاج أولاً
3. جدولة التصحيح خلال نوافذ الصيانة بأقل تأثير على العمل
4. التحقق من تثبيت التصحيح: mdatp health --field real_time_protection_enabled
الضوابط البديلة (إذا تأخر التصحيح):
1. تنفيذ قواعد جدار الحماية لتقييد الوصول من الشبكات المجاورة إلى منافذ خدمة Defender
2. تعطيل الخدمات الشبكية غير الضرورية على الأنظمة المحمية بـ Defender
3. مراقبة تنفيذ العمليات المريبة من عمليات Defender
4. تنفيذ القائمة البيضاء للتطبيقات لملفات Defender الثنائية
قواعد الكشف:
1. مراقبة العمليات الفرعية غير المتوقعة التي تم إنشاؤها بواسطة /opt/microsoft/mdatp/sbin/wdavdaemon
2. تنبيهات الاتصالات الشبكية غير العادية من منافذ خدمة Defender
3. تتبع التعديلات على ملفات تكوين Defender في /etc/opt/microsoft/mdatp/
4. مراقبة محاولات حقن الأكواد التي تستهدف عمليات Defender