CVE-2026-53013: Linux Kernel macvlan Size Reservation Vulnerability
A flaw in the Linux kernel's macvlan networking driver causes a space-reservation mismatch in network interface information reporting. When a macvlan interface is configured with a broadcast cutoff setting other than the default, the kernel fails to allocate enough buffer space for the configuration data when querying interface details. This triggers a warning and prevents the interface from being reported, potentially causing network management tools to fail silently.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 5.5 MEDIUM · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Weaknesses (CWE)
- —
- Affected products
- 1 configuration(s)
- Published / Modified
- 2026-06-24 / 2026-07-14
NVD description (verbatim)
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.
5 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
The vulnerability exists in the macvlan_get_size() function, which calculates the netlink message buffer size needed to report interface attributes. The function fails to account for the IFLA_MACVLAN_BC_CUTOFF attribute (a 32-bit signed integer), but macvlan_fill_info() conditionally includes this attribute when port->bc_cutoff != 1. This size mismatch causes nla_put_s32() to fail with -EMSGSIZE, triggering a WARN_ON condition in rtnetlink. The broadcast cutoff feature was introduced in an earlier commit but the corresponding size calculation was omitted. A subsequent patch addressed the missing nla_policy definition but did not fix the underlying size reservation issue.
Business impact
This vulnerability affects system administrators and automation tools that rely on network interface discovery and configuration. Tools querying macvlan interface attributes may hang or fail to retrieve interface state, disrupting network automation, monitoring, and orchestration workflows. In containerized or virtualized environments where macvlan bridges are common for network segmentation, this could prevent proper inventory and compliance auditing of network configurations.
Affected systems
The Linux kernel is affected, specifically systems running kernel versions containing the macvlan driver with the broadcast cutoff feature. This impacts any Linux host using macvlan interfaces in bridge mode with non-default bc_cutoff values. The vulnerability is most relevant to containerized deployments, virtual machine hosts, and network edge devices where macvlan bridging provides tenant isolation.
Exploitability
Exploitation requires local access and the ability to configure network interfaces (typically requiring root or CAP_NET_ADMIN capability). The vulnerability is trivial to trigger once a macvlan interface is created and the bc_cutoff parameter is modified from its default. No special tools, elevated remote access, or race conditions are necessary. However, the impact is localized to interface reporting—it does not compromise data confidentiality, integrity, or enable privilege escalation.
Remediation
Apply a kernel patch that adds the missing nla_total_size(4) reservation for IFLA_MACVLAN_BC_CUTOFF in the macvlan_get_size() function. Verify the patch against your kernel distribution's advisory. As a temporary workaround, avoid setting bc_cutoff to non-default values on production macvlan interfaces until the kernel is updated.
Patch guidance
Monitor your Linux distribution's security advisories for kernel updates addressing this macvlan size calculation bug. Patches should be verified against the distribution's release notes or kernel stable series commits. Test kernel updates in a non-production environment first, as they may require system reboots. Organizations on supported kernel versions (stable or LTS) should prioritize testing and deployment within standard maintenance windows.
Detection guidance
Monitor system logs for WARN_ON messages from rtnetlink when querying network interface attributes. Test your environment by running 'ip -d link show' on any macvlan interfaces; failures to display interface details or EMSGSIZE errors in dmesg indicate exposure. Scan for macvlan interfaces with non-default bc_cutoff values using 'ip link show' and 'ip -d link show macvlan<N>' commands. Automated configuration management tools that enumerate network state should be tested to ensure they can successfully query all interface attributes.
Why prioritize this
This medium-severity vulnerability merits prompt attention because it directly impacts network observability and automation reliability. While local access is required, the trivial trigger mechanism and potential for widespread impact on network management make it a priority for infrastructure teams. Organizations relying on programmatic interface discovery for compliance, monitoring, or orchestration should prioritize patching to maintain operational continuity.
Risk score, explained
The CVSS 3.1 score of 5.5 (MEDIUM) reflects the local-access requirement (AV:L), low complexity (AC:L), and requirement for low privilege (PR:L). The vulnerability causes availability impact (A:H) by preventing interface reporting, but does not compromise confidentiality or integrity. The lack of network-reachability or root-privilege requirements moderates the score compared to remote kernel vulnerabilities.
Frequently asked questions
Will this affect my production systems if I'm not using macvlan?
No. This vulnerability is specific to the macvlan driver. Systems using standard bridge, bonding, or overlay networking (Docker/Kubernetes default) are unaffected. Only environments explicitly configuring macvlan interfaces in bridge mode are at risk.
Can this vulnerability be exploited remotely?
No. The vulnerability requires local access and the ability to configure network interfaces, which typically requires root or CAP_NET_ADMIN capability. It cannot be exploited from the network.
What happens if I don't patch—does my system crash?
Your system will not crash. The impact is limited to the inability to query or display macvlan interface configuration details via 'ip link show' or similar tools. Core networking and data path functionality remain intact; only management visibility is affected.
Are there workarounds before patching?
Yes. Avoid configuring bc_cutoff to non-default values (anything other than 1) on production macvlan interfaces until the kernel is patched. If bc_cutoff is already set to a non-default value and interface reporting fails, resetting it to the default (1) will restore visibility.
This analysis is provided for informational purposes and does not constitute professional security advice. Verify all patch versions, CVE identifiers, and affected product information directly against vendor advisories and security bulletins before making remediation decisions. Organizations should conduct their own risk assessments and testing before applying patches. SEC.co makes no warranty regarding the completeness, accuracy, or applicability of this information to any specific environment. Source: NVD (public-domain), retrieved 2026-07-31. Analysis generated by SEC.co (claude-haiku-4-5).
Affected vendors
Related vulnerabilities
- CVE-2025-71313MEDIUMLinux Kernel PCI Endpoint NULL Pointer Dereference
- CVE-2025-71314MEDIUMLinux Panthor GPU Driver Denial of Service via Cache Flush Timeout
- CVE-2025-71315MEDIUMLinux Kernel vkms DRM Vblank Timer Denial of Service
- CVE-2026-0268MEDIUMPrisma Access Agent Linux VPN Bypass Vulnerability
- CVE-2026-10004MEDIUMChrome UI Spoofing Vulnerability – Password Dialog Hijacking
- CVE-2026-10018MEDIUMInteger Overflow in Chrome ANGLE GPU Graphics Layer
- CVE-2026-10912MEDIUMChrome Extension Same-Origin Policy Bypass (CVSS 6.5)
- CVE-2026-10916MEDIUMChrome DevTools UXSS Vulnerability