🇰🇷 한글 설명
Linux 커널의 net: phy 계층에서 genphy를 사용할 때 PHY 기반 SFP 케이지를 설정하려 시도하여 발생하는 교착 상태(Deadlock) 취약점입니다. genphy 환경에서 sfp_bus_add_upstream()이 호출되면 RTNL 잠금으로 인해 시스템이 멈출 수 있습니다.
💡 쉬운 설명
특정 네트워크 장치 설정 과정에서 시스템이 서로의 자원을 기다리며 무한히 멈춰버리는 현상이 발생할 수 있습니다. 이로 인해 시스템이 응답하지 않는 상태가 될 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net: phy: don't try to setup PHY-driven SFP cages when using genphy
We don't have support for PHY-driver SFP cages with the genphy code.
On top of that, it was found by sashiko that running
sfp_bus_add_upstream() for genphy deadlocks, as for genphy the PHY
probing runs under RTNL, which isn't the case for non-genphy drivers.
This problem was reproduced, and does lead to a deadlock on RTNL.
Before the blamed commit, the phy_sfp_probe() call was made by
individual PHY drivers, so there was no way to get to the SFP probing
path when using genphy.
Let's therefore only run phy_sfp_probe when not using genphy.
📍 영향받는 시스템
genphy를 사용하는 Linux 커널 기반 시스템
⚔️ 공격 벡터
특정 네트워크 하드웨어 구성 또는 SFP 장치 연결을 통한 로컬 교착 상태 유발
🛡️ 대응 방법
genphy를 사용하는 경우 phy_sfp_probe()가 실행되지 않도록 수정된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 최신 버전인지 확인