🇰🇷 한글 설명
Linux 커널의 smc 모듈 내 smc_clc_prfx_set() 함수에서 RCU 또는 RTNL 보호 없이 네트워크 장치에 접근하여 Use-After-Free(UAF) 취약점이 발생할 수 있습니다. 이 문제는 __sk_dst_get()와 dst_dev_rcu()를 사용하고 rcu_read_lock()을 적용함으로써 해결되었습니다.
💡 쉬운 설명
컴퓨터의 핵심 운영체제인 리눅스에서 네트워크 연결을 처리할 때, 이미 사라진 메모리 정보를 잘못 참조하여 시스템 오류를 일으킬 수 있는 결함이 발견되었습니다. 이를 통해 공격자가 시스템을 불안정하게 만들거나 권한을 탈취할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
smc: Use __sk_dst_get() and dst_dev_rcu() in in smc_clc_prfx_set().
smc_clc_prfx_set() is called during connect() and not under RCU
nor RTNL.
Using sk_dst_get(sk)->dev could trigger UAF.
Let's use __sk_dst_get() and dev_dst_rcu() under rcu_read_lock()
after kernel_getsockname().
Note that the returned value of smc_clc_prfx_set() is not used
in the caller.
While at it, we change the 1st arg of smc_clc_prfx_set[46]_rcu()
not to touch dst there.
📍 영향받는 시스템
SMC(Shared Memory Communications) 프로토콜을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
특수하게 조작된 네트워크 연결 요청을 통해 메모리 해제 후 재사용(UAF) 유도
🛡️ 대응 방법
SMC 관련 패치가 적용된 최신 버전의 Linux 커널로 업데이트
🔧 검증 코드
현재 실행 중인 커널 버전을 확인하여 해당 취약점이 해결된 패치 버전인지 확인합니다.