🔍 CVE-2025-40287

0.0
CVSS Score
UNKNOWN
2025-12-06
2026-10-15 19:10
✅ 완료

🇰🇷 한글 설명

Linux 커널의 exFAT 파일 시스템에서 dentry.stream.valid_size의 유효성 검사가 부적절하여 발생하는 취약점입니다. 악의적으로 조작된 exFAT 파일 시스템을 사용할 경우, 특정 시스템 호출을 통해 커널이 무한 루프에 빠져 서비스 거부(DoS) 상태가 될 수 있습니다.

💡 쉬운 설명

잘못 만들어진 exFAT USB나 메모리 카드를 컴퓨터에 연결하면 컴퓨터가 멈춰버릴 수 있는 문제입니다. 파일 크기 정보가 음수로 되어 있는 비정상적인 데이터를 처리할 때 시스템이 무한 반복 작업에 빠지기 때문입니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: exfat: fix improper check of dentry.stream.valid_size We found an infinite loop bug in the exFAT file system that can lead to a Denial-of-Service (DoS) condition. When a dentry in an exFAT filesystem is malformed, the following system calls — SYS_openat, SYS_ftruncate, and SYS_pwrite64 — can cause the kernel to hang. Root cause analysis shows that the size validation code in exfat_find() does not check whether dentry.stream.valid_size is negative. As a result, the system calls mentioned above can succeed and eventually trigger the DoS issue. This patch adds a check for negative dentry.stream.valid_size to prevent this vulnerability.

📍 영향받는 시스템

exFAT 파일 시스템을 사용하는 Linux 커널 버전

⚔️ 공격 벡터

조작된 dentry 정보를 포함한 악성 exFAT 파일 시스템(USB, SD 카드 등)을 마운트하거나 관련 시스템 호출(openat, ftruncate, pwrite64) 수행

🛡️ 대응 방법

Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 dentry.stream.valid_size의 음수 여부 검증 로직을 적용해야 합니다.

🔧 검증 코드

출력된 커널 버전이 해당 취약점이 패치된 이후의 버전인지 확인합니다.

Shell / Script
uname -r

💻 영향받는 소프트웨어

Linux Kernel