🇰🇷 한글 설명
Linux 커널의 IIO(Industrial I/O) 서브시스템 내 gp2ap002 조도 센서 드라이버에서 발생하는 문제입니다. 이벤트 활성화/비활성화 속성에 동일한 값을 반복해서 쓸 경우, 런타임 전원 관리(PM) 참조 횟수가 불균형하게 계산되어 장치가 절전 모드로 진입하지 못하거나 참조 횟수 언더플로우 경고가 발생합니다.
💡 쉬운 설명
센서의 설정을 반복해서 변경할 때 시스템이 전원을 관리하는 과정에서 계산 오류가 발생하는 문제입니다. 이로 인해 기기가 잠들지 못하고 계속 전력을 소모하거나 시스템 경고가 나타날 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
iio: light: gp2ap002: Fix unbalanced runtime PM on repeated event writes
The IIO core does not filter duplicate writes to the event enable
attribute, so writing the same value twice invokes
write_event_config() twice. Enabling twice leaks a runtime PM
reference, preventing the device from ever suspending again;
disabling twice underflows the usage count and triggers a
"Runtime PM usage count underflow" warning.
Bail out early when the requested state matches the current state.
While at it, switch to pm_runtime_resume_and_get() so a failed
resume is propagated to userspace instead of silently marking the
event enabled.
📍 영향받는 시스템
Linux kernel (gp2ap002 driver component)
⚔️ 공격 벡터
로컬 사용자가 IIO 이벤트 설정 속성에 중복된 값을 반복적으로 쓰는 방식 (Local)
🛡️ 대응 방법
Linux 커널을 최신 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인하십시오.