CVE-2026-31705
- 공개
- 2026년 5월 1일
- 수정
- 2026년 11월 23일
- 조회
- 0
- 상태
- Modified
개요
이 취약점이 무엇인지
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix out-of-bounds write in smb2_get_ea() EA alignment
smb2_get_ea() applies 4-byte alignment padding via memset() after writing each EA entry. The bounds check on buf_free_len is performed before the value memcpy, but the alignment memset fires unconditionally afterward with no check on remaining space.
When the EA value exactly fills the remaining buffer (buf_free_len == 0 after value subtraction), the alignment memset writes 1-3 NUL bytes past the buf_free_len boundary. In compound requests where the response buffer is shared across commands, the first command (e.g., READ) can consume most of the buffer, leaving a tight remainder for the QUERY_INFO EA response. The alignment memset then overwrites past the physical kvmalloc allocation into adjacent kernel heap memory.
Add a bounds check before the alignment memset to ensure buf_free_len can accommodate the padding bytes.
This is the same bug pattern fixed by commit beef2634f81f ("ksmbd: fix potencial OOB in get_file_all_info() for compound requests") and commit fda9522ed6af ("ksmbd: fix OOB write in QUERY_INFO for compound requests"), both of which added bounds checks before unconditional writes in QUERY_INFO response handlers.
실제 악용 사례 · 아직 확인된 사례가 없어요
CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.
패치 현황
어떤 버전이 위험하고, 몇 버전으로 올리면 되는지
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| linux_kernellinux | 5.15.145 | ≤ | 취약 | < | 5.16 | 5.16이상 |
| 6.1.71 | ≤ | 취약 | < | 6.2 | 6.2이상 | |
| 6.6 | ≤ | 취약 | < | 6.6.136 | 6.6.136이상 | |
| 6.7 | ≤ | 취약 | < | 6.12.84 | 6.12.84이상 | |
| 6.13 | ≤ | 취약 | < | 6.18.25 | 6.18.25이상 | |
| 6.19 | ≤ | 취약 | < | 7.0.2 | 7.0.2이상 | |
NVD 분석 기준. 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.
할당 기관(CNA)이 적은 버전 11줄도 보기
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| LinuxLinux | 5.15.145 | ≤ | 취약 | < | 5.15.226 | 5.15.226이상 |
| 6.1.71 | ≤ | 취약 | < | 6.1.175 | 6.1.175이상 | |
| 이 버전만 | 취약 | = | 6.6 | 벤더 공지 확인 | ||
| 최초 버전 | ≤ | 영향 없음 | < | 6.6 | — | |
| 5.15.226 | ≤ | 영향 없음 | ≤ | 5.15.* | — | |
| 6.1.175 | ≤ | 영향 없음 | ≤ | 6.1.* | — | |
| 6.6.136 | ≤ | 영향 없음 | ≤ | 6.6.* | — | |
| 6.12.84 | ≤ | 영향 없음 | ≤ | 6.12.* | — | |
| 6.18.25 | ≤ | 영향 없음 | ≤ | 6.18.* | — | |
| 7.0.2 | ≤ | 영향 없음 | ≤ | 7.0.* | — | |
| 7.1 | ≤ | 영향 없음 | ≤ | 최신 버전 | — | |
참고 링크
NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.
패치5
- git.kernel.org/stable/c/30010c952077a1c89ecdd71fc4d574c75a8f5617
- git.kernel.org/stable/c/790304c02bf9bd7b8171feda4294d6e62d32ae8f
- git.kernel.org/stable/c/922d48fe8c19f388ffa2f709f33acaae4e408de2
- git.kernel.org/stable/c/98f3de6ef4efbd899348d333f0902dc4ff14380c
- git.kernel.org/stable/c/ffbce350c6fd1e99116ea57383b9031717e36d3b