🔍 CVE-2026-31516

7.8
CVSS Score
HIGH
2026-04-22
2026-10-19 19:17
✅ 완료

🇰🇷 한글 설명

Linux 커널의 xfrm 구성 요소에서 네트워크 네임스페이스(netns)가 해제되는 동안 policy_hthresh.work 작업이 경합을 일으키는 취약점이 발견되었습니다. 네트워크 네임스페이스가 삭제된 후 대기 중인 콜백 함수가 실행되면 이미 해제된 메모리에 접근하여 시스템 오류를 유발할 수 있습니다.

💡 쉬운 설명

네트워크 설정이 삭제되는 과정에서 컴퓨터가 아직 처리 중인 작업이 남아 있어, 이미 사라진 정보를 참조하려다 시스템이 충돌할 수 있는 문제입니다. 이는 네트워크 환경을 정리할 때 작업 순서가 맞지 않아 발생하는 오류입니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: xfrm: prevent policy_hthresh.work from racing with netns teardown A XFRM_MSG_NEWSPDINFO request can queue the per-net work item policy_hthresh.work onto the system workqueue. The queued callback, xfrm_hash_rebuild(), retrieves the enclosing struct net via container_of(). If the net namespace is torn down before that work runs, the associated struct net may already have been freed, and xfrm_hash_rebuild() may then dereference stale memory. xfrm_policy_fini() already flushes policy_hash_work during teardown, but it does not synchronize policy_hthresh.work. Synchronize policy_hthresh.work in xfrm_policy_fini() as well, so the queued work cannot outlive the net namespace teardown and access a freed struct net.

📍 영향받는 시스템

Linux Kernel (xfrm 구성 요소가 포함된 버전)

⚔️ 공격 벡터

로컬 공격자가 네트워크 네임스페이스를 빈번하게 생성하고 삭제하여 메모리 경합을 유도함으로써 시스템 불안정성을 초래할 수 있음

🛡️ 대응 방법

Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 xfrm_policy_fini()에서 작업 동기화가 이루어지도록 조치해야 함

🔧 검증 코드

출력된 커널 버전을 확인하여 해당 취약점이 해결된 최신 패치 버전인지 확인하십시오.

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