🇰🇷 한글 설명
Linux 커널의 bq25890 전원 공급 장치 드라이버에서 참조 누수(reference leak) 취약점이 발견되었습니다. bq25890_fw_probe() 함수가 보조 충전기의 참조를 획득한 후, 프로브 실패나 드라이버 분리 시 이를 적절히 해제하지 않아 발생합니다. 이를 해결하기 위해 장치 관리형 정리(device-managed cleanup) 작업을 등록하여 참조가 자동으로 해제되도록 수정되었습니다.
💡 쉬운 설명
배터리 충전 관련 소프트웨어에서 사용이 끝난 자원을 제대로 반환하지 않는 문제가 있었습니다. 이 문제가 지속되면 시스템 자원이 낭비되어 성능 저하나 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
power: supply: bq25890: Fix power_supply reference leak
bq25890_fw_probe() acquires a reference to a secondary charger using
power_supply_get_by_name(), but the reference is not released on later
probe failures or on driver detach.
In particular, failures after bq25890_fw_probe() returns successfully,
such as a failure in bq25890_hw_init(), also leak the reference.
Register a device-managed cleanup action immediately after acquiring
the secondary charger. This releases the reference on all subsequent
probe failures and on driver detach.
Found by code review.
📍 영향받는 시스템
bq25890 드라이버를 사용하는 Linux 커널 기반 시스템
⚔️ 공격 벡터
직접적인 공격은 어려우나, 지속적인 드라이버 로드/언로드 반복 시 시스템 자원 고갈 유발 가능
🛡️ 대응 방법
bq25890 관련 패치가 적용된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인