🇰🇷 한글 설명
Linux 커널의 net/tls 구성 요소에서 비동기 복호화 실패 시 tls_sw_splice_read() 함수가 오류를 적절히 처리하지 못하는 취약점이 발견되었습니다. 이로 인해 인증에 실패한 레코드가 포함된 연결임에도 불구하고 splice를 통해 데이터가 계속 전달될 수 있는 문제가 발생합니다.
💡 쉬운 설명
암호 해독에 실패하여 연결을 끊어야 하는 상황임에도 불구하고, 특정 통로를 통해 잘못된 데이터가 계속 흘러나올 수 있는 결함입니다. 보안 연결이 끊어지지 않고 데이터가 유출될 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net/tls: Fail tls_sw_splice_read() after a failed async decrypt
When an async decrypt fails, tls_decrypt_done() records the error in
ctx->async_wait.err and calls tls_err_abort(), which stores it in
sk_err. tls_sw_recvmsg() and tls_sw_read_sock() each read
async_wait.err once they hold the reader lock and fail the call: a
record that did not authenticate breaks the connection.
tls_sw_splice_read() has no such check, and sk_err does not stand in
for one. tls_rx_rec_wait() tests sk_err only inside the loop it
skips whenever a record is already parsed, and the first reader to
reach sock_error() clears it, while async_wait.err persists. A
splice therefore keeps delivering records on a connection that
recvmsg() and read_sock() refuse to read.
Read async_wait.err in tls_sw_splice_read() as the other two readers
do.
📍 영향받는 시스템
Linux Kernel (net/tls 모듈을 사용하는 시스템)
⚔️ 공격 벡터
비동기 복호화 오류를 유발하여 인증되지 않은 레코드가 splice를 통해 전달되도록 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 tls_sw_splice_read()의 오류 체크 로직을 적용해야 합니다.
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 해결된 패치 버전인지 보안 공지(Advisory)와 대조합니다.