{"id":"CVE-2026-99865","aliases":["CVE-2026-99865"],"related":[],"kind":"vulnerability","state":"published","title":"macvlan: fix passthru promiscuity accounting while down","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmacvlan: fix passthru promiscuity accounting while down\n\nmacvlan_changelink() adjusts the lower device's promiscuity count when\nNOPROMISC changes, even if the passthru macvlan is down. The reference\nis acquired in macvlan_open() and released in macvlan_stop(), so a down\ninterface has no reference to change.\n\nClearing NOPROMISC while down leaves an extra reference after the next\nopen/stop cycle. Setting it while down can remove a reference held by\nanother user of the lower device.\n\nGuard the count adjustment with netif_running(dev). Keep storing the\nrequested flags while down so the next open uses the new setting.\n\nComparing changelink with open/stop exposed the unmatched count changes;\nthe same issue was also described in earlier macvlan reviews. A netlink\ntest on UML reproduced both DOWN cases before the fix and verified the\nexpected counts afterwards. Repeated flag updates, two open/stop cycles,\ndeletion and bidirectional small-frame delivery were also checked.\n\nFull x86_64 builds completed with WERROR disabled for allmodconfig, and\nWERROR and KASAN disabled for allyesconfig, including the resulting\ndependency changes. Neither comparison showed new diagnostics.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmacvlan: fix passthru promiscuity accounting while down\n\nmacvlan_changelink() adjusts the lower device's promiscuity count when\nNOPROMISC changes, even if the passthru macvlan is down. The reference\nis acquired in macvlan_open() and released in macvlan_stop(), so a down\ninterface has no reference to change.\n\nClearing NOPROMISC while down leaves an extra reference after the next\nopen/stop cycle. Setting it while down can remove a reference held by\nanother user of the lower device.\n\nGuard the count adjustment with netif_running(dev). Keep storing the\nrequested flags while down so the next open uses the new setting.\n\nComparing changelink with open/stop exposed the unmatched count changes;\nthe same issue was also described in earlier macvlan reviews. A netlink\ntest on UML reproduced both DOWN cases before the fix and verified the\nexpected counts afterwards. Repeated flag updates, two open/stop cycles,\ndeletion and bidirectional small-frame delivery were also checked.\n\nFull x86_64 builds completed with WERROR disabled for allmodconfig, and\nWERROR and KASAN disabled for allyesconfig, including the resulting\ndependency changes. Neither comparison showed new diagnostics.","source":"cvelist"}],"published":"2026-11-30T13:17:46.950Z","modified":"2026-11-30T14:20:20.443Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"df8ef8f3aaa6692970a436204c4429210addb23a","fixed":"ea2b56a212dae75a890d69dd315f9d64b043eadf","status":"affected"},{"type":"git","introduced":"df8ef8f3aaa6692970a436204c4429210addb23a","fixed":"753bed28be81f684453a8cbe56e8570d9c8f0f01","status":"affected"},{"type":"git","introduced":"df8ef8f3aaa6692970a436204c4429210addb23a","fixed":"19224e3a593fe44c7b6cf63a380f30b70febc6ec","status":"affected"},{"type":"git","introduced":"df8ef8f3aaa6692970a436204c4429210addb23a","fixed":"a8ba54055731ad77379c857decbdf039876efed8","status":"affected"},{"type":"git","introduced":"df8ef8f3aaa6692970a436204c4429210addb23a","fixed":"9660398c59dea26abdb6eba6b93fd3466a9a7172","status":"affected"},{"type":"git","introduced":"df8ef8f3aaa6692970a436204c4429210addb23a","fixed":"33e747a4822b77117a17805e0c7df9e0bb03413b","status":"affected"},{"type":"git","introduced":"df8ef8f3aaa6692970a436204c4429210addb23a","fixed":"62f5a53cc64386a00a63b9d4ec22bfce2ed1a35e","status":"affected"},{"type":"git","introduced":"df8ef8f3aaa6692970a436204c4429210addb23a","fixed":"b6743653d134c9ef8436e2db1be1ad4c1e0d0091","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.5","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.5","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/ea2b56a212dae75a890d69dd315f9d64b043eadf","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/753bed28be81f684453a8cbe56e8570d9c8f0f01","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/19224e3a593fe44c7b6cf63a380f30b70febc6ec","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a8ba54055731ad77379c857decbdf039876efed8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9660398c59dea26abdb6eba6b93fd3466a9a7172","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/33e747a4822b77117a17805e0c7df9e0bb03413b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/62f5a53cc64386a00a63b9d4ec22bfce2ed1a35e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b6743653d134c9ef8436e2db1be1ad4c1e0d0091","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99865","url":"https://www.cve.org/CVERecord?id=CVE-2026-99865","licence":"CVE Terms of Use","modified":"2026-11-30T13:17:46.950Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99865","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99865","licence":"Public domain","modified":"2026-11-30T14:20:20.443Z"}],"updatedAt":"2026-11-30T14:33:17.689Z","epss":{"score":0.0022,"percentile":0.13274,"date":"2026-12-01T12:00:22.000Z"}}