CVE-2025-40039
- 공개
- 2025년 10월 28일
- 수정
- 2026년 10월 20일
- 조회
- 0
- 상태
- Modified
개요
이 취약점이 무엇인지
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: Fix race condition in RPC handle list access
The 'sess->rpc_handle_list' XArray manages RPC handles within a ksmbd session. Access to this list is intended to be protected by 'sess->rpc_lock' (an rw_semaphore). However, the locking implementation was flawed, leading to potential race conditions.
In ksmbd_session_rpc_open(), the code incorrectly acquired only a read lock before calling xa_store() and xa_erase(). Since these operations modify the XArray structure, a write lock is required to ensure exclusive access and prevent data corruption from concurrent modifications.
Furthermore, ksmbd_session_rpc_method() accessed the list using xa_load() without holding any lock at all. This could lead to reading inconsistent data or a potential use-after-free if an entry is concurrently removed and the pointer is dereferenced.
Fix these issues by: 1. Using down_write() and up_write() in ksmbd_session_rpc_open() to ensure exclusive access during XArray modification, and ensuring the lock is correctly released on error paths. 2. Adding down_read() and up_read() in ksmbd_session_rpc_method() to safely protect the lookup.
실제 악용 사례 · 아직 확인된 사례가 없어요
CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.
패치 현황
어떤 버전이 위험하고, 몇 버전으로 올리면 되는지
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| linux_kernellinux | 5.15.145 | ≤ | 취약 | < | 5.16 | 5.16이상 |
| 6.1.71 | ≤ | 취약 | < | 6.2 | 6.2이상 | |
| 6.3 | ≤ | 취약 | < | 6.6.123 | 6.6.123이상 | |
| 6.7 | ≤ | 취약 | < | 6.12.53 | 6.12.53이상 | |
| 6.13 | ≤ | 취약 | < | 6.17.3 | 6.17.3이상 | |
NVD 분석 기준. 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.
할당 기관(CNA)이 적은 버전 7줄도 보기
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| LinuxLinux | 5.15.145 | ≤ | 취약 | < | 5.16 | 5.16이상 |
| 이 버전만 | 취약 | = | 6.3 | 벤더 공지 확인 | ||
| 최초 버전 | ≤ | 영향 없음 | < | 6.3 | — | |
| 6.6.123 | ≤ | 영향 없음 | ≤ | 6.6.* | — | |
| 6.12.53 | ≤ | 영향 없음 | ≤ | 6.12.* | — | |
| 6.17.3 | ≤ | 영향 없음 | ≤ | 6.17.* | — | |
| 6.18 | ≤ | 영향 없음 | ≤ | 최신 버전 | — | |
참고 링크
NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.
패치5
- git.kernel.org/stable/c/305853cce379407090a73b38c5de5ba748893aee
- git.kernel.org/stable/c/5cc679ba0f4505936124cd4179ba66bb0a4bd9f3
- git.kernel.org/stable/c/69674b029002b1d90b655f014bdf64f404efa54d
- git.kernel.org/stable/c/6b615a8fb3af0baf8126cde3d4fee97d57222ffc
- git.kernel.org/stable/c/6bd7e0e55dcea2cf0d391bbc21c2eb069b4be3e1