🇰🇷 한글 설명
Linux 커널의 RDMA/hns 드라이버에서 poll cq direct 모드 사용 시 경고(WARN_ONCE)가 발생하는 취약점입니다. 드라이버 리셋 과정에서 호출되지 않아야 할 컴플리션 핸들러가 호출되어 시스템 로그에 경고를 발생시킵니다.
💡 쉬운 설명
컴퓨터의 네트워크 통신 부품을 초기화할 때, 실행해서는 안 되는 명령이 잘못 실행되어 시스템에 경고 메시지를 남기는 문제입니다. 실제 데이터가 유출되거나 해킹되는 심각한 보안 위협은 아니지만, 시스템 로그를 지저분하게 만들 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
RDMA/hns: Fix warning in poll cq direct mode
CQs allocated by ib_alloc_cq() always have a comp_handler. Though
in direct mode this handler is never expected to be called, it
is still called when the driver is reset, triggering the following
WARN_ONCE():
Call trace:
ib_cq_completion_direct+0x38/0x60
hns_roce_cq_completion+0x54/0x90 (hns_roce_hw_v2]
hns_roce_handle_device_err+Ox1c8/0x340 [hns_roce_hw_v2]
hns_roce_hw_v2_uninit_instance.constprop.0+0x34/0x70 [hns_roce_hw_v2]
hns_roce_hw_v2_reset_notify+0xc4/0xe0 [hns_roce_hw_v2]
hclge_notify_roce_client+0x60/0xbc [hclge]
hclge_reset_rebuild+0x48/0x34c [hclge]
hclge_reset_subtask+0xcc/0xec [hclge]
hclge_reset_service_task+0x80/0x160 [hclge]
hclge_service_task+0x50/0x80 (hclge]
process_one_work+0x1cc/0x4d0
worker_thread+0x154/0x414
kthread+0x104/0x144
ret_from_fork+0x10/0x18
📍 영향받는 시스템
RDMA/hns 드라이버를 사용하는 Linux 커널 시스템
⚔️ 공격 벡터
로컬 시스템에서 드라이버 리셋을 유도할 수 있는 환경 (공격 난이도 매우 낮음)
🛡️ 대응 방법
해당 패치가 적용된 최신 Linux 커널 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인하십시오.