CVE-2026-53337: net: bonding: fix NULL pointer dereference in bond_do_ioctl()
In the Linux kernel, the following vulnerability has been resolved:
net: bonding: fix NULL pointer dereference in bonddoioctl()
In bonddoioctl(), slavedev is obtained via devgetbyname() which can return NULL if the requested interface name does not exist. However, the subsequent slavedbg() call is placed before the NULL check:
slavedev = devgetbyname(net, ifr->ifrslave); slavedbg(bonddev, slavedev, "slavedev=%p:\n", slavedev); //here if (!slavedev) return -ENODEV;
The slavedbg() macro expands to netdevdbg(bonddev, "(slave %s): " fmt, (slavedev)->name, ...) which unconditionally dereferences slavedev->name before the NULL check is performed. This results in a NULL pointer dereference kernel oops when a user calls bonding ioctl (e.g. SIOCBONDENSLAVE, SIOCBONDRELEASE, etc.) with a non-existent slave interface name.
This is reachable from userspace via the bonding ioctl interface with CAPNETADMIN capability, making it a potential local denial-of-service vector.
Fix by moving the slavedbg() call after the NULL check.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 6.6.143.1-1
Event History
Frequently Asked Questions
What is the severity of CVE-2026-53337?
CVE-2026-53337 has a risk rating of 21, indicating a significant vulnerability.
How does CVE-2026-53337 impact the Linux kernel?
CVE-2026-53337 allows for a NULL pointer dereference in the bond_do_ioctl() function, which can cause a crash.
How do I fix CVE-2026-53337?
To fix CVE-2026-53337, update to the latest version of the Linux kernel where the vulnerability is resolved.
Is CVE-2026-53337 related to network bonding?
Yes, CVE-2026-53337 specifically affects the bonding network feature in the Linux kernel.
What should I do if I cannot apply the fix for CVE-2026-53337?
If unable to apply the fix for CVE-2026-53337, consider disabling net bonding as a temporary workaround.