# CVE-2026-98074: bonding: do not clear curr_active_slave prematurely when releasing all slaves

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-09-25T10:24:13.870Z
- Modified: 2026-11-18T13:00:23.610Z
- Weaknesses: CWE-404
- Assigned by: Linux

## Description

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

bonding: do not clear curr_active_slave prematurely when releasing all slaves

When releasing all slaves during bond destruction (all == true),
__bond_release_one() unconditionally clears bond->curr_active_slave to
NULL in every iteration.

If a backup slave is released before the active slave,
bond_alb_deinit_slave() triggers rlb_teach_disabled_mac_on_primary(),
which increments the active slave dev promiscuity counter and sets
bond_info->primary_is_promisc = 1.

Because bond->curr_active_slave was prematurely cleared to NULL when
releasing the backup slave, the subsequent iteration releasing the active
slave evaluates oldcurrent as NULL, so bond_change_active_slave(bond, NULL)
is skipped. Consequently, bond_alb_handle_active_change() is never called
to decrement the promiscuity counter, permanently leaking promiscuous
mode on the physical device after bond teardown.

When oldcurrent == slave, bond_change_active_slave(bond, NULL) already sets
bond->curr_active_slave to NULL. We only need to avoid selecting a new
active slave when all == true. Replace the if (all) branch with
if (!all && oldcurrent == slave).

(As written by CVE List.)

## Affected

- Linux Linux: from 0896341a44bf04bf6149d9307fe4686006f3eee1 before b1ded242135071769902778dbab081e3fc09730f; from 0896341a44bf04bf6149d9307fe4686006f3eee1 before e39b203ec9e73852098d41b26386172d51babeb9; from 0896341a44bf04bf6149d9307fe4686006f3eee1 before 384739c631aa6749356ba062d6b7c9a484a733f6; from 0896341a44bf04bf6149d9307fe4686006f3eee1 before 7b435c69a30b40efc642de98b9bfa95fcf2ad4f0; from 0896341a44bf04bf6149d9307fe4686006f3eee1 before d6ef22e79c2be3612868daede0e9a84f05439d9e; from 0896341a44bf04bf6149d9307fe4686006f3eee1 before 19ba7ecfade159b3702c78a360fd7d971e2b7109; from 0896341a44bf04bf6149d9307fe4686006f3eee1 before 6d0ee411d5437f3d126ea6979acb83a8da29dc81; from 0896341a44bf04bf6149d9307fe4686006f3eee1 before af602c7aa5fedc9be3043244017aef4f26c96b70; 3.9 (not affected: before 3.9; from 5.10.271 up to 5.10.*; from 5.15.222 up to 5.15.*; from 6.1.189 up to 6.1.*; from 6.6.158 up to 6.6.*; from 6.12.111 up to 6.12.*; from 6.18.53 up to 6.18.*; from 7.2.7 up to 7.2.*; from 7.3 up to *)
- linux linux_kernel: from 3.9 before 5.10.271; from 5.11 before 5.15.222; from 5.16 before 6.1.189; from 6.2 before 6.6.158; from 6.7 before 6.12.111; from 6.13 before 6.18.53; from 6.19 before 7.2.7; 7.3

## References

- <https://git.kernel.org/stable/c/b1ded242135071769902778dbab081e3fc09730f> (patch)
- <https://git.kernel.org/stable/c/e39b203ec9e73852098d41b26386172d51babeb9> (patch)
- <https://git.kernel.org/stable/c/384739c631aa6749356ba062d6b7c9a484a733f6> (patch)
- <https://git.kernel.org/stable/c/7b435c69a30b40efc642de98b9bfa95fcf2ad4f0> (patch)
- <https://git.kernel.org/stable/c/d6ef22e79c2be3612868daede0e9a84f05439d9e> (patch)
- <https://git.kernel.org/stable/c/19ba7ecfade159b3702c78a360fd7d971e2b7109> (patch)
- <https://git.kernel.org/stable/c/6d0ee411d5437f3d126ea6979acb83a8da29dc81> (patch)
- <https://git.kernel.org/stable/c/af602c7aa5fedc9be3043244017aef4f26c96b70> (patch)

## Sources

- CVE List: [CVE-2026-98074](https://www.cve.org/CVERecord?id=CVE-2026-98074), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-98074](https://nvd.nist.gov/vuln/detail/CVE-2026-98074), Public domain, modified 2026-11-18

---

Page: https://cve.day/CVE-2026-98074 · Whole record: https://cve.day/CVE-2026-98074.json · Rebuilt by cve.day 2026-11-25T22:59:41.048Z
