🇰🇷 한글 설명
Linux 커널의 TLS 구현에서 소켓 연결 해제(disconnect)를 명시적으로 허용하지 않도록 수정되었습니다. syzbot에 의해 발견된 이 취약점은 TLS 소켓이 예기치 않게 연결 해제될 경우 커널 내에서 다양한 예외 상황과 경고(WARNING)를 발생시킬 수 있습니다.
💡 쉬운 설명
인터넷 보안 연결(TLS)을 사용하는 과정에서 연결이 갑자기 끊길 때 컴퓨터 시스템이 혼란을 겪어 오류가 발생할 수 있는 문제입니다. 이를 방지하기 위해 시스템이 비정상적인 연결 끊김을 처리하지 못하도록 규칙을 강화했습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net: tls: explicitly disallow disconnect
syzbot discovered that it can disconnect a TLS socket and then
run into all sort of unexpected corner cases. I have a vague
recollection of Eric pointing this out to us a long time ago.
Supporting disconnect is really hard, for one thing if offload
is enabled we'd need to wait for all packets to be _acked_.
Disconnect is not commonly used, disallow it.
The immediate problem syzbot run into is the warning in the strp,
but that's just the easiest bug to trigger:
WARNING: CPU: 0 PID: 5834 at net/tls/tls_strp.c:486 tls_strp_msg_load+0x72e/0xa80 net/tls/tls_strp.c:486
RIP: 0010:tls_strp_msg_load+0x72e/0xa80 net/tls/tls_strp.c:486
Call Trace:
<TASK>
tls_rx_rec_wait+0x280/0xa60 net/tls/tls_sw.c:1363
tls_sw_recvmsg+0x85c/0x1c30 net/tls/tls_sw.c:2043
inet6_recvmsg+0x2c9/0x730 net/ipv6/af_inet6.c:678
sock_recvmsg_nosec net/socket.c:1023 [inline]
sock_recvmsg+0x109/0x280 net/socket.c:1045
__sys_recvfrom+0x202/0x380 net/socket.c:2237
📍 영향받는 시스템
Linux Kernel (TLS 관련 모듈 사용 시스템)
⚔️ 공격 벡터
TLS 소켓 연결 상태에서 의도적으로 연결 해제를 유도하여 커널의 예외 상황 및 경고를 트리거함
🛡️ 대응 방법
최신 보안 패치가 적용된 Linux 커널 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인