CVE 목록
High7.8유형: 운영체제

CVE-2025-22035

공개
2025년 4월 17일
수정
2026년 6월 17일
조회
0
상태
Modified
관련 내용 구글 검색하기한국어English
번역 대상이 아니에요. 원문(영어)만 제공돼요.
7.8High

개요

이 취약점이 무엇인지

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_kernellinux4.14.324≤취약<4.154.15이상
4.19.293≤취약<4.204.20이상
5.4.255≤취약<5.4.2925.4.292이상
5.10.193≤취약<5.10.2365.10.236이상
5.15.129≤취약<5.15.1805.15.180이상
6.1.50≤취약<6.1.1346.1.134이상
6.4.13≤취약<6.6.876.6.87이상
6.7≤취약<6.12.236.12.23이상
6.13≤취약<6.13.116.13.11이상
6.14≤취약<6.14.26.14.2이상

NVD 분석 기준. 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.

할당 기관(CNA)이 적은 버전 18줄도 보기
제품시작끝이 버전 이상으로
LinuxLinux5.4.255≤취약<5.4.2925.4.292이상
5.10.193≤취약<5.10.2365.10.236이상
5.15.129≤취약<5.15.1805.15.180이상
6.1.50≤취약<6.1.1346.1.134이상
4.14.324≤취약<4.154.15이상
4.19.293≤취약<4.204.20이상
6.4.13≤취약<6.56.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에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.