🇰🇷 한글 설명
Linux 커널의 i3c 마스터 컨트롤러에서 master->this 포인터에 대한 Use-After-Free 취약점이 발견되었습니다. sysfs 속성 콜백이 마스터 장치가 해제되기 전에 이미 해제된 포인터를 참조하여 발생하며, 이는 시스템 불안정이나 보안 위협을 초래할 수 있습니다.
💡 쉬운 설명
컴퓨터의 부품을 관리하는 프로그램이 이미 삭제된 정보를 다시 사용하려고 시도할 때 발생하는 오류입니다. 이로 인해 시스템이 갑자기 멈추거나 해킹의 통로가 될 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
i3c: master: Fix use-after-free of master->this
sysfs attribute callbacks for the master controller device dereference
master->this. However, master->this is freed in
i3c_master_detach_free_devs() before the master device itself is
released.
As a result, sysfs accesses can dereference a freed master->this
pointer, leading to a use-after-free.
Keep master->this alive until i3c_masterdev_release(), which is called
after the master device and its sysfs state are being torn down. Do not
free master->this as part of the normal device detach path.
On the error path in i3c_master_set_info(), reset master->this and
bus.cur_master to NULL before freeing the allocated device.
📍 영향받는 시스템
i3c 마스터 컨트롤러를 사용하는 Linux 커널 버전
⚔️ 공격 벡터
sysfs 속성에 접근하여 해제된 메모리 주소를 참조하도록 유도하는 방식
🛡️ 대응 방법
i3c 마스터 장치 해제 로직이 수정된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 최신 버전인지 확인