🇰🇷 한글 설명
RPCSEC_GSS 데이터 패킷을 검증하는 과정에서 스택 버퍼 크기를 적절히 확인하지 않아 스택 오버플로우가 발생합니다. 공격자는 인증 없이도 악의적인 패킷을 전송하여 커널 권한의 원격 코드 실행(RCE)을 유도할 수 있습니다.
💡 쉬운 설명
데이터를 확인하는 과정에서 준비된 그릇보다 더 큰 데이터를 억지로 밀어 넣어 시스템을 고장 내는 보안 결함입니다. 이를 통해 해커가 컴퓨터의 가장 깊숙한 권한을 탈취하여 마음대로 조종할 수 있습니다.
🇺🇸 원문 (English)
Each RPCSEC_GSS data packet is validated by a routine which checks a signature in the packet. This routine copies a portion of the packet into a stack buffer, but fails to ensure that the buffer is sufficiently large, and a malicious client can trigger a stack overflow. Notably, this does not require the client to authenticate itself first.
As kgssapi.ko's RPCSEC_GSS implementation is vulnerable, remote code execution in the kernel is possible by an authenticated user that is able to send packets to the kernel's NFS server while kgssapi.ko is loaded into the kernel.
In userspace, applications which have librpcgss_sec loaded and run an RPC server are vulnerable to remote code execution from any client able to send it packets. We are not aware of any such applications in the FreeBSD base system.
📍 영향받는 시스템
kgssapi.ko 모듈이 로드된 FreeBSD 커널 및 librpcgss_sec 라이브러리를 사용하는 RPC 서버 애플리케이션
⚔️ 공격 벡터
인증되지 않은 클라이언트가 조작된 RPCSEC_GSS 패킷을 NFS 서버 또는 RPC 서버로 전송
🛡️ 대응 방법
커널 및 관련 라이브러리(librpcgss_sec)를 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
명령어 결과에 kgssapi.ko 모듈이나 librpcgss_sec 라이브러리가 나타나면 해당 취약점에 노출될 가능성이 있습니다.
kldstat | grep kgssapi.ko && ldconfig -p | grep librpcgss_sec
📊 CVSS Vector String
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
💻 영향받는 소프트웨어
IBM WebSphere Application Server