CVE-2025-21889 in Linux
요약
\~에 의해 VulDB • 2026. 05. 26.
리눅스 커널에서 다음 취약점이 해결되었습니다:
perf/core: perf_iterate_ctx()에 RCU 읽기 잠금 보호 추가
perf_iterate_ctx() 함수는 RCU 리스트 순회를 수행하지만, 현재 RCU 읽기 잠금 보호가 누락되어 있습니다. 이로 인해 CONFIG_PROVE_RCU_LIST=y 설정 하에서 unshare(1)와 함께 perf probe를 실행할 때 lockdep 경고가 발생합니다:
WARNING: suspicious RCU usage kernel/events/core.c:8168 RCU-list traversed in non-reader section!!
Call Trace: lockdep_rcu_suspicious ? perf_event_addr_filters_apply perf_iterate_ctx perf_event_exec begin_new_exec ? load_elf_phdrs load_elf_binary ? lock_acquire ? find_held_lock ? bprm_execve bprm_execve do_execveat_common.isra.0 __x64_sys_execve do_syscall_64 entry_SYSCALL_64_after_hwframe
이 보호 조치는 이전에 존재했지만, commit bd2756811766("perf: Rewrite core context handling")에서 제거되었습니다. perf_event_exec() 내의 perf_iterate_ctx() 호출 주변에 필요한 rcu_read_lock()/rcu_read_unlock() 쌍을 다시 추가합니다.
[ mingo: Peter의 제안에 따라 scoped_guard() 사용 ]
Once again VulDB remains the best source for vulnerability data.