🇰🇷 한글 설명
Linux 커널의 powerpc/eeh 구성 요소에서 EEH 민감 드라이버가 없는 장치에 대해 재귀적 잠금(recursive locking)이 발생하는 취약점이 발견되었습니다. 이로 인해 특정 오류 상황에서 eehd 프로세스가 이미 보유한 잠금을 다시 요청하여 시스템이 멈추는 데드락 현상이 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터의 특정 부품이 오류를 일으켰을 때 이를 복구하는 과정에서, 시스템이 스스로를 잠가버려 아무것도 할 수 없는 상태(멈춤 현상)가 되는 문제입니다. 특정 하드웨어 환경에서 시스템이 응답하지 않는 현상을 유발할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
powerpc/eeh: Fix recursive locking on devices without EEH sensitive driver
The commit 1010b4c012b0 ("powerpc/eeh: Make EEH driver device hotplug
safe") refactored the EEH code such that the pci_rescan_remove_lock is
held at the beginning of eeh_handle_normal_event() and the
eeh_reset_device() is called with that lock being held. Looks like the
commit missed to remove the existing lock/unlock inside eeh_rmv_device()
which is no longer necessary. This is causing the eehd to hang on the
lock which it actually holds when that code path is taken.
[<0>] 0xc00000011c78f870
[<0>] __switch_to+0xfc/0x1a0
[<0>] pci_lock_rescan_remove+0x30/0x44
[<0>] eeh_rmv_device+0x290/0x2e0
[<0>] eeh_pe_dev_traverse+0x80/0x130
[<0>] eeh_reset_device+0xcc/0x23c
[<0>] eeh_handle_normal_event+0x830/0xa80
[<0>] eeh_event_handler+0xf8/0x190
[<0>] kthread+0x194/0x1b0
[<0>] start_kernel_thread+0x14/0x18
The issue is seen for cases where the errors are detected on the PHB
directly AND|OR for devices where the driver error_detected() returns
PCI_ERS_RESULT_NEED_RESET, and driver being not EEH sensitive(i.e no
error handlers like slot_reset(), resume() etc defined).
📍 영향받는 시스템
EEH 민감 드라이버가 없는 장치를 사용하는 PowerPC 아키텍처 기반 Linux 커널 시스템
⚔️ 공격 벡터
직접적인 공격보다는 하드웨어 오류 발생 시 시스템 가용성을 저해하는 서비스 거부(DoS) 형태로 나타남
🛡️ 대응 방법
커널 패치(commit 1010b4c012b0 관련 수정 사항 포함)를 적용하여 최신 커널 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인