🇰🇷 한글 설명
Linux 커널의 overlayfs에서 mmap() 및 mprotect() 호출 시 SELinux 접근 제어가 제대로 이루어지지 않는 취약점입니다. 기존 모델은 상위 파일과 하위 파일에 대한 권한을 충분히 검증하지 못했으나, 이번 패치를 통해 새로운 LSM 훅을 사용하여 하위 파일에 대한 접근 제어를 강화했습니다.
💡 쉬운 설명
파일 시스템의 보안 규칙을 검사할 때 일부 과정이 누락되어, 허용되지 않은 메모리 접근이 가능할 수 있는 문제입니다. 보안 시스템(SELinux)이 특정 파일의 권한을 제대로 확인하지 못하는 허점을 수정한 것입니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
selinux: fix overlayfs mmap() and mprotect() access checks
The existing SELinux security model for overlayfs is to allow access if
the current task is able to access the top level file (the "user" file)
and the mounter's credentials are sufficient to access the lower
level file (the "backing" file). Unfortunately, the current code does
not properly enforce these access controls for both mmap() and mprotect()
operations on overlayfs filesystems.
This patch makes use of the newly created security_mmap_backing_file()
LSM hook to provide the missing backing file enforcement for mmap()
operations, and leverages the backing file API and new LSM blob to
provide the necessary information to properly enforce the mprotect()
access controls.
📍 영향받는 시스템
SELinux가 활성화된 overlayfs를 사용하는 Linux 커널 버전
⚔️ 공격 벡터
권한이 없는 사용자가 overlayfs 상의 파일에 대해 mmap() 또는 mprotect()를 호출하여 하위 파일의 보호를 우회하는 방식
🛡️ 대응 방법
SELinux의 overlayfs 접근 제어 로직이 포함된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 보안 패치 적용 버전인지 배포판 보안 공지를 통해 확인