🇰🇷 한글 설명
sshd(8)의 시그널 핸들러가 비동기 시그널 안전(async-signal-safe)하지 않은 로깅 함수를 호출하여 발생하는 취약점입니다. 공격자는 LoginGraceTime 내에 인증하지 않음으로써 발생하는 레이스 컨디션을 악용하여 권한이 없는 상태에서 루트 권한으로 원격 코드 실행(RCE)을 수행할 수 있습니다.
💡 쉬운 설명
로그인 시간이 초과되었을 때 실행되는 특정 기능이 보안상 안전하지 않은 방식으로 작동하여 발생하는 문제입니다. 해커가 이를 이용하면 로그인하지 않은 상태에서도 서버의 관리자 권한을 탈취할 수 있습니다.
🇺🇸 원문 (English)
A signal handler in sshd(8) may call a logging function that is not async-signal-safe. The signal handler is invoked when a client does not authenticate within the LoginGraceTime seconds (120 by default). This signal handler executes in the context of the sshd(8)'s privileged code, which is not sandboxed and runs with full root privileges.
This issue is another instance of the problem in CVE-2024-6387 addressed by FreeBSD-SA-24:04.openssh. The faulty code in this case is from the integration of blacklistd in OpenSSH in FreeBSD.
As a result of calling functions that are not async-signal-safe in the privileged sshd(8) context, a race condition exists that a determined attacker may be able to exploit to allow an unauthenticated remote code execution as root.
📍 영향받는 시스템
FreeBSD에서 blacklistd가 통합된 OpenSSH 버전 (CVE-2024-6387과 유사한 구조)
⚔️ 공격 벡터
인증되지 않은 원격 공격자가 LoginGraceTime 내에 의도적으로 레이스 컨디션을 유발하여 공격
🛡️ 대응 방법
FreeBSD 보안 업데이트를 통해 OpenSSH 및 관련 패치를 즉시 적용
🔧 검증 코드
출력된 OpenSSH 버전을 확인하여 FreeBSD 보안 권고(FreeBSD-SA-24:04.openssh)에 따른 패치 적용 여부를 대조합니다.
pkg info openssh | grep -E 'version'