🔍 CVE-2025-39965

7.8
CVSS Score
HIGH
2025-10-13
2026-10-30 13:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 xfrm 구성 요소에서 SPI(Security Parameter Index) 값으로 0을 사용할 때 발생하는 취약점입니다. SPI가 0인 상태가 목록에 잘못 추가되어 삭제되지 않음으로써, 이후 해당 목록을 참조할 때 Use-After-Free(UAF) 메모리 오류를 유발할 수 있습니다.

💡 쉬운 설명

컴퓨터가 보안 연결 정보를 관리하는 과정에서 잘못된 번호를 사용해 데이터가 삭제된 후에도 계속 접근하려고 시도하는 오류입니다. 이로 인해 시스템이 충돌하거나 해커가 시스템 권한을 탈취할 위험이 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: xfrm: xfrm_alloc_spi shouldn't use 0 as SPI x->id.spi == 0 means "no SPI assigned", but since commit 94f39804d891 ("xfrm: Duplicate SPI Handling"), we now create states and add them to the byspi list with this value. __xfrm_state_delete doesn't remove those states from the byspi list, since they shouldn't be there, and this shows up as a UAF the next time we go through the byspi list.

📍 영향받는 시스템

xfrm 모듈을 사용하는 Linux 커널 버전 (commit 94f39804d891 이후 버전)

⚔️ 공격 벡터

로컬 공격자가 특수하게 조작된 IPsec(xfrm) 상태를 생성하여 커널 메모리 오류를 유발

🛡️ 대응 방법

xfrm SPI 0 처리 로직이 수정된 최신 Linux 커널로 업데이트

🔧 검증 코드

출력된 커널 버전이 해당 취약점이 패치된 최신 보안 업데이트 버전인지 확인

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