🇰🇷 한글 설명
Linux 커널의 bnge 드라이버에서 보조 장치(auxiliary device) 설정 중 할당 실패 시 NULL 포인터 역참조가 발생하는 취약점입니다. 오류 처리 과정에서 아직 할당되지 않은 auxr_dev를 참조하여 시스템 충돌이 발생할 수 있습니다.
💡 쉬운 설명
장치를 준비하다가 문제가 생겨서 중단할 때, 아직 만들어지지도 않은 부품을 건드리려다 컴퓨터가 멈추는 오류입니다. 이를 수정하여 장치가 제대로 만들어졌을 때만 해당 부품을 확인하도록 개선되었습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
bnge: Fix NULL pointer dereference in aux device release
If allocation of auxr_dev fails during auxiliary device setup, the error
path calls auxiliary_device_uninit(), which eventually invokes
bnge_aux_dev_release().
The release callback unconditionally dereferences aux_priv->auxr_dev->pdev
to retrieve the parent bnge_dev. Since auxr_dev has not yet been allocated
on this failure path, the dereference results in a NULL pointer exception
Retrieve the parent bnge_dev from the auxiliary device's parent instead of
auxr_dev, and free auxr_dev only when it was successfully allocated. This
allows the release callback to correctly clean up partially initialized
auxiliary devices.
📍 영향받는 시스템
Linux kernel (bnge driver 포함 버전)
⚔️ 공격 벡터
로컬 공격자가 장치 설정 과정에서 메모리 할당 실패를 유도하여 커널 패닉(NULL pointer dereference)을 일으킬 수 있음
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인하십시오.