🔍 CVE-2026-99224

7.0
CVSS Score
HIGH
2026-11-02
2026-11-03 20:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 keyctl_describe_key() 함수에서 키 타입 이름을 kasprintf()에서 사용하는 동안 보호하지 않아, 모듈 언로드와 경합하면 해제된 메모리를 읽어 커널 페이지 폴트가 발생할 수 있습니다. 해당 함수 실행 중 key->sem 읽기 잠금을 유지하도록 수정되었습니다.

💡 쉬운 설명

커널이 키 정보를 문자열로 만드는 도중, 그 키 종류를 정의한 모듈이 동시에 제거되면 이미 지워진 메모리를 읽게 되어 시스템이 멈출 수 있습니다. 이 문제는 잠금을 추가하여 해결되었습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: keys: Protect the type name while describing a key keyctl_describe_key() must keep the key type's name alive until kasprintf() has consumed it. The retained key reference keeps the key and its description alive, but does not pin the module providing its type. The name is passed to kasprintf() without holding key->sem. kvasprintf() uses the saved name pointer in two formatting passes, with a GFP_KERNEL allocation between them. With AF_RXRPC=m, a task that passes View permission before type retirement can overlap a privileged module unload in this order: 1. KEYCTL_DESCRIBE looks up the key, saves key->type->name in the kasprintf() arguments and completes the first formatting pass. 2. While the formatter is delayed before its second pass, af_rxrpc_exit() calls unregister_key_type(), which removes the type from the registry and waits for key_gc_keytype(). 3. The collector takes key->sem for writing, retypes the retained key to key_type_dead and completes retirement. Unregistration and module exit return, allowing free_module() to release the type and name. 4. The formatter resumes its second pass and reads the saved name from released module storage, which can fault in string(). Hold key->sem for reading across kasprintf(). The collector then cannot retype the key or complete retirement until both formatting passes have finished. If retirement wins the lock first, formatting uses the core key_type_dead name instead. Release the semaphore immediately after kasprintf(), including on allocation failure, before copying to userspace. Oops report as below: BUG: unable to handle page fault for address: fffffbfff8054794 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page RIP: 0010:string+0x23f/0x470 Call Trace: vsnprintf+0x330/0x1110

📍 영향받는 시스템

AF_RXRPC 모듈(CONFIG_AF_RXRPC=m)을 사용하는 수정 이전의 Linux 커널 버전

⚔️ 공격 벡터

로컬 사용자가 키 설명 조회(KEYCTL_DESCRIBE)와 권한 있는 모듈 언로드를 경합시켜 커널 메모리 오류를 유발하는 방식

🛡️ 대응 방법

배포판이 제공하는 커널 보안 업데이트를 적용하고 시스템을 재부팅하세요.

🔧 검증 코드

출력된 커널 버전이 배포판의 수정 패키지 버전 이상인지 확인하고, rxrpc 모듈이 로드되어 있지 않으면 해당 취약 경로는 노출되지 않습니다.

Shell / Script
uname -r && grep -i rxrpc /proc/modules 2>/dev/null

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel