🔍 CVE-2024-41036

7.5
CVSS Score
HIGH
2024-07-29
2026-08-04 11:19
✅ 완료

🇰🇷 한글 설명

Linux 커널의 ks8851 네트워크 드라이버에서 SMP(대칭형 다중 처리) 환경 사용 시 데드락(교착 상태)이 발생하는 취약점입니다. ks8851_start_xmit_spi와 ks8851_irq 함수 간의 'statelock' 스핀락 충돌로 인해 CPU가 멈추는 현상이 발생합니다.

💡 쉬운 설명

컴퓨터의 핵심 부품인 네트워크 장치를 제어하는 소프트웨어에서 두 작업이 서로를 기다리며 멈춰버리는 오류가 발견되었습니다. 이로 인해 시스템이 응답하지 않고 완전히 멈출 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: net: ks8851: Fix deadlock with the SPI chip variant When SMP is enabled and spinlocks are actually functional then there is a deadlock with the 'statelock' spinlock between ks8851_start_xmit_spi and ks8851_irq: watchdog: BUG: soft lockup - CPU#0 stuck for 27s! call trace: queued_spin_lock_slowpath+0x100/0x284 do_raw_spin_lock+0x34/0x44 ks8851_start_xmit_spi+0x30/0xb8 ks8851_start_xmit+0x14/0x20 netdev_start_xmit+0x40/0x6c dev_hard_start_xmit+0x6c/0xbc sch_direct_xmit+0xa4/0x22c __qdisc_run+0x138/0x3fc qdisc_run+0x24/0x3c net_tx_action+0xf8/0x130 handle_softirqs+0x1ac/0x1f0 __do_softirq+0x14/0x20 ____do_softirq+0x10/0x1c call_on_irq_stack+0x3c/0x58 do_softirq_own_stack+0x1c/0x28 __irq_exit_rcu+0x54/0x9c irq_exit_rcu+0x10/0x1c el1_interrupt+0x38/0x50 el1h_64_irq_handler+0x18/0x24 el1h_64_irq+0x64/0x68 __netif_schedule+0x6c/0x80 netif_tx_wake_queue+0x38/0x48 ks8851_irq+0xb8/0x2c8 irq_thread_fn+0x2c/0x74 irq_thread+0x10c/0x1b0 kthread+0xc8/0xd8 ret_from_fork+0x10/0x20 This issue has not been identified earlier because tests were done on a device with SMP disabled and so spinlocks were actually NOPs. Now use spin_(un)lock_bh for TX queue related locking to avoid execution of softirq work synchronously that would lead to a deadlock.

📍 영향받는 시스템

ks8851 SPI 칩 변형을 사용하는 Linux 커널 기반 시스템 (SMP 활성화 환경)

⚔️ 공격 벡터

특정 네트워크 트래픽 패턴을 유발하여 드라이버 내의 스핀락 충돌을 일으켜 시스템을 중단시킴 (DoS)

🛡️ 대응 방법

ks8851 드라이버의 락킹 메커니즘을 spin_(un)lock_bh로 교체하여 소프트인터럽트(softirq) 실행 순서를 조정하는 최신 커널 패치 적용

🔧 검증 코드

출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인하십시오.

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