🔍 CVE-2025-71111

4.7
CVSS Score
MEDIUM
2026-01-14
2026-10-19 19:17
✅ 완료

🇰🇷 한글 설명

Linux 커널의 hwmon(w83791d) 드라이버에서 FAN_FROM_REG 매크로가 인자를 여러 번 평가하여 발생하는 TOCTOU(Time-of-Check to Time-of-Use) 레이스 컨디션 취약점입니다. 이로 인해 공유 데이터가 변경될 경우 0으로 나누기 오류(divide-by-zero)가 발생할 수 있습니다.

💡 쉬운 설명

하드웨어 정보를 읽어오는 과정에서 데이터가 중간에 바뀌어 계산 오류가 발생하는 문제입니다. 이 오류로 인해 시스템이 갑자기 멈추거나 비정상적으로 동작할 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: hwmon: (w83791d) Convert macros to functions to avoid TOCTOU The macro FAN_FROM_REG evaluates its arguments multiple times. When used in lockless contexts involving shared driver data, this leads to Time-of-Check to Time-of-Use (TOCTOU) race conditions, potentially causing divide-by-zero errors. Convert the macro to a static function. This guarantees that arguments are evaluated only once (pass-by-value), preventing the race conditions. Additionally, in store_fan_div, move the calculation of the minimum limit inside the update lock. This ensures that the read-modify-write sequence operates on consistent data. Adhere to the principle of minimal changes by only converting macros that evaluate arguments multiple times and are used in lockless contexts.

📍 영향받는 시스템

Linux kernel (hwmon w83791d driver 사용 시스템)

⚔️ 공격 벡터

공유 드라이버 데이터에 접근하는 멀티스레드 환경에서 타이밍 공격을 통한 레이스 컨디션 유발

🛡️ 대응 방법

Linux 커널을 최신 패치가 적용된 버전으로 업데이트하거나, 해당 매크로를 정적 함수로 변경한 패치를 적용해야 합니다.

🔧 검증 코드

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

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel