🇰🇷 한글 설명
Linux 커널의 FAT 파일 시스템에서 rmdir 호출 시 부모 링크 카운트가 언더플로우되는 취약점이 해결되었습니다. 손상된 FAT 이미지로 인해 디렉토리 inode의 i_nlink 값이 잘못 설정될 경우, rmdir 과정에서 링크 카운트가 0이 되어 커널 경고(WARN_ON)를 유발할 수 있습니다.
💡 쉬운 설명
파일 시스템이 손상된 상태에서 폴더를 삭제하려고 할 때, 시스템 내부의 숫자 계산 오류로 인해 운영체제에 경고가 발생하는 문제입니다. 이로 인해 시스템 안정성에 문제가 생길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
fat: avoid parent link count underflow in rmdir
Corrupted FAT images can leave a directory inode with an incorrect
i_nlink (e.g. 2 even though subdirectories exist). rmdir then
unconditionally calls drop_nlink(dir) and can drive i_nlink to 0,
triggering the WARN_ON in drop_nlink().
Add a sanity check in vfat_rmdir() and msdos_rmdir(): only drop the
parent link count when it is at least 3, otherwise report a filesystem
error.
📍 영향받는 시스템
FAT/vfat 파일 시스템을 사용하는 Linux 커널 기반 시스템
⚔️ 공격 벡터
손상된 FAT 이미지 파일을 마운트하여 디렉토리 삭제(rmdir) 명령을 수행
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 이후의 버전인지 확인