🔍 CVE-2026-47270

6.3
CVSS Score
MEDIUM
2026-05-27
2026-10-26 12:10
✅ 완료

🇰🇷 한글 설명

pam_usb의 deny_remote 기능에서 재진입 불가능한 strtok() 함수를 사용하여 멀티스레드 환경에서 경쟁 조건 발생. TMUX 환경 변수가 영구적으로 손상되고 원격/로컬 세션 탐지 로직이 잘못된 결과를 반환할 수 있음.

💡 쉬운 설명

USB 인증 프로그램이 여러 사용자의 동시 로그인 시 내부 상태를 섞어서 처리함. 이로 인해 원격 로그인을 로컬로 잘못 판단하거나 그 반대의 보안 정책 우회가 발생 가능.

🇺🇸 원문 (English)

pam_usb provides hardware authentication for Linux using ordinary removable media. Prior to 0.9.0, pam_usb is a PAM module loaded into the host process (sudo, login, GDM, GNOME Shell). Display managers such as GDM run multiple concurrent authentication threads. Three functions used by the deny_remote feature called the non-reentrant strtok(), which stores state in a single global pointer. If two authentications race, one thread's strtok() call can overwrite the other's in-progress tokenisation pointer, causing incorrect parsing of the tmux session data or the /proc environ scan that backs the remote-session detection logic. Additionally, pusb_tmux_get_client_tty() passed the raw pointer returned by getenv(TMUX) directly to strtok(). getenv() returns a pointer into the live process environment block; strtok() inserts NUL bytes into that block, permanently corrupting the TMUX variable for subsequent code running in the same process. In long-lived display managers this affects all future authentications in that process. The combined effect can cause deny_remote=true to return an incorrect decision for a remote session, or an incorrect decision for a local session, depending on thread interleaving. This vulnerability is fixed in 0.9.0.

📍 영향받는 시스템

pam_usb < 0.9.0, GDM/GNOME Shell 등 display manager를 사용하는 Linux 시스템

⚔️ 공격 벡터

디스플레이 매니저에 동시 다중 인증 요청을 보내 경쟁 조건을 유발하여 deny_remote 정책 우회

🛡️ 대응 방법

pam_usb를 0.9.0 이상으로 업그레이드

🔧 검증 코드

0.9.0 이상 버전이 설치되어 있으면 안전, 미만이면 즉시 업그레이드 필요

Shell / Script
dpkg -l pam-usb 2>/dev/null | awk '/^ii/{print $3}' || rpm -q pam-usb 2>/dev/null

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N

💻 영향받는 소프트웨어

NVIDIA Cloud Gaming Guest Driver for Linux