🔍 CVE-2025-38717

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

🇰🇷 한글 설명

리눅스 커널의 KCM(Kernel Connection Multiplexor) 모듈에서 kcm_unattach()와 kcm_release()가 동시에 실행될 때 발생하는 레이스 컨디션 취약점입니다. kcm_unattach() 함수가 작업 큐를 호출하기 전 특정 플래그를 확인하지 않아, KCM 객체가 해제되기 직전에 작업이 다시 큐에 추가될 수 있습니다.

💡 쉬운 설명

컴퓨터의 통신을 관리하는 핵심 프로그램에서 두 가지 작업이 동시에 일어날 때 순서가 꼬이는 문제가 발견되었습니다. 이로 인해 이미 삭제되어야 할 데이터가 다시 실행되면서 시스템 오류나 불안정성을 유발할 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: net: kcm: Fix race condition in kcm_unattach() syzbot found a race condition when kcm_unattach(psock) and kcm_release(kcm) are executed at the same time. kcm_unattach() is missing a check of the flag kcm->tx_stopped before calling queue_work(). If the kcm has a reserved psock, kcm_unattach() might get executed between cancel_work_sync() and unreserve_psock() in kcm_release(), requeuing kcm->tx_work right before kcm gets freed in kcm_done(). Remove kcm->tx_stopped and replace it by the less error-prone disable_work_sync().

📍 영향받는 시스템

KCM 모듈을 사용하는 리눅스 커널 버전

⚔️ 공격 벡터

로컬 시스템에서 특정 네트워크 연결 해제 및 해제 과정을 정밀하게 조작하여 레이스 컨디션 유도

🛡️ 대응 방법

kcm->tx_stopped 플래그를 제거하고 보다 안전한 disable_work_sync()를 사용하도록 업데이트된 최신 리눅스 커널로 업데이트

🔧 검증 코드

출력된 커널 버전이 해당 취약점이 패치된 최신 보안 업데이트 버전인지 확인

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