🔍 CVE-2024-35986

7.0
CVSS Score
HIGH
2024-05-20
2026-08-04 11:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 tusb1210 드라이버에서 충전기 감지(charger-detect) 기능이 해제될 때 발생하는 크래시 취약점입니다. power_supply 장치가 등록 해제된 후에도 참조가 남아 있어 dangling reference가 발생하며, 이로 인해 tusb1210_get_online() 호출 시 시스템이 충돌할 수 있습니다.

💡 쉬운 설명

충전기 관련 소프트웨어가 종료되는 과정에서 메모리 관리 오류가 발생하여 시스템이 갑자기 멈추거나 꺼질 수 있는 문제입니다. 충전기를 연결하거나 해제하는 특정 상황에서 시스템 안정성에 영향을 줄 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: phy: ti: tusb1210: Resolve charger-det crash if charger psy is unregistered The power_supply frame-work is not really designed for there to be long living in kernel references to power_supply devices. Specifically unregistering a power_supply while some other code has a reference to it triggers a WARN in power_supply_unregister(): WARN_ON(atomic_dec_return(&psy->use_cnt)); Folllowed by the power_supply still getting removed and the backing data freed anyway, leaving the tusb1210 charger-detect code with a dangling reference, resulting in a crash the next time tusb1210_get_online() is called. Fix this by only holding the reference in tusb1210_get_online() freeing it at the end of the function. Note this still leaves a theoretical race window, but it avoids the issue when manually rmmod-ing the charger chip driver during development.

📍 영향받는 시스템

Linux kernel (tusb1210 driver 사용 시스템)

⚔️ 공격 벡터

로컬 환경에서 드라이버를 수동으로 제거하거나 특정 하드웨어 상태 변화를 유도하여 시스템 크래시 유발

🛡️ 대응 방법

Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트

🔧 검증 코드

출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인

Shell / Script
uname -r

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

💻 영향받는 소프트웨어

Linux Kernel