🔍 CVE-2026-72368

7.8
CVSS Score
HIGH
2026-08-15
2026-08-17 06:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 cachefiles 구성 요소에서 메모리 할당 실패 시 발생하는 이중 언락(double unlock) 취약점입니다. start_creating() 함수가 에러 발생 시 이미 부모 디렉토리의 잠금을 해제했음에도 불구하고, nomem_d_alloc 경로에서 다시 한번 잠금을 해제하여 rwsem 상태를 손상시킵니다.

💡 쉬운 설명

컴퓨터가 데이터를 처리할 때 충돌을 막기 위해 사용하는 '잠금 장치'를 실수로 두 번 해제하는 오류입니다. 이로 인해 시스템의 데이터 관리 상태가 꼬여 시스템이 불안정해지거나 오류가 발생할 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: cachefiles: Fix double unlock in nomem_d_alloc error path When start_creating() fails and returns -ENOMEM, it has already released the parent directory lock in __start_dirop(): static struct dentry *__start_dirop(...) { ... inode_lock_nested(dir, I_MUTEX_PARENT); dentry = lookup_one_qstr_excl(name, parent, lookup_flags); if (IS_ERR(dentry)) inode_unlock(dir); <-- Lock released on error return dentry; } However, the nomem_d_alloc error path in cachefiles_get_directory() unconditionally calls inode_unlock(d_inode(dir)) again, causing a double unlock that corrupts the rwsem state. This is a leftover from commit 7ab96df840e60 which replaced manual locking with start_creating() but failed to update the nomem_d_alloc path (while correctly updating mkdir_error and lookup_error paths).

📍 영향받는 시스템

Linux kernel (cachefiles 모듈을 사용하는 시스템)

⚔️ 공격 벡터

메모리 부족 상황을 유도하여 특정 에러 경로를 실행시키는 방식의 로컬 공격

🛡️ 대응 방법

해당 취약점이 수정된 최신 버전의 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