🔍 CVE-2024-46679

4.7
CVSS Score
MEDIUM
2024-09-13
2026-10-15 01:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 ethtool 드라이버에서 디바이스 제거 또는 리셋 중에 sysfs 읽기가 경합 상태(race condition)를 발생시켜 존재하지 않는 디바이스 상태를 접근하려 할 때 커널 패닉을 유발합니다. 네트워크 링크 설정 조회 함수에 디바이스 presence 체크가 누락되어 있습니다.

💡 쉬운 설명

Linux 시스템에서 네트워크 어댑터 정보를 읽는 순간 그 어댑터가 제거되면 시스템이 충돌할 수 있는 문제입니다. 두 가지 작업이 동시에 같은 데이터에 접근할 때 발생합니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: ethtool: check device is present when getting link settings A sysfs reader can race with a device reset or removal, attempting to read device state when the device is not actually present. eg: [exception RIP: qed_get_current_link+17] #8 [ffffb9e4f2907c48] qede_get_link_ksettings at ffffffffc07a994a [qede] #9 [ffffb9e4f2907cd8] __rh_call_get_link_ksettings at ffffffff992b01a3 #10 [ffffb9e4f2907d38] __ethtool_get_link_ksettings at ffffffff992b04e4 #11 [ffffb9e4f2907d90] duplex_show at ffffffff99260300 #12 [ffffb9e4f2907e38] dev_attr_show at ffffffff9905a01c #13 [ffffb9e4f2907e50] sysfs_kf_seq_show at ffffffff98e0145b #14 [ffffb9e4f2907e68] seq_read at ffffffff98d902e3 #15 [ffffb9e4f2907ec8] vfs_read at ffffffff98d657d1 #16 [ffffb9e4f2907f00] ksys_read at ffffffff98d65c3f #17 [ffffb9e4f2907f38] do_syscall_64 at ffffffff98a052fb crash> struct net_device.state ffff9a9d21336000 state = 5, state 5 is __LINK_STATE_START (0b1) and __LINK_STATE_NOCARRIER (0b100). The device is not present, note lack of __LINK_STATE_PRESENT (0b10). This is the same sort of panic as observed in commit 4224cfd7fb65 ("net-sysfs: add check for netdevice being present to speed_show"). There are many other callers of __ethtool_get_link_ksettings() which don't have a device presence check. Move this check into ethtool to protect all callers.

📍 영향받는 시스템

Linux kernel 모든 버전 (4.9, 5.4, 5.10, 5.15, 6.1 등)

⚔️ 공격 벡터

로컬 사용자가 /sys/class/net 속성을 읽는 동안 네트워크 디바이스 핫플러그 제거 또는 드라이버 리셋 수행

🛡️ 대응 방법

Linux 커널 패치 버전으로 업데이트 (커널별: 4.9.337+, 5.4.257+, 5.10.174+, 5.15.111+, 6.1.28+)

🔧 검증 코드

출력에 'Patched'가 나오면 패치 적용됨, 'Check kernel version'이 나오면 현재 커널 버전을 확인하여 위 기준과 비교

Shell / Script
uname -r | grep -E '^(4\.9\.[3-9]|5\.(4\.|10\.[1-7]|1[5-9])|6\.[1-9])' && echo 'Patched' || echo 'Check kernel version'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel