🇰🇷 한글 설명
리눅스 커널의 IPv6 세그먼트 라우팅(SR) HMAC 초기화 함수에서 발생하는 메모리 누수 취약점입니다. seg6_hmac_init_algo 함수가 실패 시 이전 할당 메모리를 정리하지 않아 메모리와 암호화 변환(crypto tfm) 누수가 발생합니다.
💡 쉬운 설명
리눅스 커널이 IPv6 설정 중 오류 발생 시 할당한 메모리를 정리하지 않는 버그입니다. 이로 인해 시스템 메모리가 계속 낭비되어 장시간 운영 시 성능 저하나 시스템 장애가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ipv6: sr: fix memleak in seg6_hmac_init_algo
seg6_hmac_init_algo returns without cleaning up the previous allocations
if one fails, so it's going to leak all that memory and the crypto tfms.
Update seg6_hmac_exit to only free the memory when allocated, so we can
reuse the code directly.
📍 영향받는 시스템
Linux kernel (5.19 이상, 패치 전 모든 버전)
⚔️ 공격 벡터
로컬 공격 - IPv6 세그먼트 라우팅 설정 중 오류를 반복 유발하여 메모리 누수 가속화
🛡️ 대응 방법
커널을 최신 패치 버전으로 업데이트하거나 seg6_hmac_exit 함수 개선 패치 적용
🔧 검증 코드
커널 버전이 5.19 이상이고 IPv6 SR 모듈이 로드되어 있으면 취약할 가능성 있음. 보안 패치 적용 여부는 커널 버전 확인 또는 공식 보안 공지 확인 필요
uname -r | grep -E '^[0-9]+\.[0-9]+\.[0-9]+' && grep -q 'seg6_hmac_init_algo' /proc/modules 2>/dev/null && echo 'IPv6 SR module loaded' || echo 'Module not loaded'