CVE-2026-23451: bonding: prevent potential infinite loop in bond_header_parse()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
bonding: prevent potential infinite loop in bond_header_parse()
bond_header_parse() can loop if a stack of two bonding devices is setup, because skb->dev always points to the hierarchy top.
Add new "const struct net_device *dev" parameter to (struct header_ops)->parse() method to make sure the recursion is bounded, and that the final leaf parse method is called.
The Linux kernel CVE team has assigned CVE-2026-23451 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.18.19 with commit 6ac890f1d60ac3707ee8dae15a67d9a833e49956 and fixed in 6.18.20 with commit 4172a7901cf43fe1cc63ef7a2ef33735ff7b7d13 Issue introduced in 6.19.9 with commit 95597d11dc8bddb2b9a051c9232000bfbb5e43ba and fixed in 6.19.10 with commit 9b49c854f14f5e2d493e562a1e28d2e57fe37371 Issue introduced in 7.0-rc4 with commit 950803f7254721c1c15858fbbfae3deaaeeecb11 and fixed in 7.0-rc5 with commit b7405dcf7385445e10821777143f18c3ce20fa04
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-23451
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/firewire/net.c drivers/net/bonding/bond_main.c include/linux/etherdevice.h include/linux/if_ether.h include/linux/netdevice.h net/ethernet/eth.c net/ipv4/ip_gre.c net/mac802154/iface.c net/phonet/af_phonet.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/946bb6cacf0ccada7bc80f1cfa07c1ed79511c1c https://git.kernel.org/stable/c/4172a7901cf43fe1cc63ef7a2ef33735ff7b7d13 https://git.kernel.org/stable/c/9b49c854f14f5e2d493e562a1e28d2e57fe37371 https://git.kernel.org/stable/c/b7405dcf7385445e10821777143f18c3ce20fa04