🔍 CVE-2026-98366

7.8
CVSS Score
HIGH
2026-10-06
2026-10-19 10:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 RDMA/rxe 구성 요소에서 메모리 등록(MR) 재등록 시 액세스 플래그를 검증하기 전에 PD(Protection Domain)를 먼저 교체하여 발생하는 취약점입니다. 이로 인해 참조 카운트 불일치가 발생하며, 결과적으로 메모리 해제 후 사용(Use-After-Free) 오류를 유발하여 시스템 안정성을 해치거나 보안 위협을 초래할 수 있습니다.

💡 쉬운 설명

컴퓨터의 메모리 관리 규칙을 바꾸는 과정에서 순서가 잘못되어, 이미 사용 중인 메모리 영역을 시스템이 실수로 삭제해 버리는 문제입니다. 이로 인해 프로그램이 갑자기 종료되거나 해커가 시스템 권한을 탈취할 수 있는 통로가 생길 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: RDMA/rxe: validate access flags before swapping the MR's PD rxe_rereg_user_mr() reassigns mr->ibmr.pd first and only then validates the IB_MR_REREG_ACCESS argument: if (flags & IB_MR_REREG_PD) { rxe_put(old_pd); rxe_get(pd); mr->ibmr.pd = ibpd; } if (flags & IB_MR_REREG_ACCESS) { if (access & ~RXE_ACCESS_SUPPORTED_MR) return ERR_PTR(-EOPNOTSUPP); mr->access = access; } Both flags pass the entry check because RXE_MR_REREG_SUPPORTED is IB_MR_REREG_PD | IB_MR_REREG_ACCESS, so a caller can reach the access check with mr->ibmr.pd already reassigned. mr->ibmr.pd is owned by the core, which adjusts pd->usecnt only on the success path: ib_uverbs_rereg_mr() jumps to put_new_uobj on a driver error without undoing the reassignment, so mr->pd == new_pd while the usecnts still charge the MR to orig_pd. ib_dereg_mr_user() then decrements new_pd, whose count can reach zero while a memory window still references it; uverbs_free_pd() frees the PD on that count alone and rxe_mw_cleanup() writes to freed memory: BUG: KASAN: slab-use-after-free in __rxe_put+0x31/0xa0 Write of size 4 at addr ffff8881301dd690 by task rxe_poc/591 __rxe_put+0x31/0xa0 rxe_mw_cleanup+0x42/0x200 __rxe_cleanup+0x115/0x370 rxe_dealloc_mw+0x4c/0x80 Allocated by task 591: ib_uverbs_alloc_pd+0x258/0x540 Freed by task 591: ib_dealloc_pd_user+0x174/0x210 uverbs_free_pd+0x8d/0xc0 ib_uverbs_dealloc_pd+0x18e/0x1d0 Validate the access flags before mutating any state so the callback either applies every requested change or none.

📍 영향받는 시스템

RDMA/rxe 드라이버를 사용하는 Linux 커널 버전

⚔️ 공격 벡터

특수하게 조작된 IB_MR_REREG_ACCESS 플래그를 포함한 RDMA 메모리 재등록 요청을 통해 발생

🛡️ 대응 방법

액세스 플래그를 상태 변경 전에 먼저 검증하도록 커널을 최신 패치 버전으로 업데이트하십시오.

🔧 검증 코드

현재 실행 중인 커널 버전을 확인하여 해당 취약점이 해결된 최신 보안 패치 버전인지 확인하십시오.

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