🔍 CVE-2024-36962

7.5
CVSS Score
HIGH
2024-06-03
2026-08-04 11:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 ks8851 드라이버에서 IRQ 핸들러 내의 Bottom Half(BH) 제어 방식 오류로 인해 데드락(Hang)이 발생할 수 있는 취약점입니다. SPI 버스 인터페이스를 사용하는 KS8851 환경에서 락(Lock) 충돌이 발생하여 시스템이 멈출 수 있습니다.

💡 쉬운 설명

네트워크 데이터를 처리하는 과정에서 시스템이 서로의 자원을 기다리며 멈춰버리는 현상이 발생할 수 있습니다. 특히 특정 연결 방식(SPI)을 사용하는 장치에서 시스템이 응답하지 않을 위험이 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: net: ks8851: Queue RX packets in IRQ handler instead of disabling BHs Currently the driver uses local_bh_disable()/local_bh_enable() in its IRQ handler to avoid triggering net_rx_action() softirq on exit from netif_rx(). The net_rx_action() could trigger this driver .start_xmit callback, which is protected by the same lock as the IRQ handler, so calling the .start_xmit from netif_rx() from the IRQ handler critical section protected by the lock could lead to an attempt to claim the already claimed lock, and a hang. The local_bh_disable()/local_bh_enable() approach works only in case the IRQ handler is protected by a spinlock, but does not work if the IRQ handler is protected by mutex, i.e. this works for KS8851 with Parallel bus interface, but not for KS8851 with SPI bus interface. Remove the BH manipulation and instead of calling netif_rx() inside the IRQ handler code protected by the lock, queue all the received SKBs in the IRQ handler into a queue first, and once the IRQ handler exits the critical section protected by the lock, dequeue all the queued SKBs and push them all into netif_rx(). At this point, it is safe to trigger the net_rx_action() softirq, since the netif_rx() call is outside of the lock that protects the IRQ handler.

📍 영향받는 시스템

Linux kernel (ks8851 driver using SPI bus interface)

⚔️ 공격 벡터

특정 네트워크 트래픽 유입을 통해 드라이버의 IRQ 핸들러를 트리거하여 시스템 데드락 유도

🛡️ 대응 방법

Linux 커널을 최신 패치가 적용된 버전으로 업데이트하여 ks8851 드라이버의 BH 처리 로직 수정 적용

🔧 검증 코드

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

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel