🔍 CVE-2026-31400

5.5
CVSS Score
MEDIUM
2026-04-03
2026-11-05 22:18
✅ 완료

🇰🇷 한글 설명

Linux kernel의 sunrpc 캐시 관리에서 파일 디스크립터 종료 시 cache_request 객체가 메모리에서 해제되지 않는 누수 취약점입니다. cache_release() 함수가 readers 카운트만 감소시키고 정리를 수행하지 않아, CACHE_PENDING이 clear된 상태에서도 캐시 객체와 버퍼가 남아있게 됩니다.

💡 쉬운 설명

Linux 커널의 파일 캐시 시스템에서 메모리 정리 로직이 빠져 있어 사용한 메모리가 계속 할당된 상태로 유지됩니다. 반복적인 접근을 통해 메모리가 소진될 때까지 계속 쌓일 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: sunrpc: fix cache_request leak in cache_release When a reader's file descriptor is closed while in the middle of reading a cache_request (rp->offset != 0), cache_release() decrements the request's readers count but never checks whether it should free the request. In cache_read(), when readers drops to 0 and CACHE_PENDING is clear, the cache_request is removed from the queue and freed along with its buffer and cache_head reference. cache_release() lacks this cleanup. The only other path that frees requests with readers == 0 is cache_dequeue(), but it runs only when CACHE_PENDING transitions from set to clear. If that transition already happened while readers was still non-zero, cache_dequeue() will have skipped the request, and no subsequent call will clean it up. Add the same cleanup logic from cache_read() to cache_release(): after decrementing readers, check if it reached 0 with CACHE_PENDING clear, and if so, dequeue and free the cache_request.

📍 영향받는 시스템

Linux kernel sunrpc (NFS, RPC 기반 서비스) - 모든 영향받는 kernel 버전

⚔️ 공격 벡터

로컬 공격자가 NFS/RPC 파일 디스크립터를 반복적으로 열고 닫아 메모리 누수를 누적시켜 서비스 거부(DoS) 유발

🛡️ 대응 방법

Linux kernel을 보안 패치가 적용된 버전으로 업데이트

🔧 검증 코드

현재 kernel 버전을 확인하고 배포사(Ubuntu, Red Hat, Debian 등)의 보안 권고에서 해당 버전의 패치 제공 여부 확인

Shell / Script
uname -r && cat /proc/version | grep -oP 'Linux version \K[^ ]+'

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

💻 영향받는 소프트웨어

Linux Kernel