🇰🇷 한글 설명
Linux 커널의 f2fs 파일 시스템에서 체크포인트 병합 스레드가 실행 중이지 않을 때 sysfs를 통해 해당 스레드의 I/O 우선순위를 수정하려고 하면 NULL 포인터 역참조가 발생합니다. 읽기 전용 마운트 상태 등에서 체크포인트 스레드가 없는 상황임에도 sysfs 쓰기 작업이 허용되어 시스템 충돌을 유발할 수 있습니다.
💡 쉬운 설명
컴퓨터의 파일 저장 방식 중 하나인 f2fs에서, 존재하지 않는 작업 스레드의 우선순위를 바꾸려 할 때 시스템이 혼란을 느껴 멈추거나 오류가 발생하는 문제입니다. 특정 설정 상태에서 잘못된 명령이 전달되면 시스템이 갑자기 꺼질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
f2fs: avoid NULL checkpoint thread access in sysfs
checkpoint_merge can be enabled even when no checkpoint merge thread is
running. A read-only mount is one case: f2fs does not start
f2fs_issue_ckpt there, but ckpt_thread_ioprio is still writable through
sysfs.
The ckpt_thread_ioprio store path updates the saved ioprio value and,
when checkpoint_merge is enabled, calls set_task_ioprio() for the
checkpoint thread. If cprc->f2fs_issue_ckpt is NULL, that dereferences a
NULL task pointer.
Protect ckpt_thread_ioprio sysfs writes with s_umount as well, so the
checkpoint thread cannot disappear under the store path while updating
its ioprio.
📍 영향받는 시스템
Linux kernel (f2fs 파일 시스템을 사용하는 시스템)
⚔️ 공격 벡터
로컬 사용자가 sysfs의 ckpt_thread_ioprio 경로에 쓰기 작업을 수행하여 NULL 포인터 역참조 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인