In the Linux kernel, the following vulnerability has been resolved:
nfc: hci: shdlc: Stop timers and work before freeing context
llc_shdlc_deinit() purges SHDLC skb queues and frees the llc_shdlc
structure while its timers and state machine work may still be active.
Timer callbacks can schedule sm_work, and sm_work accesses SHDLC state
and the skb queues. If teardown happens in parallel with a queued/running
work item, it can lead to UAF and other shutdown races.
Stop all SHDLC timers and cancel sm_work synchronously before purging the
queues and freeing the context.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
CVE-2026-46267 is a use-after-free (UAF) vulnerability in the Linux kernel's NFC HCI SHDLC subsystem where timers and work items are not properly stopped before freeing context structures. This can lead to memory corruption and potential code execution when NFC devices are disconnected while operations are in progress. The vulnerability affects systems with NFC hardware support, particularly those using SHDLC protocol implementations.
Immediate Actions:
1. Identify systems running Linux kernel with NFC HCI SHDLC support using 'lsmod | grep nfc' and 'uname -r'
2. Check if NFC hardware is actively used; if not, disable NFC module: 'modprobe -r nfc_hci' and 'modprobe -r nfc'
3. Isolate affected systems from untrusted NFC proximity until patched
Patching Guidance:
1. Apply Linux kernel security updates from your distribution (RHEL, Ubuntu, SLES, etc.) that include the SHDLC timer/work cancellation fix
2. Verify patch includes synchronous cancellation of sm_work before queue purging
3. Reboot systems after kernel update
4. Validate NFC functionality post-patch if NFC services are required
Compensating Controls (if immediate patching unavailable):
1. Disable NFC kernel modules if not operationally required
2. Implement strict physical access controls to NFC-enabled devices
3. Monitor kernel logs for NFC-related errors: 'journalctl -u kernel | grep nfc'
4. Restrict NFC device enumeration via udev rules
Detection Rules:
1. Monitor for kernel UAF warnings: 'dmesg | grep -i "use-after-free\|shdlc\|nfc_hci"'
2. Alert on unexpected NFC device disconnections followed by kernel panics
3. Track NFC module load/unload events in audit logs
4. Monitor for memory corruption indicators in kernel logs
الإجراءات الفورية:
1. تحديد الأنظمة التي تعمل بنواة لينكس مع دعم NFC HCI SHDLC باستخدام 'lsmod | grep nfc' و 'uname -r'
2. التحقق من استخدام أجهزة NFC بنشاط؛ إذا لم تكن قيد الاستخدام، قم بتعطيل وحدة NFC: 'modprobe -r nfc_hci' و 'modprobe -r nfc'
3. عزل الأنظمة المتأثرة عن قرب NFC غير الموثوق به حتى يتم إصلاحها
إرشادات التصحيح:
1. تطبيق تحديثات أمان نواة لينكس من توزيعتك (RHEL, Ubuntu, SLES, إلخ) التي تتضمن إصلاح إلغاء المؤقتات/العمل SHDLC
2. التحقق من أن التصحيح يتضمن إلغاء متزامن لـ sm_work قبل تنقية الطابور
3. إعادة تشغيل الأنظمة بعد تحديث النواة
4. التحقق من وظائف NFC بعد التصحيح إذا كانت خدمات NFC مطلوبة
الضوابط البديلة (إذا لم يكن التصحيح الفوري متاحاً):
1. تعطيل وحدات نواة NFC إذا لم تكن مطلوبة تشغيلياً
2. تطبيق ضوابط وصول فيزيائية صارمة على أجهزة NFC
3. مراقبة سجلات النواة لأخطاء NFC: 'journalctl -u kernel | grep nfc'
4. تقييد تعداد أجهزة NFC عبر قواعد udev
قواعد الكشف:
1. مراقبة تحذيرات UAF في النواة: 'dmesg | grep -i "use-after-free\|shdlc\|nfc_hci"'
2. تنبيه عند قطع اتصال أجهزة NFC غير المتوقع متبوعاً بأعطال النواة
3. تتبع أحداث تحميل/تفريغ وحدة NFC في سجلات التدقيق
4. مراقبة مؤشرات تلف الذاكرة في سجلات النواة