🇰🇷 한글 설명
Linux 커널의 kxsd9 가속도계 드라이버에서 write_raw() 함수 호출 시 오류가 발생하면 전원 관리(Runtime PM) 참조 카운터가 해제되지 않는 문제가 있습니다. 이로 인해 참조 카운터가 누수되어 장치가 자동 절전 모드로 전환되지 못하는 현상이 발생합니다.
💡 쉬운 설명
가속도 센서에 잘못된 명령을 내리면 시스템이 센서를 계속 켜두게 되어 전력이 낭비되는 문제입니다. 결과적으로 장치가 절전 모드로 들어가지 못하게 됩니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
iio: accel: kxsd9: fix runtime PM imbalance on write_raw() error
kxsd9_write_raw() takes a runtime PM reference with pm_runtime_get_sync()
but returns -EINVAL directly when a scale with a non-zero integer part is
requested, skipping the matching pm_runtime_put_autosuspend(). This leaks
a runtime PM usage-counter reference on every such write, after which the
device can no longer autosuspend.
Set the error code and fall through to the existing put instead of
returning early.
📍 영향받는 시스템
Linux kernel (kxsd9 accel driver 포함 버전)
⚔️ 공격 벡터
잘못된 스케일 값을 포함한 쓰기 요청을 통해 전원 관리 참조 카운터 누수 유도
🛡️ 대응 방법
Linux 커널을 최신 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인