🔍 CVE-2025-38710

7.8
CVSS Score
HIGH
2025-09-04
2026-10-19 21:10
✅ 완료

🇰🇷 한글 설명

Linux 커널의 GFS2 파일 시스템에서 exhash 디렉토리의 i_depth 값을 검증하지 않아 발생하는 취약점입니다. 퍼징 테스트 중 디렉토리 깊이가 0으로 설정되어 32비트 미정의 시프트 연산이 발생하며, 이는 시스템 불안정성을 초래할 수 있습니다.

💡 쉬운 설명

파일 시스템의 특정 폴더 구조를 계산할 때 숫자를 잘못 계산하여 컴퓨터가 혼란에 빠지는 문제입니다. 이로 인해 시스템이 멈추거나 예상치 못한 오류가 발생할 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: gfs2: Validate i_depth for exhash directories A fuzzer test introduced corruption that ends up with a depth of 0 in dir_e_read(), causing an undefined shift by 32 at: index = hash >> (32 - dip->i_depth); As calculated in an open-coded way in dir_make_exhash(), the minimum depth for an exhash directory is ilog2(sdp->sd_hash_ptrs) and 0 is invalid as sdp->sd_hash_ptrs is fixed as sdp->bsize / 16 at mount time. So we can avoid the undefined behaviour by checking for depth values lower than the minimum in gfs2_dinode_in(). Values greater than the maximum are already being checked for there. Also switch the calculation in dir_make_exhash() to use ilog2() to clarify how the depth is calculated. Tested with the syzkaller repro.c and xfstests '-g quick'.

📍 영향받는 시스템

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

⚔️ 공격 벡터

조작된 파일 시스템 구조를 통한 커널 내 미정의 동작 유도

🛡️ 대응 방법

GFS2의 i_depth 검증 로직이 포함된 최신 Linux 커널로 업데이트

🔧 검증 코드

출력된 커널 버전이 취약점이 패치된 최신 보안 업데이트 버전인지 확인합니다.

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel