🇰🇷 한글 설명
Linux 커널의 smc 서브시스템 내 smc_rx_splice 함수에서 splice 엔트리의 수명 주기 불균형 문제가 발견되었습니다. 페이지 참조 횟수(refcount)가 언더플로우되어 Use-After-Free(UAF) 취약점을 유발할 수 있는 결함이 수정되었습니다.
💡 쉬운 설명
데이터를 옮기는 과정에서 메모리 관리 규칙이 어긋나, 이미 사용이 끝난 메모리 영역을 시스템이 다시 사용하려고 시도할 수 있는 오류입니다. 이로 인해 시스템이 충돌하거나 해커가 권한을 탈취할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net: smc: fix splice entry lifetime imbalance in smc_rx_splice
smc_rx_splice() passes pages to splice_to_pipe() before taking the
references that cover the lifetime of each splice entry. In the
VM-backed RMB path, splice_to_pipe() may drop unqueued entries through
smc_rx_spd_release(), while queued entries are released later via the
pipe buffer callback.
The old post-splice accounting also derives the number of queued VM pages
from an offset mutated while building the descriptor, and a multi-page
splice pairs one sock_hold() with multiple sock_put() calls.
Take the page and socket references for every candidate entry before
splice_to_pipe(), and drop the matching private state, page reference,
and socket reference from smc_rx_spd_release() for entries that never
get queued. This fixes a refcount imbalance that can underflow page
refcounts and trigger a use-after-free.
📍 영향받는 시스템
Linux Kernel (smc 서브시스템을 사용하는 버전)
⚔️ 공격 벡터
특수하게 조작된 네트워크 패킷을 통해 smc_rx_splice 경로를 트리거하여 메모리 참조 오류 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인