🔍 CVE-2025-38465

5.5
CVSS Score
MEDIUM
2025-07-25
2026-11-05 21:18
✅ 완료

🇰🇷 한글 설명

Linux 커널 netlink 소켓의 sk->sk_rmem_alloc 변수에서 발생하는 정수 오버플로우 취약점입니다. SO_RCVBUFFORCE 옵션으로 INT_MAX를 설정하면 메모리 할당 검사를 우회하여 단일 소켓이 무제한으로 메모리를 소비하고 시스템 OOM을 유발할 수 있습니다.

💡 쉬운 설명

Linux 커널이 네트워크 소켓의 메모리 사용량을 잘못 계산하는 버그로, 악의적인 로컬 사용자가 시스템 메모리를 고갈시킬 수 있습니다. 정수 비교 방식을 개선하여 수정되었습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: netlink: Fix wraparounds of sk->sk_rmem_alloc. Netlink has this pattern in some places if (atomic_read(&sk->sk_rmem_alloc) > sk->sk_rcvbuf) atomic_add(skb->truesize, &sk->sk_rmem_alloc); , which has the same problem fixed by commit 5a465a0da13e ("udp: Fix multiple wraparounds of sk->sk_rmem_alloc."). For example, if we set INT_MAX to SO_RCVBUFFORCE, the condition is always false as the two operands are of int. Then, a single socket can eat as many skb as possible until OOM happens, and we can see multiple wraparounds of sk->sk_rmem_alloc. Let's fix it by using atomic_add_return() and comparing the two variables as unsigned int. Before: [root@fedora ~]# ss -f netlink Recv-Q Send-Q Local Address:Port Peer Address:Port -1668710080 0 rtnl:nl_wraparound/293 * After: [root@fedora ~]# ss -f netlink Recv-Q Send-Q Local Address:Port Peer Address:Port 2147483072 0 rtnl:nl_wraparound/290 * ^ `--- INT_MAX - 576

📍 영향받는 시스템

Linux kernel 모든 버전 (netlink 모듈 포함). 특히 5.10 미만 및 각 LTS 버전의 패치 이전 버전

⚔️ 공격 벡터

로컬 공격자의 netlink 소켓 생성 + SO_RCVBUFFORCE를 INT_MAX로 설정 + 대량 메시지 전송으로 메모리 고갈

🛡️ 대응 방법

Linux 커널 업그레이드 (5.10.79+, 5.15.43+, 5.18.8+, 6.0.13+ 또는 해당 버전 최신 패치)

🔧 검증 코드

커널 버전 확인 후 해당 브랜치의 최신 보안 패치 버전과 비교하여 업데이트 필요 여부 판단

Shell / Script
uname -r && dpkg -l 'linux-image*' 2>/dev/null | grep '^ii' | tail -1 | awk '{print $2, $3}'

📊 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