🇰🇷 한글 설명
리눅스 커널의 TLS 구현 중 백로그 복호화 실패 시 발생하는 Use-After-Free 취약점입니다. 복호화 과정에서 오류가 발생할 때 이미 해제된 메모리 페이지에 다시 접근함으로써 시스템 불안정성이나 권한 상승을 초래할 수 있습니다.
💡 쉬운 설명
데이터 암호를 푸는 과정에서 오류가 났을 때, 컴퓨터가 이미 사용이 끝났다고 버린 메모리 공간을 다시 사용하려고 시도하는 문제입니다. 이로 인해 시스템이 멈추거나 해커가 시스템 제어권을 얻을 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
tls: fix use-after-free on failed backlog decryption
When the decrypt request goes to the backlog and crypto_aead_decrypt
returns -EBUSY, tls_do_decryption will wait until all async
decryptions have completed. If one of them fails, tls_do_decryption
will return -EBADMSG and tls_decrypt_sg jumps to the error path,
releasing all the pages. But the pages have been passed to the async
callback, and have already been released by tls_decrypt_done.
The only true async case is when crypto_aead_decrypt returns
-EINPROGRESS. With -EBUSY, we already waited so we can tell
tls_sw_recvmsg that the data is available for immediate copy, but we
need to notify tls_decrypt_sg (via the new ->async_done flag) that the
memory has already been released.
📍 영향받는 시스템
TLS 기능을 사용하는 리눅스 커널 (특정 패치 적용 전 버전)
⚔️ 공격 벡터
조작된 TLS 패킷을 전송하여 복호화 과정에서 의도적인 오류를 유발하고 메모리 오류를 트리거함
🛡️ 대응 방법
리눅스 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 해결된 최신 패치 버전인지 확인