🇰🇷 한글 설명
Linux 커널의 xfrm 구성 요소에서 사용자 상태가 삭제될 때 종속된 fallback 터널 상태가 적절히 삭제되지 않아 발생하는 문제입니다. IP 재조립 대기열 등에 남아있는 참조로 인해 fallback 상태가 해시 테이블에 잔류하게 되어 시스템 경고(WARN)를 유발할 수 있습니다.
💡 쉬운 설명
네트워크 보안 설정을 삭제할 때 관련 데이터가 메모리에서 완전히 지워지지 않고 찌꺼기로 남는 문제입니다. 이로 인해 시스템에 경고 메시지가 발생하거나 메모리 관리상의 문제가 생길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
xfrm: delete x->tunnel as we delete x
The ipcomp fallback tunnels currently get deleted (from the various
lists and hashtables) as the last user state that needed that fallback
is destroyed (not deleted). If a reference to that user state still
exists, the fallback state will remain on the hashtables/lists,
triggering the WARN in xfrm_state_fini. Because of those remaining
references, the fix in commit f75a2804da39 ("xfrm: destroy xfrm_state
synchronously on net exit path") is not complete.
We recently fixed one such situation in TCP due to defered freeing of
skbs (commit 9b6412e6979f ("tcp: drop secpath at the same time as we
currently drop dst")). This can also happen due to IP reassembly: skbs
with a secpath remain on the reassembly queue until netns
destruction. If we can't guarantee that the queues are flushed by the
time xfrm_state_fini runs, there may still be references to a (user)
xfrm_state, preventing the timely deletion of the corresponding
fallback state.
Instead of chasing each instance of skbs holding a secpath one by one,
this patch fixes the issue directly within xfrm, by deleting the
fallback state as soon as the last user state depending on it has been
deleted. Destruction will still happen when the final reference is
dropped.
A separate lockdep class for the fallback state is required since
we're going to lock x->tunnel while x is locked.
📍 영향받는 시스템
Linux Kernel (xfrm 구성 요소가 포함된 버전)
⚔️ 공격 벡터
직접적인 공격보다는 시스템 자원 관리 오류를 유발하는 로컬 또는 네트워크 환경의 상태 변화
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인하십시오.