🇰🇷 한글 설명
Linux 커널의 hns3 네트워크 드라이버에서 리소스 할당 시 num_tqps 값이 일치하지 않아 발생하는 취약점입니다. 이로 인해 일부 hdev->htqp 요소가 초기화되지 않은 상태로 남게 되어 시스템 불안정성을 초래할 수 있습니다.
💡 쉬운 설명
네트워크 장치를 설정할 때 필요한 메모리 공간의 크기를 서로 다르게 계산하여 일부 공간이 제대로 준비되지 않는 문제입니다. 이로 인해 시스템이 예상치 못한 동작을 하거나 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net: hns3: using the num_tqps in the vf driver to apply for resources
Currently, hdev->htqp is allocated using hdev->num_tqps, and kinfo->tqp
is allocated using kinfo->num_tqps. However, kinfo->num_tqps is set to
min(new_tqps, hdev->num_tqps); Therefore, kinfo->num_tqps may be smaller
than hdev->num_tqps, which causes some hdev->htqp[i] to remain
uninitialized in hclgevf_knic_setup().
Thus, this patch allocates hdev->htqp and kinfo->tqp using hdev->num_tqps,
ensuring that the lengths of hdev->htqp and kinfo->tqp are consistent
and that all elements are properly initialized.
📍 영향받는 시스템
hns3 드라이버를 사용하는 Linux 커널 버전
⚔️ 공격 벡터
로컬 공격자가 네트워크 설정 변경을 통해 초기화되지 않은 메모리 영역에 접근할 수 있음
🛡️ 대응 방법
hdev->num_tqps를 기준으로 리소스를 일관되게 할당하도록 수정된 최신 Linux 커널로 업데이트
🔧 검증 코드
현재 실행 중인 커널 버전을 확인하여 해당 취약점이 패치된 최신 버전인지 확인합니다.