🇰🇷 한글 설명
Linux 커널의 NTB Switchtec 드라이버에서 메모리 윈도우(MW) LUT 개수가 설정값을 초과할 때 배열 범위 밖의 메모리 접근(out-of-bounds) 취약점이 발생합니다. 이를 통해 정보 유출, 메모리 손상, 시스템 충돌이 가능합니다. 패치는 유효하지 않은 인덱스 접근을 검증하고 사용자에게 경고 메시지를 출력합니다.
💡 쉬운 설명
Linux 하드웨어 통신 드라이버가 설정된 범위를 초과하는 메모리에 접근하려고 할 때 발생하는 문제입니다. 이를 악용하면 시스템 정보를 유출하거나 시스템을 충돌시킬 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ntb: ntb_hw_switchtec: Fix array-index-out-of-bounds access
Number of MW LUTs depends on NTB configuration and can be set to MAX_MWS,
This patch protects against invalid index out of bounds access to mw_sizes
When invalid access print message to user that configuration is not valid.
📍 영향받는 시스템
Linux kernel with NTB (Non-Transparent Bridge) Switchtec device support enabled; affects all versions prior to patch date
⚔️ 공격 벡터
Local; requires ability to configure NTB parameters or trigger MW LUT initialization with invalid configuration
🛡️ 대응 방법
Update Linux kernel to latest patched version; apply upstream fix to drivers/ntb/hw/mscc/ntb_hw_switchtec.c
🔧 검증 코드
커널 버전 확인 후 NTB 디바이스 로드 상태와 dmesg 로그에서 범위 초과 경고 메시지 유무로 취약성 판단; 경고 없으면 패치 상태
uname -r && cat /proc/devices | grep -i ntb && dmesg | grep -i 'switchtec\|mw.*bound' | tail -5