In the Linux kernel, the following vulnerability has been resolved:
RDMA/efa: Fix use of completion ctx after free
On admin queue completion handling, if the admin command completed with
error we print data from the completion context. The issue is that we
already freed the completion context in polling/interrupts handler which
means we print data from context in an unknown state (it might be
already used again).
Change the admin submission flow so alloc/dealloc of the context will be
symmetric and dealloc will be called after any potential use of the
context.
CVE-2026-31493 is a use-after-free vulnerability in the Linux kernel's RDMA/EFA (Elastic Fabric Adapter) driver affecting admin queue completion handling. When admin commands complete with errors, the driver attempts to access a completion context that has already been freed, potentially leading to information disclosure or system instability. This vulnerability impacts systems using AWS EFA for high-performance computing and requires immediate kernel patching.
IMMEDIATE ACTIONS:
1. Identify all systems running affected Linux kernel versions (5.12 through 7.0-rc7) with RDMA/EFA driver enabled
2. Check kernel version: uname -r
3. Verify EFA driver presence: lsmod | grep efa
PATCHING GUIDANCE:
1. Update to patched kernel versions (7.0 final release or later stable versions with backported fix)
2. For RHEL/CentOS: yum update kernel
3. For Ubuntu: apt update && apt upgrade linux-image-generic
4. For AWS instances: Use Systems Manager Patch Manager or manual kernel update
5. Schedule maintenance window and reboot systems after patching
COMPENSATING CONTROLS (if immediate patching not possible):
1. Disable EFA driver if not actively used: modprobe -r efa
2. Restrict admin queue operations to trusted processes only
3. Implement kernel module signing and verification
4. Monitor system logs for kernel panics or memory corruption errors
DETECTION RULES:
1. Monitor kernel logs for: "use-after-free", "KASAN", "UAF" messages
2. Track EFA driver error completions: grep -i "admin.*error" /var/log/kern.log
3. Alert on unexpected kernel crashes in efa_poll_admin_cq function
4. Monitor memory access violations in RDMA subsystem
الإجراءات الفورية:
1. تحديد جميع الأنظمة التي تعمل بإصدارات نواة Linux المتأثرة (5.12 إلى 7.0-rc7) مع تفعيل برنامج تشغيل RDMA/EFA
2. التحقق من إصدار النواة: uname -r
3. التحقق من وجود برنامج تشغيل EFA: lsmod | grep efa
إرشادات التصحيح:
1. التحديث إلى إصدارات نواة مصححة (الإصدار النهائي 7.0 أو إصدارات مستقرة أحدث مع إصلاح مرجعي)
2. لـ RHEL/CentOS: yum update kernel
3. لـ Ubuntu: apt update && apt upgrade linux-image-generic
4. لمثيلات AWS: استخدم Systems Manager Patch Manager أو تحديث النواة اليدوي
5. جدولة نافذة صيانة وإعادة تشغيل الأنظمة بعد التصحيح
الضوابط البديلة (إذا لم يكن التصحيح الفوري ممكناً):
1. تعطيل برنامج تشغيل EFA إذا لم يكن قيد الاستخدام النشط: modprobe -r efa
2. تقييد عمليات قائمة المسؤول للعمليات الموثوقة فقط
3. تنفيذ التوقيع والتحقق من وحدة النواة
4. مراقبة سجلات النظام للأعطال أو أخطاء الذاكرة
قواعد الكشف:
1. مراقبة سجلات النواة: "use-after-free", "KASAN", "UAF"
2. تتبع إكمال خطأ برنامج تشغيل EFA: grep -i "admin.*error" /var/log/kern.log
3. تنبيه على أعطال النواة غير المتوقعة في دالة efa_poll_admin_cq
4. مراقبة انتهاكات الوصول إلى الذاكرة في نظام RDMA الفرعي