🔍 CVE-2024-47742

7.8
CVSS Score
HIGH
2024-10-21
2026-08-04 11:20
✅ 완료

🇰🇷 한글 설명

Linux 커널의 펌웨어 로더가 경로 순회 공격에 취약하여, 디바이스나 준특권 사용자공간에서 제공하는 펌웨어 파일명에 '..' 경로 요소가 포함되면 임의의 위치에서 펌웨어를 로드할 수 있습니다. 이를 수정하기 위해 '..' 구성요소가 포함된 모든 펌웨어명을 거부하도록 변경했습니다.

💡 쉬운 설명

Linux 커널이 펌웨어 파일 경로를 적절히 검증하지 않아 경로 순회(../) 기법으로 의도하지 않은 위치의 펌웨어를 로드할 수 있는 보안 결함입니다. 패치를 통해 '..' 문자를 포함한 모든 펌웨어 이름을 거부하도록 수정되었습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: firmware_loader: Block path traversal Most firmware names are hardcoded strings, or are constructed from fairly constrained format strings where the dynamic parts are just some hex numbers or such. However, there are a couple codepaths in the kernel where firmware file names contain string components that are passed through from a device or semi-privileged userspace; the ones I could find (not counting interfaces that require root privileges) are: - lpfc_sli4_request_firmware_update() seems to construct the firmware filename from "ModelName", a string that was previously parsed out of some descriptor ("Vital Product Data") in lpfc_fill_vpd() - nfp_net_fw_find() seems to construct a firmware filename from a model name coming from nfp_hwinfo_lookup(pf->hwinfo, "nffw.partno"), which I think parses some descriptor that was read from the device. (But this case likely isn't exploitable because the format string looks like "netronome/nic_%s", and there shouldn't be any *folders* starting with "netronome/nic_". The previous case was different because there, the "%s" is *at the start* of the format string.) - module_flash_fw_schedule() is reachable from the ETHTOOL_MSG_MODULE_FW_FLASH_ACT netlink command, which is marked as GENL_UNS_ADMIN_PERM (meaning CAP_NET_ADMIN inside a user namespace is enough to pass the privilege check), and takes a userspace-provided firmware name. (But I think to reach this case, you need to have CAP_NET_ADMIN over a network namespace that a special kind of ethernet device is mapped into, so I think this is not a viable attack path in practice.) Fix it by rejecting any firmware names containing ".." path components. For what it's worth, I went looking and haven't found any USB device drivers that use the firmware loader dangerously.

📍 영향받는 시스템

lpfc, nfp 드라이버 및 ethtool 모듈 펌웨어 플래시 기능을 포함한 Linux 커널 (패치 이전 버전)

⚔️ 공격 벡터

CAP_NET_ADMIN 권한의 ETHTOOL_MSG_MODULE_FW_FLASH_ACT netlink 명령이나 디바이스 디스크립터 파싱을 통한 경로 순회 공격

🛡️ 대응 방법

Linux 커널을 CVE-2024-47742 패치가 적용된 최신 버전으로 업데이트

🔧 검증 코드

커널 버전을 확인하여 CVE-2024-47742 패치가 적용된 버전 이상인지 커널 보안 알림과 비교하여 검증합니다.

Shell / Script
uname -r && cat /proc/version | grep -oE '[0-9]\.[0-9]+\.[0-9]+'

📊 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