🇰🇷 한글 설명
Linux 커널의 ethoc 이더넷 드라이버에서, probe 과정 중 PHY를 연결하기 전에 netdev->netdev_ops가 설정되지 않아 CONFIG_NET_SHAPER가 활성화된 경우 NULL 포인터 역참조로 커널이 충돌하는 문제입니다. 해당 드라이버의 netops 설정을 PHY 연결 이전으로 옮겨 수정되었습니다.
💡 쉬운 설명
특정 네트워크 장치 드라이버가 켜지는 과정에서 필요한 설정이 빠져 있어 시스템이 멈추거나 재부팅될 수 있습니다. 커널 업데이트로 해결됩니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net: ethoc: move setting of netops to fix crash
ethoc_probe() calls ethoc_mdio_probe(), which connects the PHY,
before netdev->netdev_ops is assigned. phy_attach_direct() ->
phy_link_topo_add_phy() reads dev->netdev_ops through
netdev_need_ops_lock() since the commit in question, so probing crashes
with a NULL pointer dereference when CONFIG_NET_SHAPER is enabled.
Assign netdev_ops before the PHY attach, as was done for emac in commit
7c9f391ec89c ("net: emac: move setting of netops to fix crash").
📍 영향받는 시스템
ethoc 드라이버를 사용하고 CONFIG_NET_SHAPER가 활성화된 Linux 커널 (수정 커밋 적용 이전 버전)
⚔️ 공격 벡터
공격 벡터 정보 없음. 장치 probe 시 발생하는 서비스 거부(DoS) 성격의 커널 충돌 결함
🛡️ 대응 방법
수정 커밋이 포함된 최신 Linux 커널 버전으로 업데이트
🔧 검증 코드
커널 버전이 패치된 버전 이상인지 확인하고, ethoc 모듈이 로드되어 있지 않다면 이 취약점의 영향을 받지 않습니다. 모듈이 로드되어 있다면 커널 업데이트 여부를 확인해야 합니다.
uname -r && (grep -i 'ethoc' /proc/modules 2>/dev/null || lsmod | grep -i ethoc)