🔍 CVE-2025-39905

7.0
CVSS Score
HIGH
2025-10-01
2026-10-19 21:10
✅ 완료

🇰🇷 한글 설명

Linux 커널의 phylink 구성 요소에서 발생하는 경합 조건(Race Condition) 취약점입니다. phylink_resolve() 함수가 pl->phydev를 수정하는 과정에서 잠금 순서 역전(Lock Inversion) 문제로 인해 데이터 무결성이 깨지거나 시스템 불안정을 초래할 수 있습니다.

💡 쉬운 설명

컴퓨터의 네트워크 장치를 관리하는 프로그램이 여러 작업을 동시에 처리하다가 서로 충돌하여 오류가 발생할 수 있는 문제입니다. 이로 인해 시스템이 멈추거나 네트워크 연결에 문제가 생길 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: net: phylink: add lock for serializing concurrent pl->phydev writes with resolver Currently phylink_resolve() protects itself against concurrent phylink_bringup_phy() or phylink_disconnect_phy() calls which modify pl->phydev by relying on pl->state_mutex. The problem is that in phylink_resolve(), pl->state_mutex is in a lock inversion state with pl->phydev->lock. So pl->phydev->lock needs to be acquired prior to pl->state_mutex. But that requires dereferencing pl->phydev in the first place, and without pl->state_mutex, that is racy. Hence the reason for the extra lock. Currently it is redundant, but it will serve a functional purpose once mutex_lock(&phy->lock) will be moved outside of the mutex_lock(&pl->state_mutex) section. Another alternative considered would have been to let phylink_resolve() acquire the rtnl_mutex, which is also held when phylink_bringup_phy() and phylink_disconnect_phy() are called. But since phylink_disconnect_phy() runs under rtnl_lock(), it would deadlock with phylink_resolve() when calling flush_work(&pl->resolve). Additionally, it would have been undesirable because it would have unnecessarily blocked many other call paths as well in the entire kernel, so the smaller-scoped lock was preferred.

📍 영향받는 시스템

Linux Kernel (phylink 모듈을 사용하는 시스템)

⚔️ 공격 벡터

로컬 시스템에서 네트워크 장치의 상태를 빈번하게 변경하여 경합 조건을 유도하는 방식

🛡️ 대응 방법

Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.

🔧 검증 코드

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

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel