🔍 CVE-2026-98645

0.0
CVSS Score
UNKNOWN
2026-10-18
2026-10-19 10:19
✅ 완료

🇰🇷 한글 설명

Linux 커널의 winwing HID 드라이버에서 force feedback 해제 과정 중 Use-After-Free 및 Double Free 취약점이 발견되었습니다. devm_kzalloc로 할당된 메모리를 kfree로 잘못 해제하여 메모리 손상 및 시스템 불안정을 초래할 수 있습니다.

💡 쉬운 설명

장치를 제거하거나 시스템을 잠시 멈출 때, 이미 삭제된 메모리 영역을 다시 삭제하려고 시도하여 컴퓨터 시스템에 오류가 발생하는 문제입니다. 이로 인해 시스템이 멈추거나 예상치 못한 동작을 할 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: HID: winwing: fix use-after-free in force feedback teardown winwing_init_ff() passes the driver's private data, allocated with devm_kzalloc() in winwing_probe(), as the effect context to input_ff_create_memless(). The memoryless force-feedback core takes ownership of that pointer and frees it with kfree() from input_ff_destroy() (ml_ff_destroy()) when the input device is destroyed. Freeing a devm-managed allocation with kfree() is an invalid free, and the same object is then released again by devres when the HID device is torn down, a double free. As the allocation also embeds the LED class devices, their timers and work item live on freed memory and the slab gets corrupted. This triggers on unbind, rmmod, hot-unplug and on system suspend, where the firmware cache walks the now-corrupt devres list. KASAN reports: BUG: KASAN: invalid-free in input_ff_destroy Allocated by task N: winwing_probe Pass NULL as the memless context instead and fetch the driver data from the input device in winwing_play_effect(): the HID core already stores the hid_device as the input device's drvdata. The force-feedback core then owns nothing that it must not free.

📍 영향받는 시스템

Linux kernel (winwing HID driver 포함 버전)

⚔️ 공격 벡터

장치의 핫플러그(Hot-unplug), 드라이버 언바인드(Unbind), 또는 시스템 절전 모드 진입 시 발생

🛡️ 대응 방법

winwing 드라이버의 force feedback 컨텍스트 전달 방식을 수정하여 메모리 관리 오류를 해결한 최신 커널로 업데이트

🔧 검증 코드

출력된 커널 버전을 확인하여 해당 취약점이 패치된 최신 버전인지 확인합니다.

Shell / Script
uname -r

💻 영향받는 소프트웨어

Linux Kernel