🇰🇷 한글 설명
Linux 커널의 rapidio 드라이버에서 rio_add_net() 함수가 실패할 경우 mport->net 포인터가 해제된 메모리를 계속 가리키는 Use-After-Free 취약점이 존재합니다. 이로 인해 나중에 mport 해제 과정에서 잘못된 포인터를 참조하거나 동일한 메모리를 중복 해제하여 시스템 오류를 유발할 수 있습니다.
💡 쉬운 설명
장치를 등록하다가 오류가 발생했을 때, 사용이 끝난 메모리 주소를 지우지 않고 남겨두는 버그입니다. 이 때문에 나중에 컴퓨터가 이미 사라진 메모리 주소를 다시 건드리려다 시스템이 멈추거나 충돌할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
rapidio: clear mport->net when rio_add_net() fails
rio_alloc_net() stores the newly allocated rio_net in mport->net before
rio_scan_alloc_net() registers the device.
If rio_add_net() fails, rio_scan_alloc_net() drops the device reference
with put_device(), which releases the rio_net through the device release
callback. However, mport->net is left pointing at the freed object.
A later mport unregister path can then dereference the dangling mport->net
pointer and may try to free the same rio_net again.
Clear mport->net in the rio_add_net() failure path, matching the cleanup
done for the destID table allocation failure path.
📍 영향받는 시스템
Linux kernel (rapidio driver component)
⚔️ 공격 벡터
장치 등록 실패를 유도하는 특정 하드웨어 상태 또는 드라이버 조작을 통한 메모리 오염
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인하십시오.