🇰🇷 한글 설명
Linux 커널의 cdns3 드라이버에서 발생하는 Use-After-Free 취약점입니다. 요청을 해제하는 과정에서 이미 메모리에서 해제된 객체의 리스트를 조작하려 시도하여 시스템 불안정이나 권한 상승을 초래할 수 있습니다.
💡 쉬운 설명
컴퓨터가 이미 사용이 끝나서 버린 메모리 공간을 다시 사용하려고 할 때 발생하는 오류입니다. 이로 인해 시스템이 갑자기 멈추거나 해커가 시스템 제어권을 얻을 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
usb: cdns3 fix use-after-free at workaround 2
BUG: KFENCE: use-after-free read in __list_del_entry_valid+0x10/0xac
cdns3_wa2_remove_old_request()
{
...
kfree(priv_req->request.buf);
cdns3_gadget_ep_free_request(&priv_ep->endpoint, &priv_req->request);
list_del_init(&priv_req->list);
^^^ use after free
...
}
cdns3_gadget_ep_free_request() free the space pointed by priv_req,
but priv_req is used in the following list_del_init().
This patch move list_del_init() before cdns3_gadget_ep_free_request().
📍 영향받는 시스템
cdns3 드라이버를 사용하는 Linux 커널 버전
⚔️ 공격 벡터
USB 장치 연결 또는 특정 USB 요청을 통한 메모리 조작
🛡️ 대응 방법
cdns3 드라이버의 Use-After-Free 오류가 수정된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 버전인지 배포판 보안 공지를 통해 확인하십시오.