CVE 목록
Critical9.8유형: 운영체제

CVE-2026-31705

공개
2026년 5월 1일
수정
2026년 11월 23일
조회
0
상태
Modified
관련 내용 구글 검색하기한국어English
번역 대상이 아니에요. 원문(영어)만 제공돼요.
9.8Critical

개요

이 취약점이 무엇인지

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_kernellinux5.15.145≤취약<5.165.16이상
6.1.71≤취약<6.26.2이상
6.6≤취약<6.6.1366.6.136이상
6.7≤취약<6.12.846.12.84이상
6.13≤취약<6.18.256.18.25이상
6.19≤취약<7.0.27.0.2이상

NVD 분석 기준. 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.

할당 기관(CNA)이 적은 버전 11줄도 보기
제품시작끝이 버전 이상으로
LinuxLinux5.15.145≤취약<5.15.2265.15.226이상
6.1.71≤취약<6.1.1756.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에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.