🇰🇷 한글 설명
Linux kernel의 CIFS(Common Internet File System) 모듈에서 tcon(tree connection) 필드를 보호하기 위한 잠금(lock) 메커니즘이 부정확하게 구현되었습니다. cifs_tcp_ses_lock 대신 tc_lock을 사용해야 하는 부분이 누락되어 동시성 제어 문제가 발생할 수 있습니다.
💡 쉬운 설명
Linux의 파일 공유 기능(CIFS)에서 여러 사용자가 동시에 접근할 때 안전성을 보장하는 장치가 제대로 작동하지 않을 수 있습니다. 이로 인해 데이터 손상이나 권한 문제가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
cifs: Fix locking usage for tcon fields
We used to use the cifs_tcp_ses_lock to protect a lot of objects
that are not just the server, ses or tcon lists. We later introduced
srv_lock, ses_lock and tc_lock to protect fields within the
corresponding structs. This was done to provide a more granular
protection and avoid unnecessary serialization.
There were still a couple of uses of cifs_tcp_ses_lock to provide
tcon fields. In this patch, I've replaced them with tc_lock.
📍 영향받는 시스템
Linux kernel 모든 버전 (CIFS 모듈 활성화된 시스템)
⚔️ 공격 벡터
Race condition을 통한 잠금 메커니즘 우회로 tcon 필드에 대한 부정확한 동시 접근
🛡️ 대응 방법
Linux kernel을 최신 버전으로 업데이트하여 tc_lock이 올바르게 적용된 패치 적용
🔧 검증 코드
첫 번째 줄은 현재 kernel 버전을 표시하고, 두 번째 줄은 CIFS 모듈 활성화 여부를 확인합니다(y=활성화, n=비활성화)
uname -r && grep -i cifs /boot/config-$(uname -r) 2>/dev/null | head -3