🇰🇷 한글 설명
Linux 커널의 ext4 파일 시스템에서 마운트 실패 시 타이머를 적절히 해제하지 않아 발생하는 Use-After-Free 취약점입니다. 파일 시스템 마운트 중 오류가 발생하면 s_err_report 타이머가 활성화된 상태로 메모리가 해제되어 시스템 불안정이나 커널 패닉을 유발할 수 있습니다.
💡 쉬운 설명
컴퓨터가 파일을 읽으려고 준비하다가 오류가 났을 때, 사용하던 메모리를 정리하기 전에 알람(타이머)이 계속 작동하여 시스템이 충돌할 수 있는 문제입니다. 이로 인해 컴퓨터가 갑자기 멈추거나 꺼질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ext4: fix timer use-after-free on failed mount
Syzbot has found an ODEBUG bug in ext4_fill_super
The del_timer_sync function cancels the s_err_report timer,
which reminds about filesystem errors daily. We should
guarantee the timer is no longer active before kfree(sbi).
When filesystem mounting fails, the flow goes to failed_mount3,
where an error occurs when ext4_stop_mmpd is called, causing
a read I/O failure. This triggers the ext4_handle_error function
that ultimately re-arms the timer,
leaving the s_err_report timer active before kfree(sbi) is called.
Fix the issue by canceling the s_err_report timer after calling ext4_stop_mmpd.
📍 영향받는 시스템
ext4 파일 시스템을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
파일 시스템 마운트 과정에서 의도적인 I/O 오류를 유발하여 커널 메모리 오류를 일으킴
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인