🇰🇷 한글 설명
Linux 커널의 renesas phy-rcar-gen3-usb2 드라이버에서 VBUS 레귤레이터가 비활성화된 상태일 때 devm 해제 동작이 올바르게 등록되지 않는 취약점이 해결되었습니다. 이로 인해 장치 제거 시 레귤레이터 해제 과정에서 enable_count 불일치로 인한 WARN_ON 경고가 발생할 수 있었습니다. 수정 사항은 레귤레이터의 실제 활성화 상태에 따라 devm 해제 동작을 항상 등록하도록 변경하는 것입니다.
💡 쉬운 설명
컴퓨터 부품을 제거할 때 전원 관리 설정이 꼬여서 시스템에 경고 메시지가 뜨는 문제가 있었습니다. 이제 부품을 뺄 때 전원 상태를 정확히 확인하여 오류 없이 깔끔하게 정리하도록 고쳐졌습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
phy: renesas: phy-rcar-gen3-usb2: Fix devm action registration for disabled VBUS regulator
devm_regulator_get_exclusive() initialises the regulator with
enable_count = 1, requiring the consumer to disable it before release.
The devm disable action was previously only registered when the caller
explicitly requested enable, so when the regulator was left in its initial
enabled state without an explicit enable call, the cleanup path skipped
decrementing enable_count, triggering a WARN_ON during regulator
release on device removal.
Fix this by always registering the devm disable action based on the actual
enabled state via regulator_is_enabled(), regardless of whether the
caller requested an explicit enable. This covers both the explicitly
enabled case and the initial state set by devm_regulator_get_exclusive().
📍 영향받는 시스템
Linux kernel (Renesas R-Car Gen3 USB2 PHY driver 관련 시스템)
⚔️ 공격 벡터
로컬 시스템에서 장치 제거 시 커널 경고(WARN_ON)를 유발할 수 있으나, 직접적인 원격 공격 벡터는 낮음
🛡️ 대응 방법
Linux 커널을 최신 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인하십시오.