🇰🇷 한글 설명
Linux 커널의 IB/mlx4 드라이버에서 pkey sysfs 등록 실패 시 Use-After-Free 취약점이 발견되었습니다. 등록 실패 시 부모 kobject가 이미 해제되었음에도 포인터가 남아 있어, 이후 장치 정리 과정에서 잘못된 메모리 참조가 발생합니다.
💡 쉬운 설명
시스템 설정 중 오류가 발생했을 때, 이미 삭제된 메모리 주소를 다시 사용하려고 시도하여 시스템이 충돌하거나 보안 문제가 생길 수 있는 결함입니다. 이를 방지하기 위해 오류 발생 시 남은 흔적을 깨끗이 지우도록 수정되었습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
IB/mlx4: Fix use-after-free on pkey sysfs registration failure
register_pkey_tree() ignores errors from register_one_pkey_tree() and
continues registering the remaining slaves. The per-slave error path has
already released the pkey parent kobjects, but their pointers remain
stored in the device. A later device cleanup therefore passes the stale
pointers to kobject_put(), causing a use-after-free.
Clear the parent pointers after releasing a failed slave tree and skip
unregistered trees during device cleanup. This preserves the existing
best-effort registration behavior while preventing a second cleanup of
the failed tree.
📍 영향받는 시스템
Linux kernel (IB/mlx4 driver component)
⚔️ 공격 벡터
특정 조건에서 pkey sysfs 등록 실패를 유도하여 메모리 오류를 일으키는 방식
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인