🔍 CVE-2026-23220

5.5
CVSS Score
MEDIUM
2026-02-18
2026-06-02 14:16
✅ 완료

🇰🇷 한글 설명

Linux 커널의 ksmbd 모듈에서 SMB2 서명 검증 실패 시 발생하는 무한 루프 취약점입니다. 오류 발생 시 다음 헤더 오프셋이 0으로 초기화되면서 동일한 요청을 반복 처리하게 되어 CPU 사용량이 급증하고 로그가 폭증하는 문제가 발생합니다.

💡 쉬운 설명

잘못된 인증 요청이 들어왔을 때 컴퓨터가 이를 처리하다가 오류를 해결하지 못하고 똑같은 작업을 무한히 반복하는 버그입니다. 이로 인해 컴퓨터의 두뇌 역할을 하는 CPU가 과부하에 걸려 시스템이 느려지거나 멈출 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix infinite loop caused by next_smb2_rcv_hdr_off reset in error paths The problem occurs when a signed request fails smb2 signature verification check. In __process_request(), if check_sign_req() returns an error, set_smb2_rsp_status(work, STATUS_ACCESS_DENIED) is called. set_smb2_rsp_status() set work->next_smb2_rcv_hdr_off as zero. By resetting next_smb2_rcv_hdr_off to zero, the pointer to the next command in the chain is lost. Consequently, is_chained_smb2_message() continues to point to the same request header instead of advancing. If the header's NextCommand field is non-zero, the function returns true, causing __handle_ksmbd_work() to repeatedly process the same failed request in an infinite loop. This results in the kernel log being flooded with "bad smb2 signature" messages and high CPU usage. This patch fixes the issue by changing the return value from SERVER_HANDLER_CONTINUE to SERVER_HANDLER_ABORT. This ensures that the processing loop terminates immediately rather than attempting to continue from an invalidated offset.

📍 영향받는 시스템

Linux kernel with ksmbd module enabled

⚔️ 공격 벡터

서명이 잘못된 SMB2 요청을 전송하여 커널의 무한 루프 유도

🛡️ 대응 방법

ksmbd 관련 커널 패치 적용 및 최신 커널로 업데이트

🔧 검증 코드

현재 실행 중인 커널 버전을 확인하여 해당 취약점이 해결된 패치 버전인지 확인합니다.

Shell / Script
uname -r

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

💻 영향받는 소프트웨어

Linux Kernel