CVE-2026-99865: macvlan: fix passthru promiscuity accounting while down
In the Linux kernel, the following vulnerability has been resolved:
macvlan: fix passthru promiscuity accounting while down
macvlanchangelink() adjusts the lower device's promiscuity count when NOPROMISC changes, even if the passthru macvlan is down. The reference is acquired in macvlanopen() and released in macvlanstop(), so a down interface has no reference to change.
Clearing NOPROMISC while down leaves an extra reference after the next open/stop cycle. Setting it while down can remove a reference held by another user of the lower device.
Guard the count adjustment with netifrunning(dev). Keep storing the requested flags while down so the next open uses the new setting.
Comparing changelink with open/stop exposed the unmatched count changes; the same issue was also described in earlier macvlan reviews. A netlink test on UML reproduced both DOWN cases before the fix and verified the expected counts afterwards. Repeated flag updates, two open/stop cycles, deletion and bidirectional small-frame delivery were also checked.
Full x8664 builds completed with WERROR disabled for allmodconfig, and WERROR and KASAN disabled for allyesconfig, including the resulting dependency changes. Neither comparison showed new diagnostics.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.63 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1Fixed in 7.3.4-1 - Compensating control
In macvlan_changelink(), guard the lower device's promiscuity-count adjustment with netif_running(dev), while continuing to store requested NOPROMISC changes when the passthru macvlan is down.
Event History
Frequently Asked Questions
Which systems are affected by this issue?
The issue applies to systems using a passthru macvlan device whose NOPROMISC setting is changed while that macvlan interface is down. The affected accounting is on the macvlan device's lower device.
What operation causes the incorrect promiscuity reference accounting?
Changing NOPROMISC through macvlan_changelink() while the passthru macvlan is down causes the problem. Clearing the flag can leave an extra reference after a later open/stop cycle, while setting it can remove a reference held by another lower-device user.
What can be done before applying the fix?
Avoid changing the NOPROMISC setting on passthru macvlan interfaces while they are down. Requested flags can be stored while down, but the lower device's promiscuity count should not be adjusted until the interface is running.