🔍 CVE-2025-22005

5.5
CVSS Score
MEDIUM
2025-04-03
2026-10-15 02:17
✅ 완료

🇰🇷 한글 설명

리눅스 커널의 IPv6 구현 중 fib_check_nh_v6_gw() 함수에서 메모리 누수 취약점이 발견되었습니다. fib6_nh_init() 과정에서 메모리 할당 실패 시 기존에 할당된 per-cpu 메모리를 적절히 해제하지 않아 발생합니다.

💡 쉬운 설명

컴퓨터가 인터넷 주소를 처리하는 과정에서 메모리를 사용한 뒤, 오류가 발생했을 때 이를 제대로 돌려주지 않고 계속 쌓아두는 문제입니다. 이 문제가 지속되면 시스템의 메모리가 부족해질 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: ipv6: Fix memleak of nhc_pcpu_rth_output in fib_check_nh_v6_gw(). fib_check_nh_v6_gw() expects that fib6_nh_init() cleans up everything when it fails. Commit 7dd73168e273 ("ipv6: Always allocate pcpu memory in a fib6_nh") moved fib_nh_common_init() before alloc_percpu_gfp() within fib6_nh_init() but forgot to add cleanup for fib6_nh->nh_common.nhc_pcpu_rth_output in case it fails to allocate fib6_nh->rt6i_pcpu, resulting in memleak. Let's call fib_nh_common_release() and clear nhc_pcpu_rth_output in the error path. Note that we can remove the fib6_nh_release() call in nh_create_ipv6() later in net-next.git.

📍 영향받는 시스템

메모리 누수가 포함된 특정 커널 버전의 Linux 시스템 (IPv6 사용 시)

⚔️ 공격 벡터

직접적인 공격보다는 특정 네트워크 트래픽 패턴을 유도하여 메모리 누수를 점진적으로 유발하는 방식

🛡️ 대응 방법

커널 패치(Commit 7dd73168e273 포함 버전)를 적용하여 최신 커널로 업데이트

🔧 검증 코드

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

Shell / Script
uname -r

📊 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