🇰🇷 한글 설명
Linux 커널의 hns3 네트워크 드라이버에서 PTP(Precision Time Protocol) 초기화 중 오류가 발생할 경우, 시계(clock)를 등록 해제하거나 메모리를 해제하지 않는 취약점이 발견되었습니다. 이로 인해 시스템 자원이 제대로 반환되지 않아 메모리 누수가 발생할 수 있습니다.
💡 쉬운 설명
네트워크 장치를 설정하는 과정에서 오류가 났을 때, 사용하던 메모리를 제대로 정리하지 않고 남겨두는 버그입니다. 이 문제가 반복되면 컴퓨터의 메모리가 조금씩 낭비되어 시스템 성능에 영향을 줄 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net: hns3: make sure ptp clock is unregister and freed if hclge_ptp_get_cycle returns an error
During the initialization of ptp, hclge_ptp_get_cycle might return an error
and returned directly without unregister clock and free it. To avoid that,
call hclge_ptp_destroy_clock to unregist and free clock if
hclge_ptp_get_cycle failed.
📍 영향받는 시스템
Linux kernel (hns3 driver 사용 환경)
⚔️ 공격 벡터
로컬 공격자가 특정 네트워크 환경을 유도하여 메모리 누수를 유발할 수 있음
🛡️ 대응 방법
hns3 드라이버의 PTP 초기화 로직이 수정된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 버전인지 배포판 보안 공지를 통해 확인