CVE-2026-53337 PUBLISHED

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

Assigner: Linux
Reserved: 09.06.2026 Published: 01.07.2026 Updated: 01.07.2026

In 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:

<pre>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; </pre>

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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from e2a7420df2e01370b40e4cf7b85ab9a885c6d755 to 1b7558c85493467b2ea20738866b822db6442034 (excl.)
  • affected from e2a7420df2e01370b40e4cf7b85ab9a885c6d755 to b02b2e3e876c18733b868a29064abd11cdbf8feb (excl.)
  • affected from e2a7420df2e01370b40e4cf7b85ab9a885c6d755 to 66693957bacd1c9dae6188a7312d6be69a221f2d (excl.)
  • affected from e2a7420df2e01370b40e4cf7b85ab9a885c6d755 to a629418d463fb50d132a1aa063b0105857311e5f (excl.)
  • affected from e2a7420df2e01370b40e4cf7b85ab9a885c6d755 to c2cfe290fdb1c32a4f4eb2b8ca3f363b305d21ba (excl.)
  • affected from e2a7420df2e01370b40e4cf7b85ab9a885c6d755 to bcb8fad90f27300add583a8371db504b766d95c7 (excl.)
  • affected from e2a7420df2e01370b40e4cf7b85ab9a885c6d755 to b0878106ddc486375084145848ff255dedfff46a (excl.)
  • affected from e2a7420df2e01370b40e4cf7b85ab9a885c6d755 to a764b0e8317a863006e05732e1aefe821b9d8c2d (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 5.3 is affected
  • unaffected from 0 to 5.3 (excl.)
  • unaffected from 5.10.259 to 5.10.* (incl.)
  • unaffected from 5.15.210 to 5.15.* (incl.)
  • unaffected from 6.1.176 to 6.1.* (incl.)
  • unaffected from 6.6.143 to 6.6.* (incl.)
  • unaffected from 6.12.94 to 6.12.* (incl.)
  • unaffected from 6.18.36 to 6.18.* (incl.)
  • unaffected from 7.0.13 to 7.0.* (incl.)
  • unaffected from 7.1 to * (incl.)

References