🇰🇷 한글 설명
Linux 커널의 btmtksdio 드라이버에서 btmtksdio_txrx_work() 함수 내의 잘못된 시간 비교 로직으로 인해 무한 루프가 발생할 수 있는 취약점입니다. 타임아웃 조건이 잘못 설정되어 있어, 특정 상황에서 루프가 종료되지 않고 SDIO 호스트를 점유하여 시스템이 멈추는 현상이 발생합니다.
💡 쉬운 설명
블루투스 기능을 작동시키는 과정에서 계산 오류로 인해 컴퓨터가 무한 반복 작업에 빠지는 문제입니다. 이로 인해 블루투스 장치가 작동하지 않거나 시스템이 응답하지 않을 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: btmtksdio: fix infinite loop in btmtksdio_txrx_work()
Every once in a while we see a hung btmtksdio_flush() task:
INFO: task kworker/u17:0:189 blocked for more than 122 seconds.
__cancel_work_timer+0x3f4/0x460
cancel_work_sync+0x1c/0x2c
btmtksdio_flush+0x2c/0x40
hci_dev_open_sync+0x10c4/0x2190
[..]
It all boils down to incorrect time_is_before_jiffies() usage in
btmtksdio_txrx_work(). The btmtksdio_txrx_work() loop is expected
to be terminated if running for longer than 5*HZ. However the
timeout check is twisted: time_is_before_jiffies(old_jiffies + 5*HZ)
evaluates to true when old_jiffies + 5*HZ is in the past i.e. when a
timeout has occurred. Using OR with time_is_before_jiffies(txrx_timeout)
means that:
- before the 5-second timeout: the condition is `int_status || false`,
so it loops as long as there are pending interrupts.
- after the 5-second timeout: the condition becomes `int_status || true`,
which is always true.
When the loop becomes infinite btmtksdio_txrx_work() loop never
terminates and never releases the SDIO host.
Fix loop termination condition to actually enforce a 5*HZ timeout.
📍 영향받는 시스템
btmtksdio 드라이버를 사용하는 Linux 커널 기반 시스템
⚔️ 공격 벡터
로컬 공격자가 특정 블루투스 동작을 유도하여 커널 스레드를 무한 루프에 빠뜨림 (DoS)
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 btmtksdio_txrx_work()의 타임아웃 로직을 수정해야 합니다.
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 수정된 패치 버전 이상인지 확인합니다.