🇰🇷 한글 설명
Linux 커널의 IPMI 구성 요소에서 _ipmi_destroy_user() 함수 호출 시 cmd_rcvr 객체에 대한 Use-After-Free 취약점이 발견되었습니다. 특정 커밋에서 RCU 동기화 과정이 누락되어, 객체가 해제된 후에도 다른 프로세스가 해당 메모리에 접근할 수 있는 상태가 발생합니다.
💡 쉬운 설명
컴퓨터가 사용 중인 데이터를 갑자기 삭제해버려서, 나중에 그 데이터를 다시 쓰려고 할 때 오류가 발생하는 문제입니다. 이로 인해 시스템이 멈추거나 해커가 시스템 권한을 탈취할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ipmi: Fix use-after-free of cmd_rcvr in _ipmi_destroy_user()
Commit 9e91f8a6c868 ("ipmi:msghandler: Remove srcu for the
ipmi_interfaces list") dropped the synchronize_rcu() between unlinking
the command receivers from intf->cmd_rcvrs and freeing them, updating
only the comment that explains why the barrier is needed.
The cmd_rcvrs list is still traversed under plain RCU: find_cmd_rcvr()
walks it inside rcu_read_lock(), and handle_ipmb_get_msg_cmd() borrows
rcvr->user from that lookup within the same read-side section. Without
the grace period, _ipmi_destroy_user() can kfree() a cmd_rcvr while a
reader still holds a pointer to it, causing a use-after-free.
The rework only made srcu unnecessary for the interfaces list; the
cmd_rcvrs list still relies on plain RCU. Restore the synchronize_rcu()
before freeing the receivers.
📍 영향받는 시스템
Linux Kernel (IPMI 관련 모듈을 사용하는 시스템)
⚔️ 공격 벡터
특수하게 조작된 IPMI 메시지를 전송하여 커널 메모리 관리 오류를 유도하는 방식
🛡️ 대응 방법
해당 취약점이 수정된 최신 버전의 Linux 커널로 업데이트하고 synchronize_rcu()가 포함된 패치를 적용하십시오.
🔧 검증 코드
출력된 커널 버전이 취약점이 해결된 패치 버전 이후인지 확인하십시오.