CVE-2022-49939
- 공개
- 2025년 6월 18일
- 수정
- 2026년 8월 4일
- 조회
- 0
- 상태
- Modified
개요
이 취약점이 무엇인지
In the Linux kernel, the following vulnerability has been resolved:
binder: fix UAF of ref->proc caused by race condition
A transaction of type BINDER_TYPE_WEAK_HANDLE can fail to increment the reference for a node. In this case, the target proc normally releases the failed reference upon close as expected. However, if the target is dying in parallel the call will race with binder_deferred_release(), so the target could have released all of its references by now leaving the cleanup of the new failed reference unhandled.
The transaction then ends and the target proc gets released making the ref->proc now a dangling pointer. Later on, ref->node is closed and we attempt to take spin_lock(&ref->proc->inner_lock), which leads to the use-after-free bug reported below. Let's fix this by cleaning up the failed reference on the spot instead of relying on the target to do so.
================================================================== BUG: KASAN: use-after-free in _raw_spin_lock+0xa8/0x150 Write of size 4 at addr ffff5ca207094238 by task kworker/1:0/590
CPU: 1 PID: 590 Comm: kworker/1:0 Not tainted 5.19.0-rc8 #10 Hardware name: linux,dummy-virt (DT) Workqueue: events binder_deferred_func Call trace: dump_backtrace.part.0+0x1d0/0x1e0 show_stack+0x18/0x70 dump_stack_lvl+0x68/0x84 print_report+0x2e4/0x61c kasan_report+0xa4/0x110 kasan_check_range+0xfc/0x1a4 __kasan_check_write+0x3c/0x50 _raw_spin_lock+0xa8/0x150 binder_deferred_func+0x5e0/0x9b0 process_one_work+0x38c/0x5f0 worker_thread+0x9c/0x694 kthread+0x188/0x190 ret_from_fork+0x10/0x20
실제 악용 사례 · 아직 확인된 사례가 없어요
CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.
패치 현황
어떤 버전이 위험하고, 몇 버전으로 올리면 되는지
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| linux_kernellinux | 최초 버전 | ≤ | 취약 | < | 4.14.293 | 4.14.293이상 |
| 4.15 | ≤ | 취약 | < | 4.19.258 | 4.19.258이상 | |
| 4.20 | ≤ | 취약 | < | 5.4.213 | 5.4.213이상 | |
| 5.5 | ≤ | 취약 | < | 5.10.142 | 5.10.142이상 | |
| 5.11 | ≤ | 취약 | < | 5.15.66 | 5.15.66이상 | |
| 5.16 | ≤ | 취약 | < | 5.19.8 | 5.19.8이상 | |
| 이 버전만 | 취약 | = | 6.0 rc1 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.0 rc2 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.0 rc3 | 벤더 공지 확인 | ||
NVD 분석 기준. 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.
할당 기관(CNA)이 적은 버전 9줄도 보기
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| LinuxLinux | 이 버전만 | 취약 | = | 4.14 | 벤더 공지 확인 | |
| 최초 버전 | ≤ | 영향 없음 | < | 4.14 | — | |
| 4.14.293 | ≤ | 영향 없음 | ≤ | 4.14.* | — | |
| 4.19.258 | ≤ | 영향 없음 | ≤ | 4.19.* | — | |
| 5.4.213 | ≤ | 영향 없음 | ≤ | 5.4.* | — | |
| 5.10.142 | ≤ | 영향 없음 | ≤ | 5.10.* | — | |
| 5.15.66 | ≤ | 영향 없음 | ≤ | 5.15.* | — | |
| 5.19.8 | ≤ | 영향 없음 | ≤ | 5.19.* | — | |
| 6.0 | ≤ | 영향 없음 | ≤ | 최신 버전 | — | |
참고 링크
NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.
패치7
- git.kernel.org/stable/c/06e5b43ca4dab06a92bf4c2f33766e6fb11b880a
- git.kernel.org/stable/c/229f47603dd306bc0eb1a831439adb8e48bb0eae
- git.kernel.org/stable/c/30d0901b307f27d36b2655fb3048cf31ee0e89c0
- git.kernel.org/stable/c/603a47f2ae56bf68288784d3c0a8c5b8e0a827ed
- git.kernel.org/stable/c/9629f2dfdb1dad294b468038ff8e161e94d0b609