🔍 CVE-2026-64120

5.5
CVSS Score
MEDIUM
2026-07-19
2026-08-13 15:11
✅ 완료

🇰🇷 한글 설명

Linux 커널의 ethtool 구성 요소에서 phy_prepare_data() 함수가 kstrdup()을 통해 문자열을 할당할 때 실패 여부를 확인하지 않아 발생하는 취약점입니다. 할당 실패 시 NULL 포인터가 반환되는데, 이를 검증 없이 strlen() 함수에 전달함으로써 커널 NULL 포인터 역참조 및 패닉(Panic)을 유발할 수 있습니다.

💡 쉬운 설명

컴퓨터의 핵심 운영체제인 리눅스에서 메모리를 빌려오는 과정이 실패했을 때, 이를 제대로 확인하지 않고 다음 단계로 넘어가려다 시스템이 멈춰버리는 문제입니다. 이로 인해 시스템이 갑자기 꺼지거나 재부팅될 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: net: ethtool: fix NULL pointer dereference in phy_reply_size In phy_prepare_data(), several strings such as 'name', 'drvname', 'upstream_sfp_name', and 'downstream_sfp_name' are allocated using kstrdup(). However, these allocations were not checked for failure. If kstrdup() fails for 'name', it returns NULL while the function continues. This leads to a kernel NULL pointer dereference and panic later in phy_reply_size() when it unconditionally calls strlen() on the NULL pointer. While other strings like 'upstream_sfp_name' might be checked before access in certain code paths, failing to handle these allocations consistently can lead to incomplete data reporting or hidden bugs. Fix this by adding proper NULL checks for all kstrdup() calls in phy_prepare_data() and implement a centralized error handling path using goto labels to ensure all previously allocated resources are freed on failure.

📍 영향받는 시스템

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

⚔️ 공격 벡터

메모리 할당 실패를 유도할 수 있는 특수한 환경 또는 로컬 권한을 이용한 공격

🛡️ 대응 방법

kstrdup() 호출 후 NULL 체크 로직을 추가하고, 에러 발생 시 할당된 자원을 해제하는 중앙 집중식 에러 처리 경로를 적용한 최신 커널로 업데이트하십시오.

🔧 검증 코드

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

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel