🇰🇷 한글 설명
Linux 커널의 TLS 구현에서 비동기 암호화 해제 과정 중 skb(소켓 버퍼)가 적절히 해제되지 않는 메모리 누수 취약점이 발견되었습니다. 특정 상황에서 비동기 작업이 완료된 후에도 큐에 남아있는 버퍼를 정리하지 못해 시스템 자원이 고갈될 수 있습니다.
💡 쉬운 설명
데이터를 암호화 해제하는 과정에서 사용한 메모리 조각들을 제때 버리지 못하고 계속 쌓아두는 버그입니다. 이 문제가 지속되면 컴퓨터의 메모리가 점점 부족해져 시스템 성능이 떨어지거나 멈출 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
tls: Purge async_hold in tls_decrypt_async_wait()
The async_hold queue pins encrypted input skbs while
the AEAD engine references their scatterlist data. Once
tls_decrypt_async_wait() returns, every AEAD operation
has completed and the engine no longer references those
skbs, so they can be freed unconditionally.
A subsequent patch adds batch async decryption to
tls_sw_read_sock(), introducing a new call site that
must drain pending AEAD operations and release held
skbs. Move __skb_queue_purge(&ctx->async_hold) into
tls_decrypt_async_wait() so the purge is centralized
and every caller -- recvmsg's drain path, the -EBUSY
fallback in tls_do_decryption(), and the new read_sock
batch path -- releases held skbs on synchronization
without each site managing the purge independently.
This fixes a leak when tls_strp_msg_hold() fails part-way through,
after having added some cloned skbs to the async_hold
queue. tls_decrypt_sg() will then call tls_decrypt_async_wait() to
process all pending decrypts, and drop back to synchronous mode, but
tls_sw_recvmsg() only flushes the async_hold queue when one record has
been processed in "fully-async" mode, which may not be the case here.
[
[email protected]: added leak comment]
📍 영향받는 시스템
Linux kernel (TLS subsystem 관련 버전)
⚔️ 공격 벡터
특정 네트워크 트래픽 패턴을 유도하여 TLS 비동기 암호화 해제 과정에서 메모리 누수를 유발
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
현재 실행 중인 커널 버전을 확인하여 해당 취약점이 해결된 패치 버전인지 확인