CVE-2025-39813
- 공개
- 2025년 9월 16일
- 수정
- 2026년 11월 6일
- 조회
- 0
- 상태
- Modified
개요
이 취약점이 무엇인지
In the Linux kernel, the following vulnerability has been resolved:
ftrace: Fix potential warning in trace_printk_seq during ftrace_dump
When calling ftrace_dump_one() concurrently with reading trace_pipe, a WARN_ON_ONCE() in trace_printk_seq() can be triggered due to a race condition.
The issue occurs because:
CPU0 (ftrace_dump) CPU1 (reader) echo z > /proc/sysrq-trigger
!trace_empty(&iter) trace_iterator_reset(&iter) <- len = size = 0 cat /sys/kernel/tracing/trace_pipe trace_find_next_entry_inc(&iter) __find_next_entry ring_buffer_empty_cpu <- all empty return NULL
trace_printk_seq(&iter.seq) WARN_ON_ONCE(s->seq.len >= s->seq.size)
In the context between trace_empty() and trace_find_next_entry_inc() during ftrace_dump, the ring buffer data was consumed by other readers. This caused trace_find_next_entry_inc to return NULL, failing to populate `iter.seq`. At this point, due to the prior trace_iterator_reset, both `iter.seq.len` and `iter.seq.size` were set to 0. Since they are equal, the WARN_ON_ONCE condition is triggered.
Move the trace_printk_seq() into the if block that checks to make sure the return value of trace_find_next_entry_inc() is non-NULL in ftrace_dump_one(), ensuring the 'iter.seq' is properly populated before subsequent operations.
실제 악용 사례 · 아직 확인된 사례가 없어요
CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.
패치 현황
어떤 버전이 위험하고, 몇 버전으로 올리면 되는지
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| debian_linuxdebian | 이 버전만 | 취약 | = | 11.0 | 벤더 공지 확인 | |
| linux_kernellinux | 2.6.28 | ≤ | 취약 | < | 5.4.298 | 5.4.298이상 |
| 5.5 | ≤ | 취약 | < | 5.10.242 | 5.10.242이상 | |
| 5.11 | ≤ | 취약 | < | 5.15.191 | 5.15.191이상 | |
| 5.16 | ≤ | 취약 | < | 6.1.150 | 6.1.150이상 | |
| 6.2 | ≤ | 취약 | < | 6.6.104 | 6.6.104이상 | |
| 6.7 | ≤ | 취약 | < | 6.12.45 | 6.12.45이상 | |
| 6.13 | ≤ | 취약 | < | 6.16.5 | 6.16.5이상 | |
| 이 버전만 | 취약 | = | 6.17 rc1 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.17 rc2 | 벤더 공지 확인 | ||
NVD 분석 기준. 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.
할당 기관(CNA)이 적은 버전 10줄도 보기
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| LinuxLinux | 이 버전만 | 취약 | = | 2.6.28 | 벤더 공지 확인 | |
| 최초 버전 | ≤ | 영향 없음 | < | 2.6.28 | — | |
| 5.4.298 | ≤ | 영향 없음 | ≤ | 5.4.* | — | |
| 5.10.242 | ≤ | 영향 없음 | ≤ | 5.10.* | — | |
| 5.15.191 | ≤ | 영향 없음 | ≤ | 5.15.* | — | |
| 6.1.150 | ≤ | 영향 없음 | ≤ | 6.1.* | — | |
| 6.6.104 | ≤ | 영향 없음 | ≤ | 6.6.* | — | |
| 6.12.45 | ≤ | 영향 없음 | ≤ | 6.12.* | — | |
| 6.16.5 | ≤ | 영향 없음 | ≤ | 6.16.* | — | |
| 6.17 | ≤ | 영향 없음 | ≤ | 최신 버전 | — | |
참고 링크
NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.
패치8
- git.kernel.org/stable/c/28c8fb7ae2ad27d81c8de3c4fe608c509f6a18aa
- git.kernel.org/stable/c/4013aef2ced9b756a410f50d12df9ebe6a883e4a
- git.kernel.org/stable/c/5ab0ec206deb99eb3baf8f1d7602aeaa91dbcc85
- git.kernel.org/stable/c/a6f0f8873cc30fd4543b09adf03f7f51d293f0e6
- git.kernel.org/stable/c/ced94e137e6cd5e79c65564841d3b7695d0f5fa3