🇰🇷 한글 설명
Linux 커널의 sunrpc 구성 요소에서 rq_procinfo 생명주기 관리 미흡으로 인해 발생하는 취약점입니다. 새로운 RPC 요청 처리 중 오류가 발생할 경우, 이전 요청의 잔류 데이터가 해제되면서 double-free 또는 use-after-free 취약점이 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터가 데이터를 정리하는 과정에서 이미 지운 데이터를 또 지우려고 시도하여 시스템 오류를 일으키는 문제입니다. 이로 인해 시스템이 멈추거나 해커가 권한을 탈취할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
sunrpc: harden rq_procinfo lifecycle to prevent double-free
The svc_release_rqst() function executes the callback inside
rqstp->rq_procinfo->pc_release. However, if a worker thread begins
processing a new request and encounters an early error path (e.g.,
unsupported protocol, short frame, or bad auth) before a valid
rq_procinfo is installed, a stale release hook can be re-triggered
against reused state from the previous RPC, resulting in a double-free
or use-after-free vulnerability.
Harden the lifecycle of rq_procinfo by:
1. Ensuring svc_release_rqst() always clears rq_procinfo after the
optional pc_release() call, regardless of whether the hook exists.
2. Explicitly clearing rq_procinfo at request entry in svc_process()
before any early decode or drop paths.
3. Ensuring svc_process_bc() does the same at backchannel entry.
This guarantees that error flows will not encounter a non-NULL stale
rq_procinfo pointer when there is nothing to release.
📍 영향받는 시스템
Linux Kernel (sunrpc 모듈을 사용하는 시스템)
⚔️ 공격 벡터
조작된 RPC 요청을 보내 처리 과정에서 의도적인 오류를 유발하여 메모리 오류를 일으킴
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이상인지 확인