🇰🇷 한글 설명
리눅스 커널의 SMB 클라이언트에서 DFS(분산 파일 시스템) 슈퍼블록 처리 중 레이스 컨디션(Race Condition) 취약점이 발견되었습니다. 이로 인해 DFS 자동 마운트 만료 시 슈퍼블록이 해제된 후 참조되는 Use-After-Free 오류가 발생할 수 있습니다.
💡 쉬운 설명
파일 시스템을 연결하고 해제하는 과정에서 데이터가 이미 삭제되었는데 이를 다시 사용하려고 시도하는 오류가 있습니다. 이로 인해 시스템이 충돌하거나 보안 문제가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
smb: client: pin DFS superblock in iterator callback
tcon_super_cb() stores a raw superblock pointer, but __cifs_get_super()
takes its active reference only after iterate_supers_type() has dropped
s_umount and its passive reference. Concurrent DFS automount expiry can
therefore free the superblock before cifs_sb_active() uses it.
A deterministic KASAN test reproduces the race as:
BUG: KASAN: slab-use-after-free in cifs_sb_active+0x77/0x80
The same test passes with this change applied.
Take the active reference in the callback while iterate_supers_type()
still holds s_umount shared. cifs_put_tcp_super() remains the matching
release.
📍 영향받는 시스템
DFS 기능을 사용하는 리눅스 커널 기반 시스템
⚔️ 공격 벡터
동시적인 DFS 자동 마운트 만료 및 SMB 클라이언트 요청을 통한 레이스 컨디션 유도
🛡️ 대응 방법
해당 취약점이 수정된 최신 리눅스 커널 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 취약점이 해결된 패치 버전인지 확인