🔍 CVE-2025-40255

0.0
CVSS Score
UNKNOWN
2025-12-04
2026-10-19 19:10
✅ 완료

🇰🇷 한글 설명

리눅스 커널의 ethtool tsconfig Netlink 경로에서 NULL 포인터 역참조 취약점이 발견되었습니다. 특정 호출 체인을 통해 generic_hwtstamp_ioctl_lower() 함수가 NULL인 ifr을 참조하게 되어 시스템 충돌(Crash)을 유발할 수 있습니다.

💡 쉬운 설명

리눅스 운영체제의 네트워크 설정 과정에서 잘못된 데이터가 입력되면 시스템이 갑자기 멈추거나 꺼질 수 있는 오류입니다. 특정 네트워크 기능을 호출할 때 빈 값을 확인하지 못해 발생하는 문제입니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: net: core: prevent NULL deref in generic_hwtstamp_ioctl_lower() The ethtool tsconfig Netlink path can trigger a null pointer dereference. A call chain such as: tsconfig_prepare_data() -> dev_get_hwtstamp_phylib() -> vlan_hwtstamp_get() -> generic_hwtstamp_get_lower() -> generic_hwtstamp_ioctl_lower() results in generic_hwtstamp_ioctl_lower() being called with kernel_cfg->ifr as NULL. The generic_hwtstamp_ioctl_lower() function does not expect a NULL ifr and dereferences it, leading to a system crash. Fix this by adding a NULL check for kernel_cfg->ifr in generic_hwtstamp_ioctl_lower(). If ifr is NULL, return -EINVAL.

📍 영향받는 시스템

Linux Kernel (ethtool tsconfig Netlink 관련 모듈 사용 시스템)

⚔️ 공격 벡터

로컬 사용자가 특수하게 조작된 Netlink 메시지를 통해 ethtool tsconfig 요청을 보냄

🛡️ 대응 방법

리눅스 커널을 최신 보안 패치가 적용된 버전으로 업데이트하거나, generic_hwtstamp_ioctl_lower() 함수에 NULL 체크 로직을 적용해야 합니다.

🔧 검증 코드

현재 실행 중인 커널 버전을 확인하여 해당 취약점이 수정된 패치 버전인지 확인합니다.

Shell / Script
uname -r

💻 영향받는 소프트웨어

Linux Kernel