🇰🇷 한글 설명
Linux 커널의 RDMA/cxgb4 드라이버에서 TPT 엔트리 쓰기 실패 시 STAG 인덱스를 해제하지 않는 취약점이 발견되었습니다. 이로 인해 인덱스와 통계 수치가 해제되지 않고 누수되어 장치 종료 시까지 자원이 낭비됩니다.
💡 쉬운 설명
컴퓨터의 통신 자원을 빌려온 뒤, 작업이 실패했을 때 빌린 자원을 다시 돌려주지 않아 발생하는 문제입니다. 이 문제가 반복되면 시스템의 통신 자원이 점차 고갈될 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
RDMA/cxgb4: free STAG index when TPT entry write fails
write_tpt_entry() allocates a new STAG index with c4iw_get_resource() and
bumps stats.stag.cur before programming the entry. When
write_adapter_mem() fails, it returns the error without releasing the index
or reversing the statistic. No MR is inserted into rhp->mrs, so
deregistration never reclaims it, leaking the index until device teardown.
Record whether this call allocated the index and, on a failed write, return
it to tpt_table and decrement stats.stag.cur. Key the rollback on both the
write error and that flag, not the error alone: a non-reset update carries
a caller-owned STAG that this call did not allocate and must not free.
📍 영향받는 시스템
Linux kernel (RDMA/cxgb4 driver component)
⚔️ 공격 벡터
로컬 공격자가 특정 RDMA 작업을 반복하여 자원 누수를 유도할 수 있음
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인하십시오.