🇰🇷 한글 설명
Linux 커널의 nfsd에서 NFSv2 SETACL 처리 시 마스크 비트를 적절히 검사하지 않아 발생하는 취약점입니다. 특정 ACL 설정 요청 시 의도치 않게 디렉토리의 기본 ACL이 삭제될 수 있는 결함이 있습니다.
💡 쉬운 설명
파일의 권한을 설정하는 과정에서 실수로 기존의 중요한 보안 설정이 지워질 수 있는 문제입니다. 공격자가 이를 이용해 파일 접근 권한을 의도치 않게 변경할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
nfsd: gate nfs2 setacl by argp->mask
The NFSACL v2 SETACL path shares the decoder convention used by its
v3 sibling: nfsaclsvc_decode_setaclargs() fills in argp->acl_access
only when NFS_ACL is set in the request mask and argp->acl_default
only when NFS_DFACL is set, leaving the other pointer NULL because
the argument buffer is zeroed up to pc_argzero before decode.
nfsacld_proc_setacl() then hands both pointers to set_posix_acl()
unconditionally. set_posix_acl(idmap, dentry, type, NULL) is the VFS
"remove this ACL type" operation, so an omitted arm is
indistinguishable from an explicit request to delete that ACL. A
SETACL carrying only NFS_ACL silently strips the directory's default
ACL; mask=0 strips both.
This is the same defect just fixed in nfsd3_proc_setacl(); apply the
same remedy. Gate each set_posix_acl() call on its mask bit and
initialize error to 0 so that a request with neither bit set leaves
the on-disk ACLs untouched and returns success. The out_drop_lock
path and the unconditional posix_acl_release() in
nfsaclsvc_release_setacl() already tolerate the skipped arms.
📍 영향받는 시스템
Linux kernel (nfsd component)
⚔️ 공격 벡터
NFSv2 프로토콜을 통해 조작된 SETACL 요청을 전송하여 권한 삭제 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인