CVE-2023-52999
- 공개
- 2025년 3월 28일
- 수정
- 2026년 6월 17일
- 조회
- 0
- 상태
- Analyzed
개요
이 취약점이 무엇인지
In the Linux kernel, the following vulnerability has been resolved:
net: fix UaF in netns ops registration error path
If net_assign_generic() fails, the current error path in ops_init() tries to clear the gen pointer slot. Anyway, in such error path, the gen pointer itself has not been modified yet, and the existing and accessed one is smaller than the accessed index, causing an out-of-bounds error:
BUG: KASAN: slab-out-of-bounds in ops_init+0x2de/0x320 Write of size 8 at addr ffff888109124978 by task modprobe/1018
CPU: 2 PID: 1018 Comm: modprobe Not tainted 6.2.0-rc2.mptcp_ae5ac65fbed5+ #1641 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.1-2.fc37 04/01/2014 Call Trace: <TASK> dump_stack_lvl+0x6a/0x9f print_address_description.constprop.0+0x86/0x2b5 print_report+0x11b/0x1fb kasan_report+0x87/0xc0 ops_init+0x2de/0x320 register_pernet_operations+0x2e4/0x750 register_pernet_subsys+0x24/0x40 tcf_register_action+0x9f/0x560 do_one_initcall+0xf9/0x570 do_init_module+0x190/0x650 load_module+0x1fa5/0x23c0 __do_sys_finit_module+0x10d/0x1b0 do_syscall_64+0x58/0x80 entry_SYSCALL_64_after_hwframe+0x72/0xdc RIP: 0033:0x7f42518f778d Code: 00 c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d cb 56 2c 00 f7 d8 64 89 01 48 RSP: 002b:00007fff96869688 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 RAX: ffffffffffffffda RBX: 00005568ef7f7c90 RCX: 00007f42518f778d RDX: 0000000000000000 RSI: 00005568ef41d796 RDI: 0000000000000003 RBP: 00005568ef41d796 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000003 R11: 0000000000000246 R12: 0000000000000000 R13: 00005568ef7f7d30 R14: 0000000000040000 R15: 0000000000000000 </TASK>
This change addresses the issue by skipping the gen pointer de-reference in the mentioned error-path.
Found by code inspection and verified with explicit error injection on a kasan-enabled kernel.
실제 악용 사례 · 아직 확인된 사례가 없어요
CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.
패치 현황
어떤 버전이 위험하고, 몇 버전으로 올리면 되는지
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| linux_kernellinux | 4.19.264 | ≤ | 취약 | < | 4.19.272 | 4.19.272이상 |
| 5.4.223 | ≤ | 취약 | < | 5.4.231 | 5.4.231이상 | |
| 5.10.153 | ≤ | 취약 | < | 5.10.166 | 5.10.166이상 | |
| 5.15.77 | ≤ | 취약 | < | 5.15.91 | 5.15.91이상 | |
| 6.1 | ≤ | 취약 | < | 6.1.9 | 6.1.9이상 | |
| 6.1 | ≤ | 취약 | < | 6.2 | 6.2이상 | |
| 이 버전만 | 취약 | = | 6.0.7 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.2 rc1 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.2 rc2 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.2 rc3 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.2 rc4 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.2 rc5 | 벤더 공지 확인 | ||
NVD 분석 기준. 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.
할당 기관(CNA)이 적은 버전 13줄도 보기
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| LinuxLinux | 4.19.264 | ≤ | 취약 | < | 4.19.272 | 4.19.272이상 |
| 5.4.223 | ≤ | 취약 | < | 5.4.231 | 5.4.231이상 | |
| 5.10.153 | ≤ | 취약 | < | 5.10.166 | 5.10.166이상 | |
| 5.15.77 | ≤ | 취약 | < | 5.15.91 | 5.15.91이상 | |
| 6.0.7 | ≤ | 취약 | < | 6.1 | 6.1이상 | |
| 이 버전만 | 취약 | = | 6.1 | 벤더 공지 확인 | ||
| 최초 버전 | ≤ | 영향 없음 | < | 6.1 | — | |
| 4.19.272 | ≤ | 영향 없음 | ≤ | 4.19.* | — | |
| 5.4.231 | ≤ | 영향 없음 | ≤ | 5.4.* | — | |
| 5.10.166 | ≤ | 영향 없음 | ≤ | 5.10.* | — | |
| 5.15.91 | ≤ | 영향 없음 | ≤ | 5.15.* | — | |
| 6.1.9 | ≤ | 영향 없음 | ≤ | 6.1.* | — | |
| 6.2 | ≤ | 영향 없음 | ≤ | 최신 버전 | — | |
참고 링크
NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.
패치6
- git.kernel.org/stable/c/12075708f2e77ee6a9f8bb2cf512c38be3099794
- git.kernel.org/stable/c/66689a72ba73575e76d4f6a8748d3fa2690ec1c4
- git.kernel.org/stable/c/71ab9c3e2253619136c31c89dbb2c69305cc89b1
- git.kernel.org/stable/c/ad0dfe9bcf0d78e699c7efb64c90ed062dc48bea
- git.kernel.org/stable/c/d4c008f3b7f7d4ffd311eb2dae5e75b3cbddacd0