🇰🇷 한글 설명
Linux 커널의 SMB 클라이언트에서 복합 요청(compound request) 전송 실패 시, 잠금 해제 전 MID를 삭제하지 않아 발생하는 취약점입니다. 이로 인해 재연결 과정에서 중복된 크레딧 반환이 발생하여 시스템 경고가 발생할 수 있습니다.
💡 쉬운 설명
데이터를 보내는 과정에서 오류가 났을 때, 시스템이 처리해야 할 목록을 제대로 정리하지 못해 중복 계산이 발생하는 문제입니다. 이로 인해 시스템 운영에 혼란을 줄 수 있는 경고 메시지가 나타날 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
smb: client: delete compound mids on send failure before unlock
When sending a compound request fails, smb_send_rqst() kicks off a
reconnect. compound_send_recv() still has those mids on pending_mid_q,
but it unlocks the server without removing them first.
During reconnect, cifs_abort_connection() walks pending_mid_q and runs
each mid callback. With no response yet, those callbacks return credits
and drop in_flight. Then compound_send_recv()'s send-error path returns
the same credits again. in_flight ends up decremented twice and
smb2_add_credits() WARNs.
syzbot hits this during SMB2_negotiate when the socket send fails.
cifs_call_async() already calls delete_mid() before unlock on send
failure. Do the same for compound chains and set cancelled_mid[] so the
out: path does not delete them again.
📍 영향받는 시스템
Linux Kernel (SMB client component)
⚔️ 공격 벡터
네트워크 소켓 전송 실패를 유도하여 SMB2 협상 단계에서 오류를 발생시키는 방식
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 해결된 패치 버전인지 확인하십시오.