🇰🇷 한글 설명
Linux 커널의 nfsd 구성 요소에서 compound argument 해제 시 opcnt(작업 개수)를 초기화하지 않아 발생하는 OOB(Out-of-Bounds) Read 취약점입니다. 동적 할당된 버퍼가 해제된 후에도 이전 작업 개수가 남아 있어, RPC 상태 덤프 시 인접한 슬랩 메모리를 읽어 사용자 공간으로 유출할 수 있습니다.
💡 쉬운 설명
리눅스 서버의 파일 공유 기능(NFS)에서 메모리 관리 오류로 인해 시스템 내부의 민감한 정보가 외부로 유출될 수 있는 보안 결함입니다. 공격자는 이를 통해 메모리에 저장된 다른 데이터를 훔쳐볼 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
nfsd: clear opcnt on compound arg release to prevent OOB read
nfsd4_release_compoundargs() resets args->ops to the inline iops[8]
array when the dynamically-allocated ops buffer is freed, but leaves
args->opcnt at its original value (which can be up to 200 for NFSv4.1+
compounds).
If rq_status_counter is stuck at an odd value (which can happen when
nfsd_dispatch() hits an error path after setting it odd), the RPC
status dumpit handler reads min(opcnt, 16) entries from args->ops[].
Since iops only has 8 elements and is the last field in struct
nfsd4_compoundargs, reading indices 8-15 accesses adjacent slab memory
and leaks it to userspace via netlink.
Zero opcnt unconditionally in nfsd4_release_compoundargs() so stale
compound metadata is never exposed through the status interface.
[ cel: Remove the kvfree_rcu_mightsleep() sleep from the exposure window ]
📍 영향받는 시스템
Linux kernel (nfsd module 사용 환경)
⚔️ 공격 벡터
특정 조건에서 RPC 상태 덤프 핸들러를 호출하여 Netlink를 통해 메모리 데이터를 유출
🛡️ 대응 방법
nfsd4_release_compoundargs() 함수에서 opcnt를 조건 없이 0으로 초기화하도록 커널 패치 적용
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 최신 보안 패치 버전인지 확인