CVE-2023-53138
- 공개
- 2025년 5월 3일
- 수정
- 2026년 8월 4일
- 조회
- 0
- 상태
- Modified
개요
이 취약점이 무엇인지
In the Linux kernel, the following vulnerability has been resolved:
net: caif: Fix use-after-free in cfusbl_device_notify()
syzbot reported use-after-free in cfusbl_device_notify() [1]. This causes a stack trace like below:
BUG: KASAN: use-after-free in cfusbl_device_notify+0x7c9/0x870 net/caif/caif_usb.c:138 Read of size 8 at addr ffff88807ac4e6f0 by task kworker/u4:6/1214
CPU: 0 PID: 1214 Comm: kworker/u4:6 Not tainted 5.19.0-rc3-syzkaller-00146-g92f20ff72066 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: netns cleanup_net Call Trace: <TASK> __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 print_address_description.constprop.0.cold+0xeb/0x467 mm/kasan/report.c:313 print_report mm/kasan/report.c:429 [inline] kasan_report.cold+0xf4/0x1c6 mm/kasan/report.c:491 cfusbl_device_notify+0x7c9/0x870 net/caif/caif_usb.c:138 notifier_call_chain+0xb5/0x200 kernel/notifier.c:87 call_netdevice_notifiers_info+0xb5/0x130 net/core/dev.c:1945 call_netdevice_notifiers_extack net/core/dev.c:1983 [inline] call_netdevice_notifiers net/core/dev.c:1997 [inline] netdev_wait_allrefs_any net/core/dev.c:10227 [inline] netdev_run_todo+0xbc0/0x10f0 net/core/dev.c:10341 default_device_exit_batch+0x44e/0x590 net/core/dev.c:11334 ops_exit_list+0x125/0x170 net/core/net_namespace.c:167 cleanup_net+0x4ea/0xb00 net/core/net_namespace.c:594 process_one_work+0x996/0x1610 kernel/workqueue.c:2289 worker_thread+0x665/0x1080 kernel/workqueue.c:2436 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:302 </TASK>
When unregistering a net device, unregister_netdevice_many_notify() sets the device's reg_state to NETREG_UNREGISTERING, calls notifiers with NETDEV_UNREGISTER, and adds the device to the todo list.
Later on, devices in the todo list are processed by netdev_run_todo(). netdev_run_todo() waits devices' reference count become 1 while rebdoadcasting NETDEV_UNREGISTER notification.
When cfusbl_device_notify() is called with NETDEV_UNREGISTER multiple times, the parent device might be freed. This could cause UAF. Processing NETDEV_UNREGISTER multiple times also causes inbalance of reference count for the module.
This patch fixes the issue by accepting only first NETDEV_UNREGISTER notification.
실제 악용 사례 · 아직 확인된 사례가 없어요
CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.
패치 현황
어떤 버전이 위험하고, 몇 버전으로 올리면 되는지
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| linux_kernellinux | 3.3 | ≤ | 취약 | < | 4.14.310 | 4.14.310이상 |
| 4.15 | ≤ | 취약 | < | 4.19.278 | 4.19.278이상 | |
| 4.20 | ≤ | 취약 | < | 5.4.237 | 5.4.237이상 | |
| 5.5 | ≤ | 취약 | < | 5.10.175 | 5.10.175이상 | |
| 5.11 | ≤ | 취약 | < | 5.15.103 | 5.15.103이상 | |
| 5.16 | ≤ | 취약 | < | 6.1.20 | 6.1.20이상 | |
| 6.2 | ≤ | 취약 | < | 6.2.7 | 6.2.7이상 | |
| 이 버전만 | 취약 | = | 6.3 rc1 | 벤더 공지 확인 | ||
NVD 분석 기준. 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.
할당 기관(CNA)이 적은 버전 10줄도 보기
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| LinuxLinux | 이 버전만 | 취약 | = | 3.3 | 벤더 공지 확인 | |
| 최초 버전 | ≤ | 영향 없음 | < | 3.3 | — | |
| 4.14.310 | ≤ | 영향 없음 | ≤ | 4.14.* | — | |
| 4.19.278 | ≤ | 영향 없음 | ≤ | 4.19.* | — | |
| 5.4.237 | ≤ | 영향 없음 | ≤ | 5.4.* | — | |
| 5.10.175 | ≤ | 영향 없음 | ≤ | 5.10.* | — | |
| 5.15.103 | ≤ | 영향 없음 | ≤ | 5.15.* | — | |
| 6.1.20 | ≤ | 영향 없음 | ≤ | 6.1.* | — | |
| 6.2.7 | ≤ | 영향 없음 | ≤ | 6.2.* | — | |
| 6.3 | ≤ | 영향 없음 | ≤ | 최신 버전 | — | |
참고 링크
NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.
패치8
- git.kernel.org/stable/c/1793da97a23e31c5bf06631f3f3e5a25f368fd64
- git.kernel.org/stable/c/287027d8a567168a5d8ce5cb0cba16a34791a48c
- git.kernel.org/stable/c/3f14457e1584224f4296af613bbd99deb60b5d91
- git.kernel.org/stable/c/68a45c3cf0e2242a533657f4f535d9b6a7447a79
- git.kernel.org/stable/c/9781e98a97110f5e76999058368b4be76a788484