🇰🇷 한글 설명
Linux 커널의 crypto/algif_hash 모듈에서 이중 메모리 해제(double free) 취약점이 발견되었습니다. MSG_MORE 플래그가 설정된 상태에서 accept(2) 호출 시 crypto_ahash_import 실패 시 sk2 소켓이 두 번 해제되어 메모리 오염을 야기합니다.
💡 쉬운 설명
Linux 커널의 암호화 기능에서 메모리를 잘못 두 번 해제하는 버그입니다. 특정 조건에서 이를 악용하면 시스템 크래시나 권한 상승이 가능합니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
crypto: algif_hash - fix double free in hash_accept
If accept(2) is called on socket type algif_hash with
MSG_MORE flag set and crypto_ahash_import fails,
sk2 is freed. However, it is also freed in af_alg_release,
leading to slab-use-after-free error.
📍 영향받는 시스템
Linux kernel 5.x, 6.x 버전 (algif_hash 모듈이 활성화된 경우)
⚔️ 공격 벡터
로컬 공격자가 MSG_MORE 플래그로 algif_hash 소켓의 accept() 함수를 호출하여 이중 해제 조건 트리거
🛡️ 대응 방법
Linux 커널을 최신 패치 버전으로 업그레이드하거나 crypto/algif_hash.c의 hash_accept 함수 패치 적용
🔧 검증 코드
커널 버전이 5.x 또는 6.x이면 공식 Linux 보안 공지에서 CVE-2025-38079 패치 여부 확인 필요
uname -r | awk -F. '{if($1>=5 && $1<=6) print "Kernel version: "$0" - Check for patch"; else print "Kernel version: "$0}'