🇰🇷 한글 설명
Linux 커널의 ext4 파일 시스템에서 xattr 업데이트 시 EA inode 참조 횟수(refcount)가 언더플로우되는 취약점이 발견되었습니다. 참조 횟수가 이미 0 이하인 상태에서 추가 감소가 발생하여 잘못된 값이 적용될 수 있으며, 이는 파일 시스템 오류를 유발합니다.
💡 쉬운 설명
파일 시스템이 데이터를 관리하는 숫자가 잘못 계산되어 마이너스 값이 되는 오류입니다. 이로 인해 파일 시스템이 망가지거나 데이터 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ext4: guard against EA inode refcount underflow in xattr update
syzkaller found a path where ext4_xattr_inode_update_ref() reads an EA
inode refcount that is already <= 0 and then applies ref_change (often
-1). That lets the refcount underflow and we proceed with a bogus value,
triggering errors like:
EXT4-fs error: EA inode <n> ref underflow: ref_count=-1 ref_change=-1
EXT4-fs warning: ea_inode dec ref err=-117
Make the invariant explicit: if the current refcount is non-positive,
treat this as on-disk corruption, emit ext4_error_inode(), and fail the
operation with -EFSCORRUPTED instead of updating the refcount. Delete the
WARN_ONCE() as negative refcounts are now impossible; keep error reporting
in ext4_error_inode().
This prevents the underflow and the follow-on orphan/cleanup churn.
📍 영향받는 시스템
Linux kernel (ext4 file system 사용 시스템)
⚔️ 공격 벡터
조작된 xattr(확장 속성) 업데이트를 통한 파일 시스템 참조 횟수 조작
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인하십시오.