🇰🇷 한글 설명
Linux 커널의 net/tls 구성 요소에서 tls_err_abort() 함수 호출 시 부호가 잘못 처리되는 취약점이 발견되었습니다. 이로 인해 sk_err 값이 양수로 저장되어 메모리 손상을 유발하고, 결과적으로 잘못된 주소 계산을 통한 시스템 불안정성을 초래할 수 있습니다.
💡 쉬운 설명
네트워크 보안 통신을 처리하는 과정에서 숫자 부호가 반대로 바뀌는 오류가 발생했습니다. 이 오류 때문에 컴퓨터가 메모리의 엉뚱한 위치를 건드리게 되어 시스템이 고장 날 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net/tls: Fix flipped sign in tls_err_abort() calls
sk->sk_err appears to expect a positive value, a convention that ktls
doesn't always follow and that leads to memory corruption in other code.
For instance,
[kworker]
tls_encrypt_done(..., err=<negative error from crypto request>)
tls_err_abort(.., err)
sk->sk_err = err;
[task]
splice_from_pipe_feed
...
tls_sw_do_sendpage
if (sk->sk_err) {
ret = -sk->sk_err; // ret is positive
splice_from_pipe_feed (continued)
ret = actor(...) // ret is still positive and interpreted as bytes
// written, resulting in underflow of buf->len and
// sd->len, leading to huge buf->offset and bogus
// addresses computed in later calls to actor()
Fix all tls_err_abort() callers to pass a negative error code
consistently and centralize the error-prone sign flip there, throwing in
a warning to catch future misuse and uninlining the function so it
really does only warn once.
📍 영향받는 시스템
Linux Kernel (ktls 모듈을 사용하는 버전)
⚔️ 공격 벡터
네트워크 암호화 통신 과정에서 특정 오류를 유도하여 메모리 손상을 일으키는 방식
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 해결된 최신 패치 버전인지 확인하십시오.