🇰🇷 한글 설명
Linux 커널의 mlx5 드라이버에서 mlx5_cmd_dr_create_fte 함수 호출 시 슬랩 영역을 벗어나는 메모리 접근(slab-out-of-bounds) 취약점이 발견되었습니다. 특정 조건에서 32개의 목적지를 가진 규칙을 추가할 때 할당된 버퍼 범위를 초과하여 메모리에 접근하는 문제가 발생합니다.
💡 쉬운 설명
네트워크 장치를 제어하는 소프트웨어에서 정해진 메모리 공간보다 더 많은 데이터를 쓰려고 시도하는 오류가 있습니다. 이로 인해 시스템이 멈추거나 보안 문제가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net/mlx5: DR, Fix slab-out-of-bounds in mlx5_cmd_dr_create_fte
When adding a rule with 32 destinations, we hit the following out-of-band
access issue:
BUG: KASAN: slab-out-of-bounds in mlx5_cmd_dr_create_fte+0x18ee/0x1e70
This patch fixes the issue by both increasing the allocated buffers to
accommodate for the needed actions and by checking the number of actions
to prevent this issue when a rule with too many actions is provided.
📍 영향받는 시스템
Mellanox NIC 드라이버(mlx5)를 사용하는 Linux 커널 버전
⚔️ 공격 벡터
특수하게 조작된 네트워크 규칙(Destination/Action 개수 조작)을 커널에 전달하여 메모리 오버플로우 유도
🛡️ 대응 방법
해당 취약점이 수정된 최신 Linux 커널 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 취약점이 패치된 배포판의 보안 업데이트 버전인지 확인