🇰🇷 한글 설명
리눅스 커널의 net/sched 구성 요소에서 일괄 삭제(RTM_DELACTION) 요청 시 참조 카운트가 제대로 해제되지 않는 취약점이 발견되었습니다. 삭제 실패 시 반복자가 NULL 슬롯에서 멈추면서 이후의 액션들에 대한 참조가 누수되어, 나중에 액션이 실제로는 제거되지 않은 채 성공한 것으로 잘못 보고될 수 있습니다.
💡 쉬운 설명
여러 작업을 한꺼번에 삭제하려 할 때, 중간에 오류가 발생하면 뒤에 남은 작업들의 관리 정보가 메모리에 계속 남아있는 문제입니다. 이로 인해 삭제되지 말아야 할 작업이 삭제된 것처럼 처리되어 시스템 설정이 꼬일 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net/sched: act_api: release tail references on DELACTION failure
A batched RTM_DELACTION request takes a temporary reference on each
action before attempting any deletion. tcf_action_delete() clears
each processed slot and drops its temporary reference before attempting
the deletion. If deletion fails, tca_action_gd() calls
tcf_action_put_many() to release the remaining references, but its
tcf_act_for_each_action() iterator stops at the first NULL slot.
When a batch stops at an action bound to a filter, this leaks a
reference on each subsequent action. A later delete of an unbound
action can then return success without removing it from the IDR.
Walk the full array in tcf_action_put_many() and skip NULL slots to
release the references held on the unprocessed actions.
📍 영향받는 시스템
Linux Kernel (net/sched 구성 요소가 포함된 버전)
⚔️ 공격 벡터
로컬 사용자가 조작된 일괄 삭제(RTM_DELACTION) 요청을 보내 참조 카운트 누수를 유도
🛡️ 대응 방법
리눅스 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인