🇰🇷 한글 설명
Linux 커널의 nfsd 트레이스포인트에서 서버 sockaddr 슬롯 크기를 결정할 때 발생하는 버퍼 오버플로우 및 정보 유출 취약점입니다. xpt_remotelen과 xpt_locallen의 불일치로 인해 메모리 경계를 넘어 쓰기가 발생하거나 이전 링 버퍼의 내용이 유출될 수 있습니다.
💡 쉬운 설명
리눅스 서버의 네트워크 기록 기능에서 데이터 저장 공간을 잘못 계산하여, 메모리의 다른 부분을 덮어쓰거나 중요한 정보를 흘릴 수 있는 문제입니다. 특히 UDP 방식을 사용하는 NFS 서비스에서 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
nfsd: size fh_verify server sockaddr slot by xpt_locallen
The nfsd_fh_verify and nfsd_fh_verify_err tracepoints declare the
server sockaddr slot sized by xpt_remotelen but fill it from
xpt_local using xpt_locallen:
TP_STRUCT__entry(
...
__sockaddr(server, rqstp->rq_xprt->xpt_remotelen)
...
)
TP_fast_assign(
...
__assign_sockaddr(server, &rqstp->rq_xprt->xpt_local,
rqstp->rq_xprt->xpt_locallen);
...
)
When xpt_locallen exceeds xpt_remotelen, __assign_sockaddr's memcpy
writes past the reserved ring-buffer slot. In the reverse direction
(xpt_locallen < xpt_remotelen) the slot is oversized and the
unwritten tail leaks prior ring-buffer contents to trace consumers.
The write-past-end case is reachable on NFS/UDP. svc_xprt_set_remote()
is only called from svc_tcp_accept() (net/sunrpc/svcsock.c) and from
the RDMA connect path; svc_create_socket() for UDP calls only
svc_xprt_set_local(), so xpt_remotelen stays 0 for the xprt's
lifetime. Every fh_verify trace for an NFSv2/v3-over-UDP request
then copies 16 or 28 bytes from xpt_local into a zero-byte slot.
The other NFSD tracepoints that record the server address
(NFSD_TRACE_PROC_CALL_FIELDS, NFSD_TRACE_PROC_RES_FIELDS,
SVC_RQST_ENDPOINT_FIELDS) already size the server slot by
xpt_locallen; nfsd_fh_verify and nfsd_fh_verify_err were the only
exceptions.
Fix by sizing the server slot with xpt_locallen so the declared slot
matches the copy length. The client slot and its assignment already
agree on xpt_remotelen and are left untouched.
📍 영향받는 시스템
Linux kernel (nfsd component, specifically NFS/UDP environments)
⚔️ 공격 벡터
NFS/UDP 요청을 통해 트레이스포인트가 실행되도록 유도하여 메모리 오버플로우 또는 정보 유출 유발
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 nfsd 트레이스포인트의 슬롯 크기 할당 로직을 수정해야 합니다.
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 해결된 패치 버전인지 보안 공지(CVE-2026-89702 관련)와 대조하십시오.