🔍 CVE-2025-38132

5.5
CVSS Score
MEDIUM
2025-07-03
2026-10-30 13:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 CoreSight 구성 요소에서 cscfg_csdev_lock을 유지하지 않은 채 cscfg를 제거할 때 발생하는 레이스 컨디션 취약점입니다. 이로 인해 구성 목록을 반복하는 과정에서 항목이 삭제되어 시스템 불안정이나 충돌이 발생할 수 있습니다.

💡 쉬운 설명

두 가지 작업이 동시에 일어날 때 데이터가 꼬이는 현상이 발생할 수 있는 보안 약점입니다. 설정 정보를 읽는 도중에 설정이 삭제되면 컴퓨터 시스템에 오류가 생길 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: coresight: holding cscfg_csdev_lock while removing cscfg from csdev There'll be possible race scenario for coresight config: CPU0 CPU1 (perf enable) load module cscfg_load_config_sets() activate config. // sysfs (sys_active_cnt == 1) ... cscfg_csdev_enable_active_config() lock(csdev->cscfg_csdev_lock) deactivate config // sysfs (sys_activec_cnt == 0) cscfg_unload_config_sets() <iterating config_csdev_list> cscfg_remove_owned_csdev_configs() // here load config activate by CPU1 unlock(csdev->cscfg_csdev_lock) iterating config_csdev_list could be raced with config_csdev_list's entry delete. To resolve this race , hold csdev->cscfg_csdev_lock() while cscfg_remove_owned_csdev_configs()

📍 영향받는 시스템

CoreSight 기능을 사용하는 Linux 커널 버전

⚔️ 공격 벡터

로컬 공격자가 특정 시스템 호출(sysfs)을 통해 동시성 레이스 컨디션을 유도하여 커널 오류 발생

🛡️ 대응 방법

CoreSight 관련 패치가 적용된 최신 Linux 커널로 업데이트

🔧 검증 코드

출력된 커널 버전이 취약점이 해결된 최신 패치 버전인지 확인합니다.

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel