🇰🇷 한글 설명
리눅스 커널의 fs,fsverity 구성 요소에서 setattr_prepare() 함수 내의 fsverity 활성화 여부 확인 로직에 결함이 있었습니다. 이로 인해 커널에서 fsverity가 활성화되지 않았더라도 fsverity 파일에 대한 truncate 작업이 성공할 수 있는 문제가 해결되었습니다.
💡 쉬운 설명
파일의 무결성을 확인하는 기능이 꺼져 있어도 특정 파일 조작이 가능했던 보안 허점을 수정했습니다. 이제 시스템 설정과 실제 파일 상태가 일치하도록 개선되었습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
fs,fsverity: remove check for fsverity being enabled in setattr_prepare()
The check that fs-verity is available in the kernel is not necessary
here. Filesystems could have fsverity files even without fs-verity
enabled. In that case, truncate on fsverity file will succeed, what this
check is trying to prevent.
📍 영향받는 시스템
fs-verity 기능을 사용하는 리눅스 커널 버전
⚔️ 공격 벡터
로컬 권한을 가진 사용자가 fsverity가 비활성화된 상태에서 관련 파일의 크기를 조작(truncate)하는 방식
🛡️ 대응 방법
fs-verity 관련 패치가 적용된 최신 리눅스 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이상인지 확인