🔍 CVE-2025-68263

9.8
CVSS Score
CRITICAL
2025-12-16
2026-10-15 22:19
✅ 완료

🇰🇷 한글 설명

Linux 커널의 ksmbd 모듈 내 ipc_msg_send_request 함수에서 Use-After-Free(UAF) 취약점이 발견되었습니다. 높은 동시성 환경에서 잠금(Lock) 없이 응답 데이터를 검증하고 해제하는 과정에서 레이스 컨디션이 발생하여 메모리 오류를 유발할 수 있습니다.

💡 쉬운 설명

여러 작업이 동시에 처리될 때, 이미 삭제된 메모리 공간에 데이터를 쓰려고 시도하면서 발생하는 오류입니다. 이로 인해 시스템이 충돌하거나 보안 공격에 악용될 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: ksmbd: ipc: fix use-after-free in ipc_msg_send_request ipc_msg_send_request() waits for a generic netlink reply using an ipc_msg_table_entry on the stack. The generic netlink handler (handle_generic_event()/handle_response()) fills entry->response under ipc_msg_table_lock, but ipc_msg_send_request() used to validate and free entry->response without holding the same lock. Under high concurrency this allows a race where handle_response() is copying data into entry->response while ipc_msg_send_request() has just freed it, leading to a slab-use-after-free reported by KASAN in handle_generic_event(): BUG: KASAN: slab-use-after-free in handle_generic_event+0x3c4/0x5f0 [ksmbd] Write of size 12 at addr ffff888198ee6e20 by task pool/109349 ... Freed by task: kvfree ipc_msg_send_request [ksmbd] ksmbd_rpc_open -> ksmbd_session_rpc_open [ksmbd] Fix by: - Taking ipc_msg_table_lock in ipc_msg_send_request() while validating entry->response, freeing it when invalid, and removing the entry from ipc_msg_table. - Returning the final entry->response pointer to the caller only after the hash entry is removed under the lock. - Returning NULL in the error path, preserving the original API semantics. This makes all accesses to entry->response consistent with handle_response(), which already updates and fills the response buffer under ipc_msg_table_lock, and closes the race that allowed the UAF.

📍 영향받는 시스템

ksmbd 모듈을 사용하는 Linux 커널 버전

⚔️ 공격 벡터

고도의 동시성을 이용한 레이스 컨디션 공격을 통한 메모리 조작

🛡️ 대응 방법

Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 ipc_msg_table_lock 동기화 로직을 적용해야 합니다.

🔧 검증 코드

출력된 커널 버전을 확인하여 해당 취약점이 해결된 최신 패치 버전인지 확인합니다.

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel