🔍 CVE-2025-38531

5.5
CVSS Score
MEDIUM
2025-08-16
2026-10-30 13:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 IIO 공통 st_sensors 모듈에서 장치 구조체(struct device)가 초기화되기 전에 사용되는 문제가 해결되었습니다. 이로 인해 regulator 활성화 실패 후 dev_err_probe() 호출 시 커널 패닉이 발생할 수 있었습니다.

💡 쉬운 설명

센서 드라이버가 장치 정보를 아직 준비되지 않은 상태에서 사용하여 오류 처리 중 시스템이 멈출 수 있었습니다. 이번 수정으로 초기화 순서가 올바르게 정리되어 이 문제가 해결되었습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: iio: common: st_sensors: Fix use of uninitialize device structs Throughout the various probe functions &indio_dev->dev is used before it is initialized. This caused a kernel panic in st_sensors_power_enable() when the call to devm_regulator_bulk_get_enable() fails and then calls dev_err_probe() with the uninitialized device. This seems to only cause a panic with dev_err_probe(), dev_err(), dev_warn() and dev_info() don't seem to cause a panic, but are fixed as well. The issue is reported and traced here: [1]

📍 영향받는 시스템

ST 센서(STMicroelectronics IIO 센서)를 사용하는 수정 전 Linux 커널 버전

⚔️ 공격 벡터

로컬에서 센서 프로브 실패를 유도할 수 있는 경우 커널 패닉(서비스 거부)이 발생할 수 있음

🛡️ 대응 방법

패치된 Linux 커널 버전으로 업데이트하거나 배포판의 보안 업데이트를 적용

🔧 검증 코드

출력된 커널 버전이 해당 CVE 수정이 포함된 패치 버전 이상인지 배포판 보안 공지와 대조하고, dmesg 결과에 st_sensors 관련 패닉 기록이 없는지 확인

Shell / Script
uname -r && (dmesg 2>/dev/null | grep -i st_sensors | tail -n 5)

📊 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