CVE-2026-67304
Wolfi 취약성 분석 및 완화

개요

CVE-2026-67304 is a NULL pointer dereference vulnerability in FreeRDP's smartcard device control request cleanup that allows unauthenticated remote attackers to crash the FreeRDP process. It affects all FreeRDP versions prior to 3.29.0 (confirmed through release 3.28.0). The vulnerability was discovered by Bin Luo of the University of Electronic Science and Technology of China (UESTC) and disclosed on August 1, 2026. It carries a CVSS v3.1 base score of 7.5 (High) and a CVSS v4.0 base score of 8.7 (High) (GitHub Advisory, FreeRDP Advisory).

기술적 세부 사항

The root cause is a NULL pointer dereference (CWE-476) in the free_reader_states_a() and free_reader_states_w() helper functions in libfreerdp/utils/smartcard_operations.c. Several smartcard IRP request parsers — including those handling SCARD_IOCTL_GETSTATUSCHANGEA/W, SCARD_IOCTL_LOCATECARDSA/W, and SCARD_IOCTL_LOCATECARDSBYATRA/W — read a remote-controlled cReaders value before decoding rgReaderStates. If reader-state decoding fails, rgReaderStates remains NULL while cReaders retains its non-zero value; subsequent cleanup via smartcard_operation_free() then calls free_reader_states_a/w(NULL, cReaders), which indexes rgReaderStates[x] without a NULL guard, causing a segmentation fault. The vulnerability is exploitable over the network without authentication or user interaction, affecting both the FreeRDP client smartcard path (channels/smartcard/client/smartcard_main.c) and the FreeRDP proxy smartcard path (server/proxy/channels/pf_channel_smartcard.c) (FreeRDP Advisory).

영향

Successful exploitation results in a reliable process crash (denial of service) with no evidence of code execution potential. In the client scenario, a malicious or compromised RDP server can crash a FreeRDP client when smartcard redirection is enabled; in the proxy scenario, a malicious client can crash the FreeRDP proxy's smartcard handling channel. There is no confidentiality or integrity impact — the confirmed effect is solely availability loss (FreeRDP Advisory, GitHub Advisory).

착취 단계

  1. Identify target: Locate a FreeRDP client (version ≤ 3.28.0) with smartcard redirection enabled, or a FreeRDP proxy with the smartcard interception path active, reachable over the network.
  2. Craft malformed IRP request: Construct a smartcard Device Control IRP targeting one of the vulnerable IOCTLs (e.g., SCARD_IOCTL_GETSTATUSCHANGEA, SCARD_IOCTL_LOCATECARDSA, or SCARD_IOCTL_LOCATECARDSBYATRA). Set cReaders to a non-zero value (e.g., 1) and include a non-NULL NDR pointer for rgReaderStates, but truncate the reader-state array body so that decoding fails.
  3. Send the request: Deliver the malformed IRP to the target FreeRDP client (acting as a malicious RDP server) or to the FreeRDP proxy (acting as a malicious RDP client).
  4. Trigger NULL dereference: The decode failure leaves rgReaderStates as NULL while cReaders remains non-zero. Cleanup via smartcard_operation_free() calls free_reader_states_a/w(NULL, cReaders), which dereferences rgReaderStates[0] and crashes the process with a segmentation fault (exit code 139) (FreeRDP Advisory).

타협의 징후

  • Process: FreeRDP client or proxy process terminating unexpectedly with exit code 139 (SIGSEGV); crash dumps referencing free_reader_states_a or free_reader_states_w in libfreerdp/utils/smartcard_operations.c at lines 1502 or 1513.
  • Logs: ASan-enabled builds will log AddressSanitizer: SEGV on unknown address 0x000000000000 with a stack trace showing free_reader_states_a/w → smartcard_operation_free → smartcard_process_irp or pf_channel_smartcard_client_handle.
  • Network: Repeated RDP smartcard IRP Device Control requests with anomalous or truncated reader-state payloads targeting the affected IOCTL codes (SCARD_IOCTL_GETSTATUSCHANGEA/W, SCARD_IOCTL_LOCATECARDSA/W, SCARD_IOCTL_LOCATECARDSBYATRA/W) from an unexpected source (FreeRDP Advisory).

완화 및 해결 방법

Upgrade FreeRDP to version 3.29.0 or later, which contains the fix for this vulnerability (GitHub Advisory). The suggested fix direction is to add a NULL guard in free_reader_states_a/w() so that the function returns immediately when rgReaderStates is NULL, or to clear cReaders before returning a decode failure when rgReaderStates has not been assigned. As a network-level workaround, restrict smartcard device redirection and IRP requests to trusted sources only using firewall rules or RDP gateway policies (FreeRDP Advisory).

추가 자료


근원이 보고서는 AI를 사용하여 생성되었습니다.

관련 Wolfi 취약점:

CVE ID

심각도

점수

기술

구성 요소 이름

CISA KEV 익스플로잇

수정 사항이 있습니다.

게시된 날짜

CVE-2026-67305CRITICAL9.4
  • Wolfi logoWolfi
  • freerdp
아니요Aug 01, 2026
CVE-2026-68579HIGH8.7
  • Wolfi logoWolfi
  • freerdp
아니요Aug 02, 2026
CVE-2026-67304HIGH8.7
  • Wolfi logoWolfi
  • freerdp3
아니요Aug 01, 2026
CVE-2026-68580HIGH7.7
  • Wolfi logoWolfi
  • libwinpr
아니요Aug 02, 2026
CVE-2026-67306MEDIUM5.3
  • Wolfi logoWolfi
  • freerdp-plugins
아니요Aug 01, 2026

무료 취약성 평가

클라우드 보안 태세를 벤치마킹합니다

9개의 보안 도메인에서 클라우드 보안 관행을 평가하여 위험 수준을 벤치마킹하고 방어의 허점을 식별합니다.

평가 요청

추가 Wiz 리소스

맞춤형 데모 받기

맞춤형 데모 신청하기

"내가 본 최고의 사용자 경험은 클라우드 워크로드에 대한 완전한 가시성을 제공합니다."
데이비드 에슬릭최고정보책임자(CISO)
"Wiz는 클라우드 환경에서 무슨 일이 일어나고 있는지 볼 수 있는 단일 창을 제공합니다."
아담 플레처최고 보안 책임자(CSO)
"우리는 Wiz가 무언가를 중요한 것으로 식별하면 실제로 중요하다는 것을 알고 있습니다."
그렉 포니아토프스키위협 및 취약성 관리 책임자