{"id":"CVE-2026-53337","summary":"net: bonding: fix NULL pointer dereference in bond_do_ioctl()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: bonding: fix NULL pointer dereference in bond_do_ioctl()\n\nIn bond_do_ioctl(), slave_dev is obtained via __dev_get_by_name() which\ncan return NULL if the requested interface name does not exist. However,\nthe subsequent slave_dbg() call is placed before the NULL check:\n\n    slave_dev = __dev_get_by_name(net, ifr-\u003eifr_slave);\n    slave_dbg(bond_dev, slave_dev, \"slave_dev=%p:\\n\", slave_dev); //here\n    if (!slave_dev)\n        return -ENODEV;\n\nThe slave_dbg() macro expands to netdev_dbg(bond_dev, \"(slave %s): \" fmt,\n(slave_dev)-\u003ename, ...) which unconditionally dereferences slave_dev-\u003ename\nbefore the NULL check is performed. This results in a NULL pointer\ndereference kernel oops when a user calls bonding ioctl (e.g.\nSIOCBONDENSLAVE, SIOCBONDRELEASE, etc.) with a non-existent slave\ninterface name.\n\nThis is reachable from userspace via the bonding ioctl interface with\nCAP_NET_ADMIN capability, making it a potential local denial-of-service\nvector.\n\nFix by moving the slave_dbg() call after the NULL check.","modified":"2026-07-08T08:13:46.789181163Z","published":"2026-07-01T13:32:19.046Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53337.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1b7558c85493467b2ea20738866b822db6442034"},{"type":"WEB","url":"https://git.kernel.org/stable/c/66693957bacd1c9dae6188a7312d6be69a221f2d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a629418d463fb50d132a1aa063b0105857311e5f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a764b0e8317a863006e05732e1aefe821b9d8c2d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b02b2e3e876c18733b868a29064abd11cdbf8feb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b0878106ddc486375084145848ff255dedfff46a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bcb8fad90f27300add583a8371db504b766d95c7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c2cfe290fdb1c32a4f4eb2b8ca3f363b305d21ba"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53337.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53337"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"e2a7420df2e01370b40e4cf7b85ab9a885c6d755"},{"fixed":"1b7558c85493467b2ea20738866b822db6442034"},{"fixed":"b02b2e3e876c18733b868a29064abd11cdbf8feb"},{"fixed":"66693957bacd1c9dae6188a7312d6be69a221f2d"},{"fixed":"a629418d463fb50d132a1aa063b0105857311e5f"},{"fixed":"c2cfe290fdb1c32a4f4eb2b8ca3f363b305d21ba"},{"fixed":"bcb8fad90f27300add583a8371db504b766d95c7"},{"fixed":"b0878106ddc486375084145848ff255dedfff46a"},{"fixed":"a764b0e8317a863006e05732e1aefe821b9d8c2d"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-53337.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.3.0"},{"fixed":"5.10.259"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.210"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.176"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.143"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.94"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.36"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.0.13"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-53337.json"}}],"schema_version":"1.7.5"}