🔍 CVE-2026-48985

5.5
CVSS Score
MEDIUM
2026-06-18
2026-10-26 11:10
✅ 완료

🇰🇷 한글 설명

pam_usb 0.9.1 이하 버전에서 loginctl 출력을 파싱할 때 NULL 역참조로 인한 크래시가 발생할 수 있습니다. Remote 필드가 줄바꿈 문자로만 구성될 경우 strcmp 함수가 NULL 값을 참조하여 서비스 거부(DoS)를 유발할 수 있습니다.

💡 쉬운 설명

USB를 이용한 로그인 인증 프로그램에 오류가 있어, 특정 상황에서 프로그램이 갑자기 꺼질 수 있습니다. 이로 인해 사용자가 로그인을 하거나 관리자 권한을 사용하는 것이 불가능해질 수 있습니다.

🇺🇸 원문 (English)

pam_usb provides hardware authentication for Linux using ordinary removable media. In versions 0.9.1 and below, pusb_is_loginctl_local() can cause a NULL dereference crash when parsing loginctl output. The function calls popen() and reads the result; if the Remote field is only a newline, fgets() succeeds but strtok_r(buf, "\n", &saveptr) returns NULL. A subsequent strcmp(is_remote, "no") then dereferences NULL, causing undefined behavior (typically SIGSEGV) and crashing the PAM module. This can crash the authenticating process (e.g., sudo, login) and, depending on PAM stack configuration, deny access for all users of the affected service. This issue has been fixed in version 0.9.2.

📍 영향받는 시스템

pam_usb 0.9.1 및 그 이하 모든 버전

⚔️ 공격 벡터

loginctl의 출력 결과(Remote 필드)를 조작하여 PAM 모듈의 크래시 유도

🛡️ 대응 방법

pam_usb를 0.9.2 이상의 최신 버전으로 업데이트하십시오.

🔧 검증 코드

출력된 버전 번호가 0.9.2 미만이면 취약한 상태입니다.

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

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Sudo