🇰🇷 한글 설명
Linux 커널의 sfc 및 efx 드라이버에서 NIC(네트워크 인터페이스 카드)가 재설정되는 동안 통계 정보를 읽으려 할 때 발생하는 NULL 포인터 역참조 취약점입니다. NIC가 종료되는 과정에서 하드웨어 통계 데이터에 접근하려고 시도하면 시스템 크래시(Kernel Panic)가 발생할 수 있습니다.
💡 쉬운 설명
네트워크 카드가 재시작되는 민감한 순간에 시스템이 잘못된 메모리 주소를 읽으려고 시도하여 컴퓨터가 갑자기 멈추거나 꺼질 수 있는 문제입니다. 네트워크 상태를 확인하는 과정에서 발생하는 오류입니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
sfc: fix crash when reading stats while NIC is resetting
efx_net_stats() (.ndo_get_stats64) can be called during an ethtool
selftest, during which time nic_data->mc_stats is NULL as the NIC has
been fini'd. In this case do not attempt to fetch the latest stats
from the hardware, else we will crash on a NULL dereference:
BUG: kernel NULL pointer dereference, address: 0000000000000038
RIP efx_nic_update_stats
abridged calltrace:
efx_ef10_update_stats_pf
efx_net_stats
dev_get_stats
dev_seq_printf_stats
Skipping the read is safe, we will simply give out stale stats.
To ensure that the free in efx_ef10_fini_nic() does not race against
efx_ef10_update_stats_pf(), which could cause a TOCTTOU bug, take the
efx->stats_lock in fini_nic (it is already held across update_stats).
📍 영향받는 시스템
Linux Kernel (sfc 및 efx 드라이버를 사용하는 시스템)
⚔️ 공격 벡터
로컬 사용자가 ethtool 등을 사용하여 네트워크 통계 정보를 요청함으로써 시스템 크래시를 유도할 수 있음
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 수정된 패치 버전 이상인지 확인하십시오.