🔍 CVE-2026-31641

7.8
CVSS Score
HIGH
2026-04-24
2026-08-18 12:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 rxrpc 구성 요소에서 RxGK 토큰 로딩 시 경계 검사 오류로 인한 힙 버퍼 오버플로우 취약점이 발견되었습니다. 매우 큰 길이 값이 입력될 경우 정수 오버플로우가 발생하여 메모리 할당 크기가 0이 되지만, 실제 복사 과정에서는 대량의 데이터가 복사되어 시스템 권한 탈취가 가능할 수 있습니다.

💡 쉬운 설명

데이터의 크기를 확인하는 과정에서 계산 오류가 발생하여, 아주 큰 데이터를 보낼 때 컴퓨터가 메모리를 아주 작게만 준비하게 만드는 버그입니다. 이로 인해 준비된 공간보다 훨씬 많은 데이터가 넘쳐 들어오면서 시스템이 망가지거나 해킹될 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: rxrpc: Fix RxGK token loading to check bounds rxrpc_preparse_xdr_yfs_rxgk() reads the raw key length and ticket length from the XDR token as u32 values and passes each through round_up(x, 4) before using the rounded value for validation and allocation. When the raw length is >= 0xfffffffd, round_up() wraps to 0, so the bounds check and kzalloc both use 0 while the subsequent memcpy still copies the original ~4 GiB value, producing a heap buffer overflow reachable from an unprivileged add_key() call. Fix this by: (1) Rejecting raw key lengths above AFSTOKEN_GK_KEY_MAX and raw ticket lengths above AFSTOKEN_GK_TOKEN_MAX before rounding, consistent with the caps that the RxKAD path already enforces via AFSTOKEN_RK_TIX_MAX. (2) Sizing the flexible-array allocation from the validated raw key length via struct_size_t() instead of the rounded value. (3) Caching the raw lengths so that the later field assignments and memcpy calls do not re-read from the token, eliminating a class of TOCTOU re-parse. The control path (valid token with lengths within bounds) is unaffected.

📍 영향받는 시스템

Linux kernel (rxrpc module 사용 환경)

⚔️ 공격 벡터

권한이 없는 사용자가 add_key() 호출을 통해 조작된 RxGK 토큰을 전달하여 공격

🛡️ 대응 방법

Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트

🔧 검증 코드

출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel