🇰🇷 한글 설명
Linux 커널의 BPF 서브시스템에서 rcu_tasks_trace와 event_mutex 사이의 교착 상태(deadlock)가 발견되었습니다. perf_kprobe_destroy 경로에서 event_mutex를 잡은 상태로 synchronize_rcu_tasks_trace를 호출하고, 반대로 BPF 프로그램 로드 경로에서는 trace_set_clr_event가 event_mutex를 획득하여 서로 대기하는 문제가 있었습니다. 이를 해결하기 위해 trace_set_clr_event 호출을 워크큐로 위임하도록 수정되었습니다.
💡 쉬운 설명
컴퓨터의 핵심 부분인 커널 안에서 두 작업이 서로의 자물쇠를 기다리며 멈춰버릴 수 있는 문제입니다. 이로 인해 시스템이 응답하지 않게 되거나 멈출 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
bpf: Fix deadlock between rcu_tasks_trace and event_mutex.
Fix the following deadlock:
CPU A
_free_event()
perf_kprobe_destroy()
mutex_lock(&event_mutex)
perf_trace_event_unreg()
synchronize_rcu_tasks_trace()
There are several paths where _free_event() grabs event_mutex
and calls sync_rcu_tasks_trace. Above is one such case.
CPU B
bpf_prog_test_run_syscall()
rcu_read_lock_trace()
bpf_prog_run_pin_on_cpu()
bpf_prog_load()
bpf_tracing_func_proto()
trace_set_clr_event()
mutex_lock(&event_mutex)
Delegate trace_set_clr_event() to workqueue to avoid
such lock dependency.
📍 영향받는 시스템
패치 이전의 Linux 커널 (BPF 및 perf kprobe 기능을 사용하는 버전, 정확한 범위는 커널 배포판 보안 공지 확인 필요)
⚔️ 공격 벡터
BPF 시스템 콜을 호출할 수 있는 로컬 사용자가 특정 순서로 작업을 유발해 커널 교착 상태(서비스 거부)를 일으킬 수 있음
🛡️ 대응 방법
배포판 벤더가 제공하는 최신 Linux 커널 보안 업데이트를 적용하고 재부팅
🔧 검증 코드
출력된 커널 버전을 배포판의 CVE-2025-37884 수정 커널 버전 및 보안 공지와 비교하여, 같거나 이후 패치 버전이면 수정된 것입니다.