🇰🇷 한글 설명
Linux 커널의 net: shaper 구성 요소에서 GROUP 요청 시 중복된 리프(leaf) 항목을 거부하지 않아 발생하는 취약점입니다. 동일한 핸들이 중복 제공될 경우 메모리 해제 과정에서 double free 오류가 발생하여 시스템 안정성을 해칠 수 있습니다.
💡 쉬운 설명
네트워크 설정 과정에서 중복된 정보를 입력하면 컴퓨터 메모리를 두 번 지우려고 시도하는 오류가 발생합니다. 이로 인해 시스템이 갑자기 멈추거나 보안 문제가 생길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net: shaper: reject duplicate leaves in GROUP request
net_shaper_nl_group_doit() does not deduplicate NET_SHAPER_A_LEAVES
entries. When userspace supplies the same leaf handle twice, the same
old-parent pointer lands twice in old_nodes[]. The cleanup loop double
frees the parent. Of course the same parent may still be in old_nodes[]
twice if we are moving multiple of its leaves.
Note that this patch also implicitly fixes the fact that the
i >= leaves_count path forgets to set ret.
📍 영향받는 시스템
Linux Kernel (net: shaper 모듈을 사용하는 버전)
⚔️ 공격 벡터
사용자 공간(userspace)에서 조작된 중복 리프 핸들을 포함한 NET_SHAPER_A_LEAVES 요청을 커널에 전송
🛡️ 대응 방법
해당 취약점이 수정된 최신 Linux 커널 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 패치가 적용된 보안 업데이트 버전인지 확인