CVE 목록
High7.5유형: 운영체제

CVE-2026-31711

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

개요

이 취약점이 무엇인지

In the Linux kernel, the following vulnerability has been resolved:

smb: server: fix active_num_conn leak on transport allocation failure

Commit 77ffbcac4e56 ("smb: server: fix leak of active_num_conn in ksmbd_tcp_new_connection()") addressed the kthread_run() failure path. The earlier alloc_transport() == NULL path in the same function has the same leak, is reachable pre-authentication via any TCP connect to port 445, and was empirically reproduced on UML (ARCH=um, v7.0-rc7): a small number of forced allocation failures were sufficient to put ksmbd into a state where every subsequent connection attempt was rejected for the remainder of the boot.

ksmbd_kthread_fn() increments active_num_conn before calling ksmbd_tcp_new_connection() and discards the return value, so when alloc_transport() returns NULL the socket is released and -ENOMEM returned without decrementing the counter. Each such failure permanently consumes one slot from the max_connections pool; once cumulative failures reach the cap, atomic_inc_return() hits the threshold on every subsequent accept and every new connection is rejected. The counter is only reset by module reload.

An unauthenticated remote attacker can drive the server toward the memory pressure that makes alloc_transport() fail by holding open connections with large RFC1002 lengths up to MAX_STREAM_PROT_LEN (0x00FFFFFF); natural transient allocation failures on a loaded host produce the same drift more slowly.

Mirror the existing rollback pattern in ksmbd_kthread_fn(): on the alloc_transport() failure path, decrement active_num_conn gated on server_conf.max_connections.

Repro details: with the patch reverted, forced alloc_transport() NULL returns leaked counter slots and subsequent connection attempts -- including legitimate connects issued after the forced-fail window had closed -- were all rejected with "Limit the maximum number of connections". With this patch applied, the same connect sequence produces no rejections and the counter cycles cleanly between zero and one on every accept.

실제 악용 사례 · 아직 확인된 사례가 없어요

CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.

패치 현황

어떤 버전이 위험하고, 몇 버전으로 올리면 되는지

제품시작끝이 버전 이상으로
linux_kernellinux5.15.91≤취약<5.165.16이상
6.1.9≤취약<6.26.2이상
6.2.1≤취약<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이상
이 버전만취약=6.2벤더 공지 확인
이 버전만취약=6.2 rc6벤더 공지 확인
이 버전만취약=6.2 rc7벤더 공지 확인
이 버전만취약=6.2 rc8벤더 공지 확인

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

할당 기관(CNA)이 적은 버전 11줄도 보기
제품시작끝이 버전 이상으로
LinuxLinux5.15.91≤취약<5.15.2105.15.210이상
6.1.9≤취약<6.1.1756.1.175이상
이 버전만취약=6.2벤더 공지 확인
최초 버전≤영향 없음<6.2—
5.15.210≤영향 없음≤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에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.