In the Linux kernel, the following vulnerability has been resolved:
net: bcmasp: fix double free of WoL irq
We do not need to free wol_irq since it was instantiated with
devm_request_irq(). So devres will free for us.
CVE-2026-31506 is a double-free vulnerability in the Linux kernel's bcmasp network driver affecting WoL (Wake-on-LAN) interrupt handling. The vulnerability occurs due to improper memory management where wol_irq is freed manually despite being allocated with devm_request_irq(), which automatically handles cleanup. This can lead to kernel memory corruption, denial of service, or potential privilege escalation on affected systems.
Immediate Actions:
1. Identify systems running affected Linux kernel versions (6.6, 7.0-rc1 through rc6) with bcmasp network drivers
2. Check hardware inventory for Broadcom ASP network adapters
3. Assess WoL functionality usage in your environment
Patching Guidance:
1. Apply kernel security updates to versions 7.0-rc7 or later, or stable releases with the fix backported
2. For RHEL/CentOS: Update kernel packages via yum/dnf with RHSA advisories
3. For Ubuntu: Apply linux-image updates from security repositories
4. For Debian: Update linux-image packages from security.debian.org
5. Test patches in non-production environments before deployment
Compensating Controls (if immediate patching not possible):
1. Disable WoL functionality if not required: ethtool -s <interface> wol d
2. Restrict network access to affected systems
3. Monitor kernel logs for memory corruption indicators
4. Implement kernel panic monitoring and automatic restart policies
Detection Rules:
1. Monitor for kernel oops/panic messages related to bcmasp driver
2. Track system crashes correlated with WoL state changes
3. Alert on unexpected kernel memory allocation failures
4. Monitor dmesg for 'double free' or 'use-after-free' messages
الإجراءات الفورية:
1. تحديد الأنظمة التي تعمل بإصدارات نواة Linux المتأثرة (6.6، 7.0-rc1 إلى rc6) مع برامج تشغيل bcmasp
2. التحقق من جرد الأجهزة لمحولات شبكة Broadcom ASP
3. تقييم استخدام وظيفة WoL في بيئتك
إرشادات التصحيح:
1. تطبيق تحديثات أمان النواة للإصدارات 7.0-rc7 أو الأحدث
2. لـ RHEL/CentOS: تحديث حزم النواة عبر yum/dnf مع RHSA
3. لـ Ubuntu: تطبيق تحديثات linux-image من مستودعات الأمان
4. لـ Debian: تحديث حزم linux-image من security.debian.org
5. اختبار التصحيحات في بيئات غير الإنتاج قبل النشر
الضوابط البديلة:
1. تعطيل وظيفة WoL إذا لم تكن مطلوبة: ethtool -s <interface> wol d
2. تقييد الوصول إلى الأنظمة المتأثرة
3. مراقبة سجلات النواة لمؤشرات تلف الذاكرة
4. تنفيذ مراقبة الذعر في النواة وسياسات إعادة التشغيل التلقائية
قواعد الكشف:
1. مراقبة رسائل kernel oops/panic المتعلقة ببرنامج تشغيل bcmasp
2. تتبع أعطال النظام المرتبطة بتغييرات حالة WoL
3. التنبيه على فشل تخصيص ذاكرة النواة غير المتوقع
4. مراقبة dmesg للبحث عن رسائل 'double free' أو 'use-after-free'