🇰🇷 한글 설명
Linux 커널 BH1780 조도 센서 드라이버에서 PM runtime 참조 카운트 누수 발생. pm_runtime_get_sync() 이후 읽기 작업 실패 시 pm_runtime_put_autosuspend()가 실행되지 않아 전력 관리 리소스가 해제되지 않습니다.
💡 쉬운 설명
센서 드라이버의 전력 관리 코드에서 리소스 정리가 제대로 되지 않는 버그입니다. 이로 인해 배터리가 불필요하게 소모될 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
iio: light: bh1780: fix PM runtime leak on error path
Move pm_runtime_put_autosuspend() before the error check to ensure
the PM runtime reference count is always decremented after
pm_runtime_get_sync(), regardless of whether the read operation
succeeds or fails.
📍 영향받는 시스템
BH1780 조도 센서를 탑재한 리눅스 임베디드 시스템 및 모바일 장치
⚔️ 공격 벡터
로컬 사용자가 센서 읽기 작업을 반복적으로 실패시켜 리소스 누수 누적
🛡️ 대응 방법
Linux kernel 최신 버전으로 업데이트하여 PM runtime 처리 패치 적용
🔧 검증 코드
bh1780 드라이버 로드 여부 확인하고 조도 센서 장치 존재 확인
lsmod | grep bh1780 && cat /sys/class/light/*/name 2>/dev/null | head -1