🔍 CVE-2025-37952

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

🇰🇷 한글 설명

Linux 커널의 ksmbd 구성 요소에서 __close_file_table_ids 함수를 통해 Use-After-Free(UAF) 취약점이 발생할 수 있습니다. 한 스레드가 파일을 닫는 동안 다른 스레드가 해당 파일에 대한 참조를 유지할 경우 메모리 오류가 발생하며, 이는 적절한 잠금(Lock) 메커니즘의 부재로 인해 발생합니다.

💡 쉬운 설명

파일을 닫는 과정에서 시스템이 파일을 완전히 지우기 전에 다른 작업이 해당 파일에 접근하려고 할 때 발생하는 오류입니다. 이로 인해 시스템이 충돌하거나 해커가 권한을 탈취할 위험이 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: ksmbd: Fix UAF in __close_file_table_ids A use-after-free is possible if one thread destroys the file via __ksmbd_close_fd while another thread holds a reference to it. The existing checks on fp->refcount are not sufficient to prevent this. The fix takes ft->lock around the section which removes the file from the file table. This prevents two threads acquiring the same file pointer via __close_file_table_ids, as well as the other functions which retrieve a file from the IDR and which already use this same lock.

📍 영향받는 시스템

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

⚔️ 공격 벡터

멀티스레드 환경에서 파일 참조를 조작하여 메모리 해제 후 접근을 유도하는 방식

🛡️ 대응 방법

ksmbd의 __close_file_table_ids 함수에 ft->lock을 적용한 최신 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