CVE-2026-98643
- 공개
- 2026년 10월 19일
- 수정
- 2026년 10월 19일
- 조회
- 0
- 상태
- Received
개요
이 취약점이 무엇인지
In the Linux kernel, the following vulnerability has been resolved:
bpf: Fix out-of-bounds read of rtt_min in sock_ops
A sockops prog reading skops->rtt_min never checks the sk type: on the tcp_conn_request() path sock_ops->sk is a request_sock (non-full), and the ctx rewrite casts it to a tcp_sock (full) and reads rtt_min past the end of the request_sock, returning dirty adjacent memory.
SEC("sockops") int prog(struct bpf_sock_ops *skops) { switch (skops->op) { case BPF_SOCK_OPS_RWND_INIT: leak = skops->rtt_min; /* reads the request_sock OOB */ ... } }
For instance one such read returned rtt_min=0xffff8881, the high half of a leaked kernel pointer.
Guarding that cast is exactly what SOCK_OPS_GET_FIELD() does -- it checks is_locked_tcp_sock and returns 0 when sock_ops->sk is not a locked full socket. Every other tcp_sock field in sock_ops goes through it; rtt_min is the only one open-coded, so it skips the check.
Read rtt_min through SOCK_OPS_GET_FIELD() too. rtt_min is a bit special: it is a struct minmax and we only want the current min, so pass rtt_min.s[0].v. That is equivalent to the old hand-computed offset
offsetof(struct tcp_sock, rtt_min) + sizeof_field(struct minmax_sample, t)
(s[0] sits at rtt_min + 0 and .v at + sizeof(.t), i.e. what minmax_get() returns), so the loaded field is unchanged and only the full-sock guard is added. The two BUILD_BUG_ON()s that protected the hand-computed offset are no longer needed.
Before patch:
0: r1 = *(u64 *)(r1 +0) ; r1 = skops->sk 1: r1 = *(u32 *)(r1 +2324) ; ((tcp_sock *)sk)->rtt_min.s[0].v
After patch:
0: *(u64 *)(r1 +56) = r9 1: r9 = *(u8 *)(r1 +50) ; is_locked_tcp_sock 2: if r9 == 0 goto pc+4 ; not a locked full sock -> 0 3: r9 = *(u64 *)(r1 +56) 4: r1 = *(u64 *)(r1 +0) ; r1 = skops->sk 5: r1 = *(u32 *)(r1 +2324) ; rtt_min.s[0].v 6: goto pc+2 7: r9 = *(u64 *)(r1 +56) 8: r1 = 0
실제 악용 사례 · 아직 확인된 사례가 없어요
CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.
패치 현황
어떤 버전이 위험하고, 몇 버전으로 올리면 되는지
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| LinuxLinux | 이 버전만 | 취약 | = | 4.16 | 벤더 공지 확인 | |
| 최초 버전 | ≤ | 영향 없음 | < | 4.16 | — | |
| 5.10.271 | ≤ | 영향 없음 | ≤ | 5.10.* | — | |
| 5.15.222 | ≤ | 영향 없음 | ≤ | 5.15.* | — | |
| 6.1.189 | ≤ | 영향 없음 | ≤ | 6.1.* | — | |
| 6.6.158 | ≤ | 영향 없음 | ≤ | 6.6.* | — | |
| 6.12.112 | ≤ | 영향 없음 | ≤ | 6.12.* | — | |
| 6.18.55 | ≤ | 영향 없음 | ≤ | 6.18.* | — | |
| 7.2.9 | ≤ | 영향 없음 | ≤ | 7.2.* | — | |
| 7.3 | ≤ | 영향 없음 | ≤ | 최신 버전 | — | |
할당 기관(CNA) 레코드 기준 (NVD 분석 전). 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.
참고 링크
NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.
기타8
- git.kernel.org/stable/c/0c796efa919f52f788c22c79d1f1b70321696b3d
- git.kernel.org/stable/c/3a46f14e6cf375f3ca38f8f6e6524749e24ea0a8
- git.kernel.org/stable/c/6785313d4fac96afb21ef193610c1fa88b1a9e64
- git.kernel.org/stable/c/75f8cf22463d82bb1fb0239a3d485fc8f4c8ef03
- git.kernel.org/stable/c/a8a9becbac93a9f54f4d565f1f3005eb08a7912f