🔍 CVE-2026-53013

5.5
CVSS Score
MEDIUM
2026-06-24
2026-11-06 17:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 macvlan 모듈에서 macvlan_get_size() 함수가 IFLA_MACVLAN_BC_CUTOFF 속성을 위한 공간을 예약하지 않는 취약점이 발견되었습니다. 이로 인해 netlink skb 공간이 부족할 경우 -EMSGSIZE 오류가 발생하며, rtnetlink의 WARN_ON을 유발하고 인터페이스 정보를 조회하는 것을 방해합니다.

💡 쉬운 설명

네트워크 설정을 관리하는 과정에서 필요한 메모리 크기를 잘못 계산하여 오류가 발생하는 문제입니다. 이 오류로 인해 특정 네트워크 인터페이스의 정보를 정상적으로 불러올 수 없게 됩니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: macvlan: fix macvlan_get_size() not reserving space for IFLA_MACVLAN_BC_CUTOFF macvlan_get_size() does not account for IFLA_MACVLAN_BC_CUTOFF, but macvlan_fill_info() conditionally includes it when port->bc_cutoff != 1. This causes nla_put_s32() to fail with -EMSGSIZE when the netlink skb runs out of space, triggering a WARN_ON in rtnetlink and preventing the interface from being dumped. The bug can be reproduced with: ip link add macvlan0 link eth0 type macvlan mode bridge ip link set macvlan0 type macvlan bc_cutoff 0 ip -d link show macvlan0 # fails with -EMSGSIZE The bc_cutoff feature was added in commit 954d1fa1ac93 ("macvlan: Add netlink attribute for broadcast cutoff"), which added the nla_put_s32() call in macvlan_fill_info() but missed adding the corresponding nla_total_size(4) in macvlan_get_size(). A follow-up commit 55cef78c244d ("macvlan: add forgotten nla_policy for IFLA_MACVLAN_BC_CUTOFF") fixed the missing nla_policy entry but still did not fix the size calculation.

📍 영향받는 시스템

IFLA_MACVLAN_BC_CUTOFF 기능이 포함된 Linux 커널 (commit 954d1fa1ac93 이후 버전)

⚔️ 공격 벡터

로컬 시스템에서 특정 macvlan 설정을 구성한 후 네트워크 인터페이스 정보를 조회하여 서비스 거부(DoS) 또는 정보 조회 실패 유도

🛡️ 대응 방법

macvlan_get_size() 함수에 IFLA_MACVLAN_BC_CUTOFF 크기가 반영된 최신 Linux 커널로 업데이트

🔧 검증 코드

명령어 실행 시 -EMSGSIZE 오류가 발생하면 취약한 상태이며, 정상적으로 인터페이스 정보가 출력되면 패치된 상태입니다.

Shell / Script
ip link add macvlan0 link eth0 type macvlan mode bridge && ip link set macvlan0 type macvlan bc_cutoff 0 && ip -d link show macvlan0

📊 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