🇰🇷 한글 설명
Linux 커널의 hns3 네트워크 드라이버에서 hclge 드라이버 언로드 시 발생하는 경합 조건 취약점입니다. 여러 드라이버가 동시에 언로드될 때 ae_dev 노드가 예기치 않게 제거되어 시스템 오류(Oops)를 유발할 수 있습니다.
💡 쉬운 설명
네트워크 장치 드라이버를 제거하는 과정에서 두 작업이 동시에 일어나 충돌이 발생하는 문제입니다. 이로 인해 시스템이 갑자기 멈추거나 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net: hns3: fix oops when unload drivers paralleling
When unload hclge driver, it tries to disable sriov first for each
ae_dev node from hnae3_ae_dev_list. If user unloads hns3 driver at
the time, because it removes all the ae_dev nodes, and it may cause
oops.
But we can't simply use hnae3_common_lock for this. Because in the
process flow of pci_disable_sriov(), it will trigger the remove flow
of VF, which will also take hnae3_common_lock.
To fixes it, introduce a new mutex to protect the unload process.
📍 영향받는 시스템
hns3 드라이버를 사용하는 Linux 커널 시스템
⚔️ 공격 벡터
로컬 시스템에서 드라이버 언로드 작업을 병렬로 수행하여 발생 (Race Condition)
🛡️ 대응 방법
해당 취약점이 수정된 최신 Linux 커널 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전을 확인하여 취약점이 해결된 패치 버전인지 확인합니다.