🔍 CVE-2025-68340

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

🇰🇷 한글 설명

Linux 커널의 team 드라이버에서 포트 장치를 추가할 때, 이미 활성화된 장치를 추가하려 하면 장치 유형 변경이 완료된 후 오류가 발생하여 메모리 오염이 일어나는 취약점입니다. 이로 인해 잘못된 데이터 구조체 참조가 발생하여 시스템 중단(Hang) 또는 커널 패닉(BUG)이 발생할 수 있습니다.

💡 쉬운 설명

네트워크 장치를 연결하는 과정에서 설정이 꼬여 컴퓨터의 핵심 시스템이 멈추거나 오류를 일으킬 수 있는 문제입니다. 이미 켜져 있는 장치를 잘못된 방식으로 연결하려고 할 때 발생합니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: team: Move team device type change at the end of team_port_add Attempting to add a port device that is already up will expectedly fail, but not before modifying the team device header_ops. In the case of the syzbot reproducer the gre0 device is already in state UP when it attempts to add it as a port device of team0, this fails but before that header_ops->create of team0 is changed from eth_header to ipgre_header in the call to team_dev_type_check_change. Later when we end up in ipgre_header() struct ip_tunnel* points to nonsense as the private data of the device still holds a struct team. Example sequence of iproute2 commands to reproduce the hang/BUG(): ip link add dev team0 type team ip link add dev gre0 type gre ip link set dev gre0 up ip link set dev gre0 master team0 ip link set dev team0 up ping -I team0 1.1.1.1 Move team_dev_type_check_change down where all other checks have passed as it changes the dev type with no way to restore it in case one of the checks that follow it fail. Also make sure to preserve the origial mtu assignment: - If port_dev is not the same type as dev, dev takes mtu from port_dev - If port_dev is the same type as dev, port_dev takes mtu from dev This is done by adding a conditional before the call to dev_set_mtu to prevent it from assigning port_dev->mtu = dev->mtu and instead letting team_dev_type_check_change assign dev->mtu = port_dev->mtu. The conditional is needed because the patch moves the call to team_dev_type_check_change past dev_set_mtu. Testing: - team device driver in-tree selftests - Add/remove various devices as slaves of team device - syzbot

📍 영향받는 시스템

Linux Kernel (team 드라이버를 사용하는 버전)

⚔️ 공격 벡터

로컬 권한을 가진 사용자가 특정 iproute2 명령어를 사용하여 네트워크 인터페이스 설정을 조작함으로써 발생

🛡️ 대응 방법

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