🇰🇷 한글 설명
Linux 커널의 SMB 클라이언트에서 zero range 기능을 통해 파일을 확장할 때, 파일 끝(EOF) 이후의 페이지 캐시를 적절히 제거하지 않는 취약점이 발견되었습니다. 이로 인해 mmap을 통해 파일 끝 너머에 기록된 데이터가 파일 확장 후 실제 파일 내용으로 노출될 수 있습니다.
💡 쉬운 설명
파일의 크기를 늘리는 과정에서 메모리에 남아있던 이전의 데이터 조각이 삭제되지 않고 파일 내용에 포함되는 문제입니다. 이로 인해 의도치 않은 데이터가 파일에 기록되어 보일 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
smb: client: discard post-EOF pagecache when extending a file via zero range
smb3_zero_range() removed the pagecache only for the range being zeroed,
so when it extends the file the folio straddling the old EOF - which may
hold data dirtied past EOF through an mmap - was never dropped and became
visible as file content once the file was extended.
Lower the discard boundary to the smaller of the zero-range offset and the
old EOF.
📍 영향받는 시스템
Linux kernel (SMB client module 사용 시스템)
⚔️ 공격 벡터
mmap을 통해 파일 끝 이후에 데이터를 기록한 후, SMB zero range 기능을 사용하여 파일을 확장함으로써 잔류 데이터를 노출시킴
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 해결된 패치 버전인지 확인하십시오.