🔍 CVE-2025-40018

7.8
CVSS Score
HIGH
2025-10-24
2026-10-19 21:10
✅ 완료

🇰🇷 한글 설명

Linux 커널의 IPVS 구성 요소에서 네트워크 네임스페이스(netns) 정리 과정 중 ip_vs_ftp 등록 해제가 너무 일찍 수행되어 Use-After-Free 취약점이 발생합니다. 이로 인해 유효한 연결이 남아있는 상태에서 메모리가 해제되어 시스템 불안정이나 권한 상승이 발생할 수 있습니다.

💡 쉬운 설명

네트워크 설정을 지우는 과정에서 아직 사용 중인 데이터가 있는데 먼저 메모리에서 삭제해버리는 오류입니다. 이로 인해 컴퓨터 시스템이 충돌하거나 해커가 시스템 제어권을 얻을 위험이 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: ipvs: Defer ip_vs_ftp unregister during netns cleanup On the netns cleanup path, __ip_vs_ftp_exit() may unregister ip_vs_ftp before connections with valid cp->app pointers are flushed, leading to a use-after-free. Fix this by introducing a global `exiting_module` flag, set to true in ip_vs_ftp_exit() before unregistering the pernet subsystem. In __ip_vs_ftp_exit(), skip ip_vs_ftp unregister if called during netns cleanup (when exiting_module is false) and defer it to __ip_vs_cleanup_batch(), which unregisters all apps after all connections are flushed. If called during module exit, unregister ip_vs_ftp immediately.

📍 영향받는 시스템

Linux Kernel (IPVS module 사용 환경)

⚔️ 공격 벡터

네트워크 네임스페이스를 생성하고 삭제하는 과정에서 특정 조건의 FTP 연결을 유지하여 메모리 오류 유도

🛡️ 대응 방법

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