CVE-2025-22035
- 공개
- 2025년 4월 17일
- 수정
- 2026년 6월 17일
- 조회
- 0
- 상태
- Modified
개요
이 취약점이 무엇인지
In the Linux kernel, the following vulnerability has been resolved:
tracing: Fix use-after-free in print_graph_function_flags during tracer switching
Kairui reported a UAF issue in print_graph_function_flags() during ftrace stress testing [1]. This issue can be reproduced if puting a 'mdelay(10)' after 'mutex_unlock(&trace_types_lock)' in s_start(), and executing the following script:
$ echo function_graph > current_tracer $ cat trace > /dev/null & $ sleep 5 # Ensure the 'cat' reaches the 'mdelay(10)' point $ echo timerlat > current_tracer
The root cause lies in the two calls to print_graph_function_flags within print_trace_line during each s_show():
* One through 'iter->trace->print_line()'; * Another through 'event->funcs->trace()', which is hidden in print_trace_fmt() before print_trace_line returns.
Tracer switching only updates the former, while the latter continues to use the print_line function of the old tracer, which in the script above is print_graph_function_flags.
Moreover, when switching from the 'function_graph' tracer to the 'timerlat' tracer, s_start only calls graph_trace_close of the 'function_graph' tracer to free 'iter->private', but does not set it to NULL. This provides an opportunity for 'event->funcs->trace()' to use an invalid 'iter->private'.
To fix this issue, set 'iter->private' to NULL immediately after freeing it in graph_trace_close(), ensuring that an invalid pointer is not passed to other tracers. Additionally, clean up the unnecessary 'iter->private = NULL' during each 'cat trace' when using wakeup and irqsoff tracers.
[1] https://lore.kernel.org/all/[email protected]/
실제 악용 사례 · 아직 확인된 사례가 없어요
CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.
패치 현황
어떤 버전이 위험하고, 몇 버전으로 올리면 되는지
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| linux_kernellinux | 4.14.324 | ≤ | 취약 | < | 4.15 | 4.15이상 |
| 4.19.293 | ≤ | 취약 | < | 4.20 | 4.20이상 | |
| 5.4.255 | ≤ | 취약 | < | 5.4.292 | 5.4.292이상 | |
| 5.10.193 | ≤ | 취약 | < | 5.10.236 | 5.10.236이상 | |
| 5.15.129 | ≤ | 취약 | < | 5.15.180 | 5.15.180이상 | |
| 6.1.50 | ≤ | 취약 | < | 6.1.134 | 6.1.134이상 | |
| 6.4.13 | ≤ | 취약 | < | 6.6.87 | 6.6.87이상 | |
| 6.7 | ≤ | 취약 | < | 6.12.23 | 6.12.23이상 | |
| 6.13 | ≤ | 취약 | < | 6.13.11 | 6.13.11이상 | |
| 6.14 | ≤ | 취약 | < | 6.14.2 | 6.14.2이상 | |
NVD 분석 기준. 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.
할당 기관(CNA)이 적은 버전 18줄도 보기
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| LinuxLinux | 5.4.255 | ≤ | 취약 | < | 5.4.292 | 5.4.292이상 |
| 5.10.193 | ≤ | 취약 | < | 5.10.236 | 5.10.236이상 | |
| 5.15.129 | ≤ | 취약 | < | 5.15.180 | 5.15.180이상 | |
| 6.1.50 | ≤ | 취약 | < | 6.1.134 | 6.1.134이상 | |
| 4.14.324 | ≤ | 취약 | < | 4.15 | 4.15이상 | |
| 4.19.293 | ≤ | 취약 | < | 4.20 | 4.20이상 | |
| 6.4.13 | ≤ | 취약 | < | 6.5 | 6.5이상 | |
| 이 버전만 | 취약 | = | 6.5 | 벤더 공지 확인 | ||
| 최초 버전 | ≤ | 영향 없음 | < | 6.5 | — | |
| 5.4.292 | ≤ | 영향 없음 | ≤ | 5.4.* | — | |
| 5.10.236 | ≤ | 영향 없음 | ≤ | 5.10.* | — | |
| 5.15.180 | ≤ | 영향 없음 | ≤ | 5.15.* | — | |
| 6.1.134 | ≤ | 영향 없음 | ≤ | 6.1.* | — | |
| 6.6.87 | ≤ | 영향 없음 | ≤ | 6.6.* | — | |
| 6.12.23 | ≤ | 영향 없음 | ≤ | 6.12.* | — | |
| 6.13.11 | ≤ | 영향 없음 | ≤ | 6.13.* | — | |
| 6.14.2 | ≤ | 영향 없음 | ≤ | 6.14.* | — | |
| 6.15 | ≤ | 영향 없음 | ≤ | 최신 버전 | — | |
참고 링크
NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.
패치9
- git.kernel.org/stable/c/099ef3385800828b74933a96c117574637c3fb3a
- git.kernel.org/stable/c/42561fe62c3628ea3bc9623f64f047605e98857f
- git.kernel.org/stable/c/70be951bc01e4a0e10d443f3510bb17426f257fb
- git.kernel.org/stable/c/7f81f27b1093e4895e87b74143c59c055c3b1906
- git.kernel.org/stable/c/81a85b12132c8ffe98f5ddbdc185481790aeaa1b