Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2A6C948B36A for ; Wed, 1 Jul 2026 13:34:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782912888; cv=none; b=SpcIA3KIcue/LJw/9gDwSsv7nVbEohupZMhsQmPwlDPdytQWV8yTnap11ReAyjd7JXkM3NUrfy++PjRMuDhJXmAeokhk+meREtolZxSnXQHzdr20f9tO2H3X40zyWJOaPXqzpiff1QJlt3eA5hiOABkLUwTjQknfO2HfGCeYlUE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782912888; c=relaxed/simple; bh=pkBt+oUAVPX6PefRigBd8pAkBkNwPV5WdKsCAEGijfw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uNwM5/w4Pvbd/GnGMjfcKL/eSOK+ZCit6AzRbjSy1jqI3fgjCUoZ1vOMGzHAKeuwXHBA+l46M5gpWnVktM8mOKZZ7HjkpVwDrTCYDHEPUJ+NczUpd3SiK1C4/DxQ8kWGEud/hQ6ll3REFoEMUHVEUJcQkcVtY5u9xuXkKDxxXwI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Wd6AdWpR; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Wd6AdWpR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5E651F00A3A; Wed, 1 Jul 2026 13:34:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782912885; bh=ow6hxjM+sjndrF/2OOXuN7dSze9ZnEsQi0hYkgQ2Sq8=; h=From:To:Cc:Subject:Date:Reply-To; b=Wd6AdWpR5MwvoP7NA8afN+qSIMHGzRbIdW2jxJGzUNsaXr+0ZWmql+84AuQiG5XEa hYMPnnlV+3u7p8jNsBWJaW2BVsY2kqaDoxCOrTMJeWKKeo9at5TZukddRgaw6Ws4dj SKY0PJVLVgrZBNi/TjiOw9oAzb/VpEr1krOskREk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53337: net: bonding: fix NULL pointer dereference in bond_do_ioctl() Date: Wed, 1 Jul 2026 15:34:52 +0200 Message-ID: <2026070143-CVE-2026-53337-f2ec@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4116; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=fuXIn9+kU35Ezy8pn7vkzNn/BQ+dRe925/3ZFCN4t6A=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmu4sUyk28uTpPWfb9v8yXe+2cadjzsDXrS9moTy5b7E z4ZHsmT6YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJfKphmKe211DE1MbjdN7s r/O0/r6exej7wpNhweGqpw1LT04TTZN99eUD55FjnhI3OQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== 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: 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. The Linux kernel CVE team has assigned CVE-2026-53337 to this issue. Affected and fixed versions =========================== Issue introduced in 5.3 with commit e2a7420df2e01370b40e4cf7b85ab9a885c6d755 and fixed in 5.10.259 with commit 1b7558c85493467b2ea20738866b822db6442034 Issue introduced in 5.3 with commit e2a7420df2e01370b40e4cf7b85ab9a885c6d755 and fixed in 5.15.210 with commit b02b2e3e876c18733b868a29064abd11cdbf8feb Issue introduced in 5.3 with commit e2a7420df2e01370b40e4cf7b85ab9a885c6d755 and fixed in 6.1.176 with commit 66693957bacd1c9dae6188a7312d6be69a221f2d Issue introduced in 5.3 with commit e2a7420df2e01370b40e4cf7b85ab9a885c6d755 and fixed in 6.6.143 with commit a629418d463fb50d132a1aa063b0105857311e5f Issue introduced in 5.3 with commit e2a7420df2e01370b40e4cf7b85ab9a885c6d755 and fixed in 6.12.94 with commit c2cfe290fdb1c32a4f4eb2b8ca3f363b305d21ba Issue introduced in 5.3 with commit e2a7420df2e01370b40e4cf7b85ab9a885c6d755 and fixed in 6.18.36 with commit bcb8fad90f27300add583a8371db504b766d95c7 Issue introduced in 5.3 with commit e2a7420df2e01370b40e4cf7b85ab9a885c6d755 and fixed in 7.0.13 with commit b0878106ddc486375084145848ff255dedfff46a Issue introduced in 5.3 with commit e2a7420df2e01370b40e4cf7b85ab9a885c6d755 and fixed in 7.1 with commit a764b0e8317a863006e05732e1aefe821b9d8c2d 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-53337 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/net/bonding/bond_main.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/1b7558c85493467b2ea20738866b822db6442034 https://git.kernel.org/stable/c/b02b2e3e876c18733b868a29064abd11cdbf8feb https://git.kernel.org/stable/c/66693957bacd1c9dae6188a7312d6be69a221f2d https://git.kernel.org/stable/c/a629418d463fb50d132a1aa063b0105857311e5f https://git.kernel.org/stable/c/c2cfe290fdb1c32a4f4eb2b8ca3f363b305d21ba https://git.kernel.org/stable/c/bcb8fad90f27300add583a8371db504b766d95c7 https://git.kernel.org/stable/c/b0878106ddc486375084145848ff255dedfff46a https://git.kernel.org/stable/c/a764b0e8317a863006e05732e1aefe821b9d8c2d