🔍 CVE-2024-42104

7.8
CVSS Score
HIGH
2024-07-30
2026-08-04 11:19
✅ 완료

🇰🇷 한글 설명

Linux 커널의 nilfs2 파일 시스템에서 디렉토리 엔트리의 inode 번호를 검증하는 과정이 누락되어 발생하는 취약점입니다. 손상된 nilfs2 파일 시스템 이미지를 마운트 및 언마운트할 경우, 메타데이터 파일의 inode가 Use-After-Free 오류를 일으켜 커널 버그를 유발할 수 있습니다.

💡 쉬운 설명

특수하게 조작된 파일 시스템을 컴퓨터에 연결하면 시스템의 핵심 메모리 관리 오류를 일으킬 수 있는 문제입니다. 이로 인해 시스템이 멈추거나 예상치 못한 동작을 할 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: nilfs2: add missing check for inode numbers on directory entries Syzbot reported that mounting and unmounting a specific pattern of corrupted nilfs2 filesystem images causes a use-after-free of metadata file inodes, which triggers a kernel bug in lru_add_fn(). As Jan Kara pointed out, this is because the link count of a metadata file gets corrupted to 0, and nilfs_evict_inode(), which is called from iput(), tries to delete that inode (ifile inode in this case). The inconsistency occurs because directories containing the inode numbers of these metadata files that should not be visible in the namespace are read without checking. Fix this issue by treating the inode numbers of these internal files as errors in the sanity check helper when reading directory folios/pages. Also thanks to Hillf Danton and Matthew Wilcox for their initial mm-layer analysis.

📍 영향받는 시스템

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

⚔️ 공격 벡터

손상된 패턴을 가진 nilfs2 파일 시스템 이미지를 마운트하여 유도

🛡️ 대응 방법

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