🔍 CVE-2023-54140

7.8
CVSS Score
HIGH
2025-12-24
2026-08-04 10:19
✅ 완료

🇰🇷 한글 설명

Linux 커널의 NILFS2 파일 시스템에서 버퍼 재사용 시 발생하는 취약점입니다. 손상된 디스크 이미지를 사용할 경우 mark_buffer_dirty 함수 호출 과정에서 커널 경고가 발생하거나, panic_on_warn 설정 시 시스템 패닉(중단)이 발생할 수 있습니다.

💡 쉬운 설명

파일 시스템이 데이터를 저장할 때 이전에 사용했던 메모리 공간을 다시 사용하려다 오류가 발생하는 문제입니다. 이로 인해 컴퓨터 시스템이 갑자기 멈추거나 꺼질 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix WARNING in mark_buffer_dirty due to discarded buffer reuse A syzbot stress test using a corrupted disk image reported that mark_buffer_dirty() called from __nilfs_mark_inode_dirty() or nilfs_palloc_commit_alloc_entry() may output a kernel warning, and can panic if the kernel is booted with panic_on_warn. This is because nilfs2 keeps buffer pointers in local structures for some metadata and reuses them, but such buffers may be forcibly discarded by nilfs_clear_dirty_page() in some critical situations. This issue is reported to appear after commit 28a65b49eb53 ("nilfs2: do not write dirty data after degenerating to read-only"), but the issue has potentially existed before. Fix this issue by checking the uptodate flag when attempting to reuse an internally held buffer, and reloading the metadata instead of reusing the buffer if the flag was lost.

📍 영향받는 시스템

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