🔍 CVE-2024-50036

7.8
CVSS Score
HIGH
2024-10-21
2026-08-04 11:21
✅ 완료

🇰🇷 한글 설명

리눅스 커널의 네트워크 스택에서 dst_release() 함수가 dst_entries_add()를 지연 호출함으로써 발생하는 레이스 컨디션 취약점입니다. 네트워크 네임스페이스가 해제되는 과정에서 이미 해제된 per-cpu 데이터를 참조할 수 있어 Use-After-Free(UAF) 문제가 발생할 수 있습니다.

💡 쉬운 설명

컴퓨터의 네트워크 정보를 정리하는 과정에서, 이미 삭제된 데이터를 다시 사용하려고 시도하여 시스템 오류나 보안 문제가 생길 수 있는 결함입니다. 네트워크 설정이 변경되거나 삭제될 때 특정 타이밍에 문제가 발생합니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: net: do not delay dst_entries_add() in dst_release() dst_entries_add() uses per-cpu data that might be freed at netns dismantle from ip6_route_net_exit() calling dst_entries_destroy() Before ip6_route_net_exit() can be called, we release all the dsts associated with this netns, via calls to dst_release(), which waits an rcu grace period before calling dst_destroy() dst_entries_add() use in dst_destroy() is racy, because dst_entries_destroy() could have been called already. Decrementing the number of dsts must happen sooner. Notes: 1) in CONFIG_XFRM case, dst_destroy() can call dst_release_immediate(child), this might also cause UAF if the child does not have DST_NOCOUNT set. IPSEC maintainers might take a look and see how to address this. 2) There is also discussion about removing this count of dst, which might happen in future kernels.

📍 영향받는 시스템

Linux Kernel (IPv6 및 XFRM 설정이 활성화된 환경)

⚔️ 공격 벡터

네트워크 네임스페이스를 빈번하게 생성 및 삭제하여 레이스 컨디션을 유도함으로써 메모리 오염 유발

🛡️ 대응 방법

리눅스 커널을 최신 보안 패치가 적용된 버전으로 업데이트

🔧 검증 코드

현재 실행 중인 커널 버전을 확인하여 해당 취약점이 해결된 패치 버전인지 확인

Shell / Script
uname -r

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

💻 영향받는 소프트웨어

Linux Kernel