🔍 CVE-2025-39819

5.5
CVSS Score
MEDIUM
2025-09-16
2026-11-05 22:17
✅ 완료

🇰🇷 한글 설명

Linux 커널 SMB2 파일 시스템의 smb2_compound_op 함수에서 참조 카운트 업데이트 불일치로 인한 리소스 누수 취약점입니다. 메모리 할당 실패 시 특정 제어 경로에서 cfile 참조가 제대로 해제되지 않아 기존 호출자가 처리하지 못합니다.

💡 쉬운 설명

Linux 커널의 파일 공유 기능에서 특정 상황에 메모리를 제대로 해제하지 못하는 버그입니다. 시간이 지나면서 메모리가 계속 누적되어 시스템이 느려지거나 중단될 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: fs/smb: Fix inconsistent refcnt update A possible inconsistent update of refcount was identified in `smb2_compound_op`. Such inconsistent update could lead to possible resource leaks. Why it is a possible bug: 1. In the comment section of the function, it clearly states that the reference to `cfile` should be dropped after calling this function. 2. Every control flow path would check and drop the reference to `cfile`, except the patched one. 3. Existing callers would not handle refcount update of `cfile` if -ENOMEM is returned. To fix the bug, an extra goto label "out" is added, to make sure that the cleanup logic would always be respected. As the problem is caused by the allocation failure of `vars`, the cleanup logic between label "finished" and "out" can be safely ignored. According to the definition of function `is_replayable_error`, the error code of "-ENOMEM" is not recoverable. Therefore, the replay logic also gets ignored.

📍 영향받는 시스템

Linux 커널 (SMB2 프로토콜 지원하는 최신 버전 포함)

⚔️ 공격 벡터

로컬 인증 사용자가 SMB2 파일 작업 중 의도적으로 메모리 부족 조건을 유발하여 리소스 누수 트리거

🛡️ 대응 방법

최신 Linux 커널 패치 적용 또는 배포판의 보안 업데이트 설치

🔧 검증 코드

커널 버전이 최신 버전이고 SMB_SERVER 설정이 활성화(y 또는 m)되어 있으면 패치 적용 확인 필요

Shell / Script
uname -r && grep CONFIG_SMB_SERVER /boot/config-$(uname -r) 2>/dev/null || echo 'SMB kernel module not configured'

📊 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