🇰🇷 한글 설명
Linux 커널의 Qualcomm 칩셋용 irqchip/qcom-mpm 드라이버에서 발생하는 취약점입니다. 깨우기(wake) 기능이 없는 GPIO를 처리하려고 할 때 MPM 드라이버가 이를 확인하지 못해 커널 페이지 요청 오류와 함께 시스템 크래시(Panic)가 발생할 수 있습니다.
💡 쉬운 설명
특정 하드웨어 핀(GPIO)이 잠자기 모드를 깨울 수 없는 기능임에도 불구하고, 시스템이 이를 깨울 수 있는 핀으로 착각하여 잘못된 명령을 내리면서 컴퓨터가 갑자기 멈추거나 꺼지는 현상입니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
irqchip/qcom-mpm: Prevent crash when trying to handle non-wake GPIOs
On Qualcomm chipsets not all GPIOs are wakeup capable. Those GPIOs do not
have a corresponding MPM pin and should not be handled inside the MPM
driver. The IRQ domain hierarchy is always applied, so it's required to
explicitly disconnect the hierarchy for those. The pinctrl-msm driver marks
these with GPIO_NO_WAKE_IRQ. qcom-pdc has a check for this, but
irq-qcom-mpm is currently missing the check. This is causing crashes when
setting up interrupts for non-wake GPIOs:
root@rb1:~# gpiomon -c gpiochip1 10
irq: IRQ159: trimming hierarchy from :soc@0:interrupt-controller@f200000-1
Unable to handle kernel paging request at virtual address ffff8000a1dc3820
Hardware name: Qualcomm Technologies, Inc. Robotics RB1 (DT)
pc : mpm_set_type+0x80/0xcc
lr : mpm_set_type+0x5c/0xcc
Call trace:
mpm_set_type+0x80/0xcc (P)
qcom_mpm_set_type+0x64/0x158
irq_chip_set_type_parent+0x20/0x38
msm_gpio_irq_set_type+0x50/0x530
__irq_set_trigger+0x60/0x184
__setup_irq+0x304/0x6bc
request_threaded_irq+0xc8/0x19c
edge_detector_setup+0x260/0x364
linereq_create+0x420/0x5a8
gpio_ioctl+0x2d4/0x6c0
Fix this by copying the check for GPIO_NO_WAKE_IRQ from qcom-pdc.c, so that
MPM is removed entirely from the hierarchy for non-wake GPIOs.
📍 영향받는 시스템
Qualcomm 칩셋을 사용하는 Linux 커널 기반 시스템 (예: Robotics RB1)
⚔️ 공격 벡터
로컬 사용자가 깨우기 기능이 없는 GPIO에 대해 인터럽트 설정을 시도하여 커널 패닉 유도
🛡️ 대응 방법
qcom-mpm 드라이버에 GPIO_NO_WAKE_IRQ 체크 로직을 추가하여 최신 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 최신 보안 업데이트 버전인지 확인