🇰🇷 한글 설명
Linux 커널의 RDMA/cxgb4 드라이버에서 write_tpt_entry() 함수 호출 시 skb 메모리 누수 및 이중 해제(double free) 취약점이 발견되었습니다. 장치가 치명적 오류 상태일 때 메모리 관리가 적절히 이루어지지 않아 시스템 불안정성을 초래할 수 있습니다.
💡 쉬운 설명
컴퓨터의 통신 부품을 관리하는 프로그램에서 메모리를 제대로 비우지 않거나, 이미 비운 메모리를 다시 비우려고 시도하는 오류가 있습니다. 이로 인해 시스템이 멈추거나 예상치 못한 동작을 할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
RDMA/cxgb4: Fix dereg_skb leak and double free in write_tpt_entry()
When the device is in the fatal error state, write_tpt_entry() returns -EIO
before handing the caller's preallocated skb to the transmit path; its
allocation-failure returns do the same. c4iw_dereg_mr() ignores the error
and frees mhp, leaking mhp->dereg_skb. c4iw_get_dma_mr() instead frees the
skb a second time after dereg_mem() already consumed it, a double free.
Make write_tpt_entry() the sole owner of a non-NULL skb, freeing it on
every return preceding handoff to c4iw_ofld_send(): fatal error, tpt and
stag allocation failure. c4iw_ofld_send() consumes the skb on success and
error alike, so drop the redundant kfree_skb() in c4iw_get_dma_mr() after
dereg_mem().
📍 영향받는 시스템
Linux kernel (RDMA/cxgb4 driver component)
⚔️ 공격 벡터
장치를 치명적 오류 상태로 유도하거나 메모리 할당 실패를 유발하여 메모리 관리 로직을 트리거함
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인하십시오.