🔍 CVE-2022-49361

5.5
CVSS Score
MEDIUM
2025-02-26
2026-08-15 13:17
✅ 완료

🇰🇷 한글 설명

Linux 커널의 F2FS 파일 시스템에서 인라인 인ode에 대한 무결성 검사가 누락되어 발생하는 취약점입니다. 조작된 인ode가 inline_data와 encrypted 플래그를 동시에 가질 경우, 파일 이름 변경(rename) 과정에서 데이터 변환 충돌이 발생하여 커널 패닉이 유발될 수 있습니다.

💡 쉬운 설명

파일 시스템의 특정 설정이 꼬여있을 때, 파일을 이름을 바꾸는 동작을 하면 컴퓨터 시스템이 갑자기 멈추거나 꺼질 수 있는 문제입니다. 악의적으로 조작된 파일 정보를 통해 시스템을 마비시킬 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: f2fs: fix to do sanity check for inline inode Yanming reported a kernel bug in Bugzilla kernel [1], which can be reproduced. The bug message is: The kernel message is shown below: kernel BUG at fs/inode.c:611! Call Trace: evict+0x282/0x4e0 __dentry_kill+0x2b2/0x4d0 dput+0x2dd/0x720 do_renameat2+0x596/0x970 __x64_sys_rename+0x78/0x90 do_syscall_64+0x3b/0x90 [1] https://bugzilla.kernel.org/show_bug.cgi?id=215895 The bug is due to fuzzed inode has both inline_data and encrypted flags. During f2fs_evict_inode(), as the inode was deleted by rename(), it will cause inline data conversion due to conflicting flags. The page cache will be polluted and the panic will be triggered in clear_inode(). Try fixing the bug by doing more sanity checks for inline data inode in sanity_check_inode().

📍 영향받는 시스템

Linux Kernel (F2FS 파일 시스템을 사용하는 버전)

⚔️ 공격 벡터

조작된(fuzzed) 인ode 플래그를 가진 파일 시스템을 마운트하거나 해당 파일에 rename 작업을 수행

🛡️ 대응 방법

F2FS 관련 보안 패치가 적용된 최신 Linux 커널로 업데이트

🔧 검증 코드

출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel