🔍 CVE-2025-39977

7.8
CVSS Score
HIGH
2025-10-15
2026-10-19 21:10
✅ 완료

🇰🇷 한글 설명

리눅스 커널의 futex 메커니즘에서 requeue-PI 동작 중 레이스 컨디션으로 인한 Use-After-Free 취약점이 발견되었습니다. 특정 상황에서 프로세스가 깨어날 때 이미 해제된 메모리 영역을 참조할 수 있는 문제가 있습니다.

💡 쉬운 설명

컴퓨터가 여러 작업을 동시에 처리할 때, 이미 종료된 작업의 정보를 다시 사용하려고 시도하면서 발생하는 오류입니다. 이로 인해 시스템이 불안정해지거나 보안 문제가 생길 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: futex: Prevent use-after-free during requeue-PI syzbot managed to trigger the following race: T1 T2 futex_wait_requeue_pi() futex_do_wait() schedule() futex_requeue() futex_proxy_trylock_atomic() futex_requeue_pi_prepare() requeue_pi_wake_futex() futex_requeue_pi_complete() /* preempt */ * timeout/ signal wakes T1 * futex_requeue_pi_wakeup_sync() // Q_REQUEUE_PI_LOCKED futex_hash_put() // back to userland, on stack futex_q is garbage /* back */ wake_up_state(q->task, TASK_NORMAL); In this scenario futex_wait_requeue_pi() is able to leave without using futex_q::lock_ptr for synchronization. This can be prevented by reading futex_q::task before updating the futex_q::requeue_state. A reference on the task_struct is not needed because requeue_pi_wake_futex() is invoked with a spinlock_t held which implies a RCU read section. Even if T1 terminates immediately after, the task_struct will remain valid during T2's wake_up_state(). A READ_ONCE on futex_q::task before futex_requeue_pi_complete() is enough because it ensures that the variable is read before the state is updated. Read futex_q::task before updating the requeue state, use it for the following wakeup.

📍 영향받는 시스템

Linux Kernel (futex subsystem)

⚔️ 공격 벡터

특정 타이밍에 신호(signal)나 타임아웃을 유도하여 커널 내 레이스 컨디션을 발생시키는 방식

🛡️ 대응 방법

리눅스 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.

🔧 검증 코드

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

Shell / Script
uname -r

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

💻 영향받는 소프트웨어

Linux Kernel