🔍 CVE-2024-46781

7.8
CVSS Score
HIGH
2024-09-18
2026-08-04 11:20
✅ 완료

🇰🇷 한글 설명

Linux 커널의 NILFS2 파일 시스템에서 롤포워드 복구 오류 발생 시 정리 작업이 누락되는 취약점이 발견되었습니다. 복구 과정 중 오류가 발생하면 데이터가 복구된 inode가 메모리에서 해제되지 않고 남아 있어 Use-After-Free 버그를 유발할 수 있습니다.

💡 쉬운 설명

파일 시스템을 복구하는 과정에서 오류가 생기면, 사용이 끝난 데이터 조각들이 메모리에서 제대로 삭제되지 않고 남게 됩니다. 이로 인해 시스템이 혼란을 겪거나 보안 문제가 발생할 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix missing cleanup on rollforward recovery error In an error injection test of a routine for mount-time recovery, KASAN found a use-after-free bug. It turned out that if data recovery was performed using partial logs created by dsync writes, but an error occurred before starting the log writer to create a recovered checkpoint, the inodes whose data had been recovered were left in the ns_dirty_files list of the nilfs object and were not freed. Fix this issue by cleaning up inodes that have read the recovery data if the recovery routine fails midway before the log writer starts.

📍 영향받는 시스템

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

⚔️ 공격 벡터

로컬 공격자가 파일 시스템 복구 프로세스 중 의도적인 오류를 유도하여 메모리 관리 결함을 악용

🛡️ 대응 방법

NILFS2 복구 루틴에서 오류 발생 시 inode를 적절히 정리하도록 수정된 최신 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