🇰🇷 한글 설명
Linux 커널의 mmc via-sdmmc 드라이버에서 프로브(probe) 실패 시 카드 감지 인터럽트가 적절히 해제되지 않는 취약점이 발견되었습니다. 이로 인해 메모리가 해제된 후에도 인터럽트 핸들러가 실행되어 해제된 메모리에 접근하는 Use-After-Free 오류가 발생할 수 있습니다.
💡 쉬운 설명
기기가 제대로 작동하지 않아 연결을 해제하는 과정에서, 시스템이 여전히 해당 기기가 연결되어 있다고 착각하여 잘못된 메모리 주소를 건드리는 문제입니다. 이로 인해 시스템이 갑자기 멈추거나 보안 문제가 생길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
mmc: via-sdmmc: stop card-detect handling on probe failure
request_irq() registers the SD card-detect interrupt and the probe enables
it before mmc_add_host() runs. If mmc_add_host() fails, the error path only
unmaps the registers and returns: the interrupt stays registered, so the
handler keeps running against the host once it is freed. via_sdc_isr()
dereferences sdhost and its MMIO base and schedules carddet_work, which
via_sdc_card_detect() also runs against freed memory through its
container_of() dereference.
Add a probe-error path that disables and frees the interrupt and cancels
carddet_work before unmapping. carddet_work can re-enable the device
interrupt via via_reset_pcictrl(), which restores PCIINTCTRL, so mask it
again after cancelling the work.
This issue was found by an in-house static analysis tool and confirmed by
manual code review.
📍 영향받는 시스템
Linux kernel (mmc: via-sdmmc driver 관련 버전)
⚔️ 공격 벡터
로컬 공격자가 특정 하드웨어 프로브 실패 상황을 유도하여 메모리 오류를 일으킴
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 인터럽트 해제 로직을 적용해야 함
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인하십시오.