🇰🇷 한글 설명
Linux 커널의 mlx5e 드라이버에서 CT 엔트리 업데이트 시 modify header 컨텍스트 누수가 발생하는 취약점입니다. 새로운 헤더 할당 실패 시 에러 포인터를 참조하여 커널 패닉을 유발하거나, 기존 헤더를 제대로 해제하지 못해 메모리 누수가 발생할 수 있습니다.
💡 쉬운 설명
네트워크 장치 드라이버에서 메모리를 관리하는 과정 중 실수가 발생하여 시스템이 갑자기 멈추거나(패닉) 메모리가 낭비될 수 있는 문제입니다. 특정 상황에서 시스템이 예상치 못한 오류를 일으켜 작동을 중단시킬 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net/mlx5e: Fix CT entry update leaks of modify header context
The cited commit allocates a new modify header to replace the old
one when updating CT entry. But if failed to allocate a new one, eg.
exceed the max number firmware can support, modify header will be
an error pointer that will trigger a panic when deallocating it. And
the old modify header point is copied to old attr. When the old
attr is freed, the old modify header is lost.
Fix it by restoring the old attr to attr when failed to allocate a
new modify header context. So when the CT entry is freed, the right
modify header context will be freed. And the panic of accessing
error pointer is also fixed.
📍 영향받는 시스템
Mellanox mlx5e 드라이버를 사용하는 Linux 커널 버전
⚔️ 공격 벡터
네트워크 연결 상태(CT entry)를 빈번하게 변경하여 메모리 할당 실패를 유도함으로써 시스템 패닉 유발
🛡️ 대응 방법
해당 취약점이 수정된 최신 Linux 커널 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 취약점이 해결된 패치 버전 이후인지 확인