🔍 CVE-2025-37947

8.8
CVSS Score
HIGH
2025-05-20
2026-07-30 06:22
✅ 완료

🇰🇷 한글 설명

Linux 커널의 ksmbd 구성 요소에서 발생하는 취약점으로, stream_write 시 쓰기 오프셋(*pos)이 기존 데이터 길이(v_len) 내에 있는지 검증하지 않아 발생합니다. 이로 인해 경계 외 메모리 쓰기(out-of-bounds write)가 발생할 수 있으며, 패치를 통해 오프셋 검증 로직이 추가되었습니다.

💡 쉬운 설명

파일을 저장할 때 데이터의 실제 크기보다 더 먼 위치에 데이터를 쓰려고 시도할 수 있는 보안 결함입니다. 이 결함을 이용하면 시스템의 메모리 영역을 잘못 건드려 오류를 일으키거나 해킹에 악용될 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: ksmbd: prevent out-of-bounds stream writes by validating *pos ksmbd_vfs_stream_write() did not validate whether the write offset (*pos) was within the bounds of the existing stream data length (v_len). If *pos was greater than or equal to v_len, this could lead to an out-of-bounds memory write. This patch adds a check to ensure *pos is less than v_len before proceeding. If the condition fails, -EINVAL is returned.

📍 영향받는 시스템

ksmbd 모듈을 사용하는 Linux 커널 시스템

⚔️ 공격 벡터

조작된 쓰기 오프셋 값을 전송하여 ksmbd를 통한 경계 외 메모리 쓰기 유도

🛡️ 대응 방법

ksmbd의 *pos 검증 로직이 포함된 최신 Linux 커널로 업데이트

🔧 검증 코드

출력된 커널 버전이 해당 취약점이 해결된 보안 패치 적용 버전인지 배포판 보안 공지를 통해 확인

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel