🔍 CVE-2025-40024

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

🇰🇷 한글 설명

Linux 커널의 vhost 구성 요소에서 vhost_task 생성 시 task_struct에 대한 참조를 적절히 유지하지 않아 발생하는 취약점입니다. 작업이 신호(signal)로 인해 조기에 종료될 경우, vhost_task_wake() 함수가 이미 해제된 task_struct에 접근하여 시스템 오류를 유발할 수 있습니다.

💡 쉬운 설명

컴퓨터 내부에서 작업을 처리하는 도중, 작업이 갑자기 종료되었음에도 불구하고 시스템이 종료된 작업의 정보를 계속 사용하려고 시도하여 문제가 발생합니다. 이로 인해 시스템이 충돌하거나 예기치 않은 동작을 할 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: vhost: Take a reference on the task in struct vhost_task. vhost_task_create() creates a task and keeps a reference to its task_struct. That task may exit early via a signal and its task_struct will be released. A pending vhost_task_wake() will then attempt to wake the task and access a task_struct which is no longer there. Acquire a reference on the task_struct while creating the thread and release the reference while the struct vhost_task itself is removed. If the task exits early due to a signal, then the vhost_task_wake() will still access a valid task_struct. The wake is safe and will be skipped in this case.

📍 영향받는 시스템

Linux Kernel (vhost 모듈을 사용하는 시스템)

⚔️ 공격 벡터

로컬 공격자가 특정 신호를 보내 vhost 작업을 조기에 종료시킴으로써 Use-After-Free 유발 가능

🛡️ 대응 방법

vhost_task 생성 시 task_struct 참조를 획득하고 제거 시 해제하도록 커널 패치 적용

🔧 검증 코드

현재 실행 중인 커널 버전을 확인하여 해당 취약점이 해결된 패치 버전인지 확인합니다.

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