7.3high
bonding: alb: re-check primary_is_promisc under RTNL in bond_alb_monitor
- Severity
- 7.3high CVSS:3.1 by Linux
- Exploit likelihood
- 0.13% (higher than 2% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: bonding: alb: re-check primary_is_promisc under RTNL in bond_alb_monitor bond_alb_monitor() reads primary_is_promisc under RCU, then drops RCU and takes RTNL via rtnl_trylock() before undoing the promiscuity it set on the active slave. In that window the active slave can change under RTNL (RTM_DELLINK -> __bond_release_one() -> bond_alb_handle_active_change()), which already drops the promiscuity and clears primary_is_promisc. The monitor still acts on the stale decision: if the slave was removed with no failover, curr_active_slave is now NULL and the deref faults; if it failed over, the stale dev_set_promiscuity(-1) underflows the new slave's promiscuity counter and pins it in IFF_PROMISC. Oops: general protection fault, probably for non-canonical address ... KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] Workqueue: b42 bond_alb_monitor RIP: 0010:bond_alb_monitor (drivers/net/bonding/bond_alb.c:1600) process_one_work (kernel/workqueue.c:3322) worker_thread (kernel/workqueue.c:3486) kthread (kernel/kthread.c:436) ret_from_fork (arch/x86/kernel/process.c:158) Kernel panic - not syncing: Fatal exception Re-check primary_is_promisc (and curr_active_slave) after taking RTNL so the monitor only undoes an increment it still owns. The other bonding monitors already re-read state under RTNL in their commit phase (bond_miimon_commit/bond_ab_arp_commit); bond_alb_monitor() was the only one acting on the pre-trylock decision.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from d0e81b7e2246a41d068ecaf15aac9de570816d63 before f7668762bf5fd6db9397de5c0514407489d9d815, from d0e81b7e2246a41d068ecaf15aac9de570816d63 before 09add8d5cfa9c46828f51eaad162c36e86366b71, from d0e81b7e2246a41d068ecaf15aac9de570816d63 before b82f51681a7a88c7d3c865e817a3340d42b5fa2a, from d0e81b7e2246a41d068ecaf15aac9de570816d63 before dd148539fb4741d01c06b7d2c8bd84b01920756c, from d0e81b7e2246a41d068ecaf15aac9de570816d63 before dccec0227ed8d9e36936d66e256b957dc2858468, from d0e81b7e2246a41d068ecaf15aac9de570816d63 before 2faf75a8a06504071b4c0aea7e45a9cc49a4e187, from d0e81b7e2246a41d068ecaf15aac9de570816d63 before 257c4a3a34d8f51efb00f35375a0c6ce3c8f6ce2, from d0e81b7e2246a41d068ecaf15aac9de570816d63 before 683c6ba6e58e6ed1037831ea97dd58d9c0e76b8d and 1 more Not affected: before 2.6.24, from 5.10.265 up to 5.10.*, from 5.15.216 up to 5.15.*, from 6.1.183 up to 6.1.*, from 6.6.152 up to 6.6.*, from 6.12.104 up to 6.12.* | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: bonding: alb: re-check primary_is_promisc under RTNL in bond_alb_monitor bond_alb_monitor() reads primary_is_promisc under RCU, then drops RCU and takes RTNL via rtnl_trylock() before undoing the promiscuity it set on the active slave. In that window the active slave can change under RTNL (RTM_DELLINK -> __bond_release_one() -> bond_alb_handle_active_change()), which already drops the promiscuity and clears primary_is_promisc. The monitor still acts on the stale decision: if the slave was removed with no failover, curr_active_slave is now NULL and the deref faults; if it failed over, the stale dev_set_promiscuity(-1) underflows the new slave's promiscuity counter and pins it in IFF_PROMISC. Oops: general protection fault, probably for non-canonical address ... KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] Workqueue: b42 bond_alb_monitor RIP: 0010:bond_alb_monitor (drivers/net/bonding/bond_alb.c:1600) process_one_work (kernel/workqueue.c:3322) worker_thread (kernel/workqueue.c:3486) kthread (kernel/kthread.c:436) ret_from_fork (arch/x86/kernel/process.c:158) Kernel panic - not syncing: Fatal exception Re-check primary_is_promisc (and curr_active_slave) after taking RTNL so the monitor only undoes an increment it still owns. The other bonding monitors already re-read state under RTNL in their commit phase (bond_miimon_commit/bond_ab_arp_commit); bond_alb_monitor() was the only one acting on the pre-trylock decision.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: bonding: alb: volver a verificar primary_is_promisc bajo RTNL en bond_alb_monitor bond_alb_monitor() lee primary_is_promisc bajo RCU, luego libera RCU y toma RTNL a través de rtnl_trylock() antes de deshacer la promiscuidad que estableció en el esclavo activo. En esa ventana, el esclavo activo puede cambiar bajo RTNL (RTM_DELLINK -> __bond_release_one() -> bond_alb_handle_active_change()), lo que ya libera la promiscuidad y borra primary_is_promisc. El monitor sigue actuando sobre la decisión obsoleta: si el esclavo fue eliminado sin conmutación por error, curr_active_slave es ahora NULL y la desreferencia falla; si conmutó por error, el obsoleto dev_set_promiscuity(-1) provoca un desbordamiento negativo en el contador de promiscuidad del nuevo esclavo y lo fija en IFF_PROMISC. Oops: fallo de protección general, probablemente por una dirección no canónica ... KASAN: desreferencia de puntero nulo en el rango [0x0000000000000000-0x0000000000000007] Cola de trabajo: b42 bond_alb_monitor RIP: 0010:bond_alb_monitor (drivers/net/bonding/bond_alb.c:1600) process_one_work (kernel/workqueue.c:3322) worker_thread (kernel/workqueue.c:3486) kthread (kernel/kthread.c:436) ret_from_fork (arch/x86/kernel/process.c:158) Pánico del kernel - no sincronizando: Excepción fatal Volver a verificar primary_is_promisc (y curr_active_slave) después de tomar RTNL para que el monitor solo deshaga un incremento que aún posee. Los otros monitores de bonding ya releen el estado bajo RTNL en su fase de confirmación (bond_miimon_commit/bond_ab_arp_commit); bond_alb_monitor() era el único que actuaba sobre la decisión previa al trylock.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-74726 changed 2026-10-16 | CVE Terms of Use |
| NVD | CVE-2026-74726 changed 2026-10-16 | Public domain |