🇰🇷 한글 설명
Linux 커널의 libceph 구성 요소에서 ceph_handle_auth_reply() 함수 호출 시 발생할 수 있는 Null 포인터 역참조 취약점입니다. 인증 응답 메시지의 프로토콜과 결과 값이 모두 0인 경우 이를 오류로 처리하지 않아, 내부적으로 ops 구조체가 NULL인 상태에서 함수를 호출하게 됩니다.
💡 쉬운 설명
인증 과정에서 잘못된 데이터가 들어왔을 때 시스템이 이를 제대로 걸러내지 못해 발생하는 문제입니다. 이로 인해 시스템이 예상치 못한 동작을 하거나 갑자기 멈추는 현상이 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
libceph: Prevent potential null-ptr-deref in ceph_handle_auth_reply()
If a message of type CEPH_MSG_AUTH_REPLY contains a zero value for both
protocol and result, this is currently not treated as an error. In case
of ac->negotiating == true and ac->protocol > 0, this leads to setting
ac->protocol = 0 and ac->ops = NULL. Thereafter, the check for
ac->protocol != protocol returns false, and init_protocol() is not
called. Subsequently, ac->ops->handle_reply() is called, which leads to
a null pointer dereference, because ac->ops is still NULL.
This patch changes the check for ac->protocol != protocol to
!ac->protocol, as this also includes the case when the protocol was set
to zero in the message. This causes the message to be treated as
containing a bad auth protocol.
📍 영향받는 시스템
Linux Kernel (libceph 모듈을 사용하는 시스템)
⚔️ 공격 벡터
조작된 CEPH_MSG_AUTH_REPLY 메시지를 전송하여 커널의 Null 포인터 역참조 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 해결된 패치 버전인지 확인