CVE-2026-31610
- 공개
- 2026년 4월 25일
- 수정
- 2026년 11월 12일
- 조회
- 0
- 상태
- Modified
개요
이 취약점이 무엇인지
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix mechToken leak when SPNEGO decode fails after token alloc
The kernel ASN.1 BER decoder calls action callbacks incrementally as it walks the input. When ksmbd_decode_negTokenInit() reaches the mechToken [2] OCTET STRING element, ksmbd_neg_token_alloc() allocates conn->mechToken immediately via kmemdup_nul(). If a later element in the same blob is malformed, then the decoder will return nonzero after the allocation is already live. This could happen if mechListMIC [3] overrunse the enclosing SEQUENCE.
decode_negotiation_token() then sets conn->use_spnego = false because both the negTokenInit and negTokenTarg grammars failed. The cleanup at the bottom of smb2_sess_setup() is gated on use_spnego:
if (conn->use_spnego && conn->mechToken) { kfree(conn->mechToken); conn->mechToken = NULL; }
so the kfree is skipped, causing the mechToken to never be freed.
This codepath is reachable pre-authentication, so untrusted clients can cause slow memory leaks on a server without even being properly authenticated.
Fix this up by not checking check for use_spnego, as it's not required, so the memory will always be properly freed. At the same time, always free the memory in ksmbd_conn_free() incase some other failure path forgot to free it.
실제 악용 사례 · 아직 확인된 사례가 없어요
CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.
패치 현황
어떤 버전이 위험하고, 몇 버전으로 올리면 되는지
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| linux_kernellinux | 5.15 | ≤ | 취약 | < | 6.6.136 | 6.6.136이상 |
| 6.7 | ≤ | 취약 | < | 6.12.83 | 6.12.83이상 | |
| 6.13 | ≤ | 취약 | < | 6.18.24 | 6.18.24이상 | |
| 6.19 | ≤ | 취약 | < | 6.19.14 | 6.19.14이상 | |
| 7.0 | ≤ | 취약 | < | 7.0.1 | 7.0.1이상 | |
NVD 분석 기준. 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.
할당 기관(CNA)이 적은 버전 10줄도 보기
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| LinuxLinux | 이 버전만 | 취약 | = | 5.15 | 벤더 공지 확인 | |
| 최초 버전 | ≤ | 영향 없음 | < | 5.15 | — | |
| 5.15.212 | ≤ | 영향 없음 | ≤ | 5.15.* | — | |
| 6.1.178 | ≤ | 영향 없음 | ≤ | 6.1.* | — | |
| 6.6.136 | ≤ | 영향 없음 | ≤ | 6.6.* | — | |
| 6.12.83 | ≤ | 영향 없음 | ≤ | 6.12.* | — | |
| 6.18.24 | ≤ | 영향 없음 | ≤ | 6.18.* | — | |
| 6.19.14 | ≤ | 영향 없음 | ≤ | 6.19.* | — | |
| 7.0.1 | ≤ | 영향 없음 | ≤ | 7.0.* | — | |
| 7.1 | ≤ | 영향 없음 | ≤ | 최신 버전 | — | |
참고 링크
NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.
패치6
- git.kernel.org/stable/c/269c800a7a7e363459291885b35f7bc72e231ed6
- git.kernel.org/stable/c/6c8c44e6553b9f072f62d9875e567766eb293162
- git.kernel.org/stable/c/745a535461bbb90a56d9357573c9f97a5c12abe1
- git.kernel.org/stable/c/ad0057fb91218914d6c98268718ceb9d59b388e1
- git.kernel.org/stable/c/dd53414e301beb915fe672dc4c4a51bafb917604