macvlan: fix passthru promiscuity accounting while down

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

macvlan: fix passthru promiscuity accounting while down

macvlan_changelink() adjusts the lower device's promiscuity count when NOPROMISC changes, even if the passthru macvlan is down. The reference is acquired in macvlan_open() and released in macvlan_stop(), 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 netif_running(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 x86_64 builds completed with WERROR disabled for allmodconfig, and WERROR and KASAN disabled for allyesconfig, including the resulting dependency changes. Neither comparison showed new diagnostics.

ProductVersions
Linux Linuxdf8ef8f3aaa6692970a436204c4429210addb23a to before ea2b56a212dae75a890d69dd315f9d64b043eadf Affecteddf8ef8f3aaa6692970a436204c4429210addb23a to before 753bed28be81f684453a8cbe56e8570d9c8f0f01 Affecteddf8ef8f3aaa6692970a436204c4429210addb23a to before 19224e3a593fe44c7b6cf63a380f30b70febc6ec Affecteddf8ef8f3aaa6692970a436204c4429210addb23a to before a8ba54055731ad77379c857decbdf039876efed8 Affecteddf8ef8f3aaa6692970a436204c4429210addb23a to before 9660398c59dea26abdb6eba6b93fd3466a9a7172 Affecteddf8ef8f3aaa6692970a436204c4429210addb23a to before 33e747a4822b77117a17805e0c7df9e0bb03413b Affecteddf8ef8f3aaa6692970a436204c4429210addb23a to before 62f5a53cc64386a00a63b9d4ec22bfce2ed1a35e Affecteddf8ef8f3aaa6692970a436204c4429210addb23a to before b6743653d134c9ef8436e2db1be1ad4c1e0d0091 Affected
Linux Linux3.5 Affectedbefore 3.5 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.117 through 6.12.* Not Affected6.18.63 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.