🔍 CVE-2026-31708

8.1
CVSS Score
HIGH
2026-05-01
2026-10-19 20:17
✅ 완료

🇰🇷 한글 설명

Linux 커널의 SMB 클라이언트에서 smb2_ioctl_query_info 함수 내의 경계 외 읽기(OOB Read) 취약점이 발견되었습니다. 악의적인 서버가 실제 응답 크기보다 큰 출력 버퍼 길이를 보고할 경우, 커널 힙의 인접 데이터를 사용자 공간으로 노출시킬 수 있습니다.

💡 쉬운 설명

나쁜 서버가 실제 데이터보다 더 많은 양을 보내달라고 속여서, 컴퓨터의 중요한 비밀 정보가 담긴 메모리 영역을 훔쳐볼 수 있는 문제입니다. 이로 인해 시스템의 민감한 정보가 유출될 위험이 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: smb: client: fix OOB read in smb2_ioctl_query_info QUERY_INFO path smb2_ioctl_query_info() has two response-copy branches: PASSTHRU_FSCTL and the default QUERY_INFO path. The QUERY_INFO branch clamps qi.input_buffer_length to the server-reported OutputBufferLength and then copies qi.input_buffer_length bytes from qi_rsp->Buffer to userspace, but it never verifies that the flexible-array payload actually fits within rsp_iov[1].iov_len. A malicious server can return OutputBufferLength larger than the actual QUERY_INFO response, causing copy_to_user() to walk past the response buffer and expose adjacent kernel heap to userspace. Guard the QUERY_INFO copy with a bounds check on the actual Buffer payload. Use struct_size(qi_rsp, Buffer, qi.input_buffer_length) rather than an open-coded addition so the guard cannot overflow on 32-bit builds.

📍 영향받는 시스템

Linux kernel (SMB client module)

⚔️ 공격 벡터

악의적인 SMB 서버가 조작된 응답 패킷을 클라이언트에 전송하여 커널 메모리 노출 유도

🛡️ 대응 방법

Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 smb2_ioctl_query_info의 경계 검사 로직 적용

🔧 검증 코드

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

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel