🇰🇷 한글 설명
Linux 커널의 bcm2835 pinctrl 드라이버에서 GPIO 칩이 등록되기 전에 제거를 시도하여 발생하는 NULL 포인터 역참조 취약점입니다. devm_pinctrl_register() 함수가 실패할 경우, 등록되지 않은 GPIO 칩에 대해 gpiochip_remove()를 호출함으로써 커널 패닉을 유발할 수 있습니다.
💡 쉬운 설명
장치를 설정하는 과정에서 오류가 발생했을 때, 아직 준비되지 않은 장치를 억지로 끄려고 시도하다가 시스템이 멈추는 문제입니다. 이로 인해 시스템이 갑자기 재부팅되거나 작동을 멈출 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
pinctrl: bcm2835: Don't remove an unregistered GPIO chip
If the devm_pinctrl_register() function fails,
bcm2835_pinctrl_probe() calls gpiochip_remove()
before gpiochip_add_data() has registered the GPIO chip.
This means that upon failure the gpio_chip.gpiodev
is NULL resulting in a null pointer dereference
inside the gpiochip_remove() function.
Remove the unnecessary function call to gpiochip_remove().
No GPIO cleanup is required because the GPIO chip
has not yet been registered. Without this change there
is potential for a kernel panic upon registration failure
📍 영향받는 시스템
bcm2835 pinctrl 드라이버를 사용하는 Linux 커널 기반 시스템 (예: Raspberry Pi 등)
⚔️ 공격 벡터
로컬 공격자가 특정 하드웨어 초기화 실패 상황을 유도하여 커널 패닉(DoS)을 일으킬 수 있음
🛡️ 대응 방법
해당 취약점이 수정된 최신 버전의 Linux 커널로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 패치가 적용된 최신 릴리스 버전인지 확인하십시오.