🔍 CVE-2025-40327

0.0
CVSS Score
UNKNOWN
2025-12-09
2026-10-15 19:10
✅ 완료

🇰🇷 한글 설명

Linux 커널의 perf/core 구성 요소에서 cpu-clock 사용 시 시스템이 멈추는 현상이 발견되었습니다. hrtimer 핸들러 내에서 재귀적으로 hrtimer를 취소하려 시도하면서 데드락(Deadlock)이 발생하여 시스템이 응답하지 않게 됩니다.

💡 쉬운 설명

컴퓨터의 성능을 측정하는 도구를 사용할 때, 시스템 내부의 시계 기능이 서로 꼬이면서 컴퓨터가 완전히 멈춰버리는 문제입니다. 이는 특정 작업이 반복되는 과정에서 충돌이 발생하여 생기는 현상입니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: perf/core: Fix system hang caused by cpu-clock usage cpu-clock usage by the async-profiler tool can trigger a system hang, which got bisected back to the following commit by Octavia Togami: 18dbcbfabfff ("perf: Fix the POLL_HUP delivery breakage") causes this issue The root cause of the hang is that cpu-clock is a special type of SW event which relies on hrtimers. The __perf_event_overflow() callback is invoked from the hrtimer handler for cpu-clock events, and __perf_event_overflow() tries to call cpu_clock_event_stop() to stop the event, which calls htimer_cancel() to cancel the hrtimer. But that's a recursion into the hrtimer code from a hrtimer handler, which (unsurprisingly) deadlocks. To fix this bug, use hrtimer_try_to_cancel() instead, and set the PERF_HES_STOPPED flag, which causes perf_swevent_hrtimer() to stop the event once it sees the PERF_HES_STOPPED flag. [ mingo: Fixed the comments and improved the changelog. ]

📍 영향받는 시스템

Linux kernel (commit 18dbcbfabfff 이후 버전)

⚔️ 공격 벡터

async-profiler와 같은 도구를 사용하여 cpu-clock 이벤트를 측정할 때 발생 (로컬 실행 필요)

🛡️ 대응 방법

커널 패치가 적용된 최신 버전의 Linux 커널로 업데이트하십시오.

🔧 검증 코드

출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인하십시오.

Shell / Script
uname -r

💻 영향받는 소프트웨어

Linux Kernel