net: bonding: fix NULL pointer dereference in bond_do_ioctl()

Summary

CVECVE-2026-53337
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-07-01 14:16:41 UTC
Updated2026-07-01 14:16:41 UTC
DescriptionIn the Linux kernel, the following vulnerability has been resolved: net: bonding: fix NULL pointer dereference in bond_do_ioctl() In bond_do_ioctl(), slave_dev is obtained via __dev_get_by_name() which can return NULL if the requested interface name does not exist. However, the subsequent slave_dbg() call is placed before the NULL check: slave_dev = __dev_get_by_name(net, ifr->ifr_slave); slave_dbg(bond_dev, slave_dev, "slave_dev=%p:\n", slave_dev); //here if (!slave_dev) return -ENODEV; The slave_dbg() macro expands to netdev_dbg(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ...) which unconditionally dereferences slave_dev->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 CAP_NET_ADMIN capability, making it a potential local denial-of-service vector. Fix by moving the slave_dbg() call after the NULL check.

Risk And Classification

EPSS: 0.001640000 probability, percentile 0.059780000 (date 2026-07-04)

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected e2a7420df2e01370b40e4cf7b85ab9a885c6d755 1b7558c85493467b2ea20738866b822db6442034 git Not specified
CNA Linux Linux affected e2a7420df2e01370b40e4cf7b85ab9a885c6d755 b02b2e3e876c18733b868a29064abd11cdbf8feb git Not specified
CNA Linux Linux affected e2a7420df2e01370b40e4cf7b85ab9a885c6d755 66693957bacd1c9dae6188a7312d6be69a221f2d git Not specified
CNA Linux Linux affected e2a7420df2e01370b40e4cf7b85ab9a885c6d755 a629418d463fb50d132a1aa063b0105857311e5f git Not specified
CNA Linux Linux affected e2a7420df2e01370b40e4cf7b85ab9a885c6d755 c2cfe290fdb1c32a4f4eb2b8ca3f363b305d21ba git Not specified
CNA Linux Linux affected e2a7420df2e01370b40e4cf7b85ab9a885c6d755 bcb8fad90f27300add583a8371db504b766d95c7 git Not specified
CNA Linux Linux affected e2a7420df2e01370b40e4cf7b85ab9a885c6d755 b0878106ddc486375084145848ff255dedfff46a git Not specified
CNA Linux Linux affected e2a7420df2e01370b40e4cf7b85ab9a885c6d755 a764b0e8317a863006e05732e1aefe821b9d8c2d git Not specified
CNA Linux Linux affected 5.3 Not specified
CNA Linux Linux unaffected 5.3 semver Not specified
CNA Linux Linux unaffected 5.10.259 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.210 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.176 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.143 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.94 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.36 6.18.* semver Not specified
CNA Linux Linux unaffected 7.0.13 7.0.* semver Not specified
CNA Linux Linux unaffected 7.1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/c2cfe290fdb1c32a4f4eb2b8ca3f363b305d21ba 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/a629418d463fb50d132a1aa063b0105857311e5f 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/b0878106ddc486375084145848ff255dedfff46a 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/a764b0e8317a863006e05732e1aefe821b9d8c2d 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/b02b2e3e876c18733b868a29064abd11cdbf8feb 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/66693957bacd1c9dae6188a7312d6be69a221f2d 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/1b7558c85493467b2ea20738866b822db6442034 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/bcb8fad90f27300add583a8371db504b766d95c7 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report