🔍 CVE-2025-40130

0.0
CVSS Score
UNKNOWN
2025-11-12
2026-10-21 13:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 SCSI UFS 코어에서 CPU 지연 시간 PM QoS 요청 처리 중 데이터 경합(Data Race) 취약점이 발견되었습니다. 기존의 pm_qos_enabled 플래그 방식은 동시 접근을 방지하기에 불충분하여 리스트 손상 및 Use-After-Free 문제를 유발할 수 있습니다. 이를 해결하기 위해 PM QoS 작업을 직렬화하는 전용 뮤텍스가 도입되었습니다.

💡 쉬운 설명

컴퓨터의 전력 관리 기능을 처리하는 과정에서 두 가지 작업이 동시에 일어나 충돌이 발생하는 문제입니다. 이로 인해 시스템 데이터가 깨지거나 프로그램이 갑자기 종료될 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: scsi: ufs: core: Fix data race in CPU latency PM QoS request handling The cpu_latency_qos_add/remove/update_request interfaces lack internal synchronization by design, requiring the caller to ensure thread safety. The current implementation relies on the 'pm_qos_enabled' flag, which is insufficient to prevent concurrent access and cannot serve as a proper synchronization mechanism. This has led to data races and list corruption issues. A typical race condition call trace is: [Thread A] ufshcd_pm_qos_exit() --> cpu_latency_qos_remove_request() --> cpu_latency_qos_apply(); --> pm_qos_update_target() --> plist_del <--(1) delete plist node --> memset(req, 0, sizeof(*req)); --> hba->pm_qos_enabled = false; [Thread B] ufshcd_devfreq_target --> ufshcd_devfreq_scale --> ufshcd_scale_clks --> ufshcd_pm_qos_update <--(2) pm_qos_enabled is true --> cpu_latency_qos_update_request --> pm_qos_update_target --> plist_del <--(3) plist node use-after-free Introduces a dedicated mutex to serialize PM QoS operations, preventing data races and ensuring safe access to PM QoS resources, including sysfs interface reads.

📍 영향받는 시스템

Linux kernel (scsi: ufs: core 구성 요소 포함 버전)

⚔️ 공격 벡터

로컬 시스템에서 특정 타이밍에 PM QoS 관련 요청을 동시에 발생시켜 메모리 손상 유도

🛡️ 대응 방법

PM QoS 작업에 뮤텍스 동기화가 적용된 최신 Linux 커널로 업데이트

🔧 검증 코드

출력된 커널 버전을 확인하여 해당 패치가 적용된 최신 버전인지 확인합니다.

Shell / Script
uname -r

💻 영향받는 소프트웨어

Linux Kernel