🇰🇷 한글 설명
Linux 커널의 rxrpc 모듈에서 클라이언트 호출(call) 생성 시 획득한 키(key)의 참조 카운트가 호출 소멸 시 해제되지 않아 누수되는 문제입니다. rxrpc_destroy_call()에서 call->key를 해제하도록 수정되었습니다.
💡 쉬운 설명
컴퓨터 안에서 쓰고 난 인증 열쇠를 반납하지 않고 계속 붙잡고 있는 버그입니다. 시간이 지나면 열쇠 목록이 쌓여 시스템 자원이 낭비될 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
rxrpc: Fix key reference count leak from call->key
When creating a client call in rxrpc_alloc_client_call(), the code obtains
a reference to the key. This is never cleaned up and gets leaked when the
call is destroyed.
Fix this by freeing call->key in rxrpc_destroy_call().
Before the patch, it shows the key reference counter elevated:
$ cat /proc/keys | grep afs@54321
1bffe9cd I--Q--i 8053480 4169w 3b010000 1000 1000 rxrpc afs@54321: ka
$
After the patch, the invalidated key is removed when the code exits:
$ cat /proc/keys | grep afs@54321
$
📍 영향받는 시스템
rxrpc(AFS 클라이언트 등)를 사용하는 수정 이전 Linux 커널 버전
⚔️ 공격 벡터
원격 공격보다는 정상 사용 중 발생하는 자원 누수 결함이며, 반복 사용 시 키 리소스가 고갈될 수 있습니다.
🛡️ 대응 방법
패치가 포함된 최신 Linux 커널 배포판으로 업데이트한 후 재부팅하세요.
🔧 검증 코드
커널 버전이 패치 적용 배포판의 수정 버전 이상인지 확인하고, rxrpc 모듈이 없으면 이 취약점의 영향을 받지 않습니다.
uname -r && (lsmod | grep -E '^rxrpc' || echo 'rxrpc 모듈 미로드')