🔍 CVE-2026-68147

7.8
CVSS Score
HIGH
2026-08-10
2026-08-19 17:20
✅ 완료

🇰🇷 한글 설명

Linux 커널의 fscrypt 구성 요소에서 fscrypt_get_devices() 호출 시 동적 메모리 할당을 사용함에 따라 발생하는 취약점입니다. 메모리 할당 실패 시 적절한 예외 처리가 이루어지지 않아 blk_crypto_key가 제대로 해제되지 않고 Use-After-Free 취약점을 유발할 수 있습니다.

💡 쉬운 설명

시스템이 암호화 키를 정리하는 과정에서 메모리 공간을 확보하지 못해 오류가 발생하고, 이로 인해 이미 삭제된 데이터를 다시 참조하게 되는 보안 결함입니다. 이는 시스템의 안정성을 해치거나 해커가 시스템 권한을 탈취하는 데 악용될 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: fscrypt: Avoid dynamic allocation in fscrypt_get_devices() When a blk_crypto_key starts being used or is evicted, fs/crypto/ calls fscrypt_get_devices() to get the filesystem's list of block devices, then iterates over them and calls blk_crypto_config_supported(), blk_crypto_start_using_key(), or blk_crypto_evict_key() on each one. Currently, the block device pointers are placed in a dynamically allocated array. This dynamic allocation is problematic because: - It can fail, especially at the fscrypt_destroy_inline_crypt_key() call site when it's invoked for inode eviction under direct reclaim. - fscrypt_destroy_inline_crypt_key() doesn't handle the failure. It just zeroizes and frees the blk_crypto_key without calling blk_crypto_evict_key(). That causes a use-after-free. For now, let's fix this in the straightforward and easily-backportable way by switching to an on-stack array. Currently the fscrypt multi-device functionality is used only by f2fs, which has a hardcoded limit of 8 block devices. An on-stack array works fine for that. (Of course, this solution won't scale up to large number of block devices. For that we'd need a different solution, like moving the block device iteration into the filesystem. Or in the case of btrfs, which will only support blk-crypto-fallback, we should make it just call blk-crypto-fallback directly, so the block devices won't be needed.)

📍 영향받는 시스템

Linux Kernel (fscrypt 및 f2fs 관련 모듈 사용 시스템)

⚔️ 공격 벡터

직접 회수(Direct Reclaim) 상황에서 inode 제거를 유도하여 메모리 할당 실패를 일으킴으로써 Use-After-Free 유발

🛡️ 대응 방법

fscrypt_get_devices()의 동적 할당 방식을 스택 기반 배열 방식으로 변경한 최신 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

💻 영향받는 소프트웨어

NVIDIA vGPU Guest Driver for Linux