CVE-2026-143271: bonding: fix missing down path on speed/duplex failure after FAIL->UP
In the Linux kernel, the following vulnerability has been resolved:
bonding: fix missing down path on speed/duplex failure after FAIL->UP
In bondmiimoncommit(), when a slave is proposed as BONDLINKUP but bondupdatespeedduplex() fails in bonding mode that needs speed/duplex (802.3ad, tlb, alb), the slave is set to BONDLINKDOWN directly. This bypasses bondsetslavelinkstate(), bondmiimonlinkchange() and failover.
This is fine for slave that coming from BONDLINKBACK, which was never brought up and is not in use. But since commit 1899bb325149 ("bonding: fix state transition issue in link monitoring") the commit phase also handles BONDLINKFAIL -> BONDLINKUP which means a slave that is still in use and may be curractiveslave.
If the link recovers within downdelay and goes down again before the commit phase reads speed/duplex, the slave is silently marked down while remaining the active slave in worst cases. In alb/tlb the bond MAC stays on the dead port, no failover happens and TLB/RLB state is not cleaned, so the bond stops passing traffic until that link comes back even though other slaves are up. A non-active slave is affected too, in alb, RLB clients assigned to it are not reassigned and become unreachable.
Reproduced in tlb and alb mode with miimon=100 and downdelay=10000 by flapping a slave within downdelay and dropping it again before commit (a longer delay was added between inspect and commit to make window wider and easier to test): bond0: (slave enp0s3): link status down for interface, disabling it in 10000 ms bond0: (slave enp0s3): link status up again after 3400 ms bond0: (slave enp0s3): failed to get link speed/duplex
procfs then shows the active slave with "MII Status: down" and "Link Failure Count: 0", and all traffic is lost.
Fix this by dropping the loop in bondmiimonitor() that applied all proposed link states before bondmiimoncommit(). bondmiimoncommit() now applies each state itself: UP after the speed/duplex check, as it already did, DOWN in the down path, and FAIL/BACK directly. So when the speed/duplex check runs, slave->link still holds the previous state. If the check fails for a slave that is FAIL or UP, take it through the regular down path, including failover. DOWN and BACK slaves were never brought up and are still just reverted to DOWN. The down path is moved into bondmiimonslavedown() so both callers share it.
After the fix: bond0: (slave enp0s3): failed to get link speed/duplex bond0: (slave enp0s3): link status definitely down, disabling slave bond0: (slave enp0s4): making interface the new active one
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 4.15 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 4.20 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.4 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7
Event History
Frequently Asked Questions
Which bonding configurations are exposed to this issue?
The issue applies to bonding modes that require speed and duplex information: 802.3ad, TLB, and ALB. The most severe outcome occurs when the affected slave remains the current active slave.
What link-state sequence is required to trigger the failure?
A slave link must recover within its downdelay period, transition from FAIL toward UP, and then go down again before the commit phase can read its speed and duplex. If the speed/duplex update fails at that point, the slave can be marked down without the normal link-change and failover handling.
What operational symptoms indicate the bond may already be affected?
Traffic can stop passing even while other bond slaves are up, because the dead port may remain the active path. In ALB or TLB mode, the bond MAC can remain on the dead port and TLB/RLB state may not be cleaned; ALB can also leave RLB clients assigned to a non-active affected slave.