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 3BD4F495AD9 for ; Fri, 25 Sep 2026 10:35:47 +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=1790332548; cv=none; b=snKkv4ch12ouKkKelrRxWQ7PJaTe0AVtWX/oVieCTtbOXKHXsFEjV846tbc3ZTmvrEyfU53q/Dykjfr7KVGv3nW6EvFC3j8IR4QfVc6jKqGxMWUbclrrbh8uAwHtR96P4hVlxYKPLAURqrQwqEFcHG+W8EJgXvI/8cfvMiFAjH0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332548; c=relaxed/simple; bh=5Pe10+3u4txTVQZOr6w+UHNA/PZ1nN+jqYOKWxlG50Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=flmx+MrlaY+P6dZ2CZ3hC0pExzExZoOXLhs3TBkoQ+Ceo/prevd/D0eTc9FgXRqOIB1H2hG9QxBAknMqqj+pMMd4EGQTReZm2SFEIx5Sk5f/Wep4x2SaPYzlxIzmIsMFeP8crspvUHbWHgJRzNzBNgcc0BUSS9r55Kf0bKS/SOI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0mkMH/U4; 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="0mkMH/U4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9789C1F000FF; Fri, 25 Sep 2026 10:35:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332547; bh=f36m4XvHR8sOH8KFZNEEMldRemuh2keUuqndqgCTK74=; h=From:To:Cc:Subject:Date:Reply-To; b=0mkMH/U4uU80jx8meAHjOhn3XtU0KNsSua3MOz4iKDSTMRNfTOV6zLCERQA3AP5J1 2XwzM2IdW4/xXthD7Ax6BI+SxnRse5sBKBvlnTguBp63inzEmU3LmtrRBozINX/YbU PJFvSwbh2Ocn8QTRozpZFTVQrvL4kRNnBnT6z6ZA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98074: bonding: do not clear curr_active_slave prematurely when releasing all slaves Date: Fri, 25 Sep 2026 12:26:16 +0200 Message-ID: <2026092536-CVE-2026-98074-1c9d@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=3315; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=aFAtVb6y4MTCFdQTGJOQLyHT8jP2luPDNaS7Ib5+5HA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvHMVvH81zsrevOjD/Ll8fn1/LvrYl235MSd+wzZHE xXtB9LdHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRt4oMCxYvWr6oVbCx7sts F91WvVtqiw+qCzEsaClREtj5dGtB5I3S9dzq758tT3x4AgA= 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: bonding: do not clear curr_active_slave prematurely when releasing all slaves When releasing all slaves during bond destruction (all == true), __bond_release_one() unconditionally clears bond->curr_active_slave to NULL in every iteration. If a backup slave is released before the active slave, bond_alb_deinit_slave() triggers rlb_teach_disabled_mac_on_primary(), which increments the active slave dev promiscuity counter and sets bond_info->primary_is_promisc = 1. Because bond->curr_active_slave was prematurely cleared to NULL when releasing the backup slave, the subsequent iteration releasing the active slave evaluates oldcurrent as NULL, so bond_change_active_slave(bond, NULL) is skipped. Consequently, bond_alb_handle_active_change() is never called to decrement the promiscuity counter, permanently leaking promiscuous mode on the physical device after bond teardown. When oldcurrent == slave, bond_change_active_slave(bond, NULL) already sets bond->curr_active_slave to NULL. We only need to avoid selecting a new active slave when all == true. Replace the if (all) branch with if (!all && oldcurrent == slave). The Linux kernel CVE team has assigned CVE-2026-98074 to this issue. Affected and fixed versions =========================== Issue introduced in 3.9 with commit 0896341a44bf04bf6149d9307fe4686006f3eee1 and fixed in 6.12.111 with commit d6ef22e79c2be3612868daede0e9a84f05439d9e Issue introduced in 3.9 with commit 0896341a44bf04bf6149d9307fe4686006f3eee1 and fixed in 6.18.53 with commit 19ba7ecfade159b3702c78a360fd7d971e2b7109 Issue introduced in 3.9 with commit 0896341a44bf04bf6149d9307fe4686006f3eee1 and fixed in 7.2.7 with commit 6d0ee411d5437f3d126ea6979acb83a8da29dc81 Issue introduced in 3.9 with commit 0896341a44bf04bf6149d9307fe4686006f3eee1 and fixed in 7.3-rc2 with commit af602c7aa5fedc9be3043244017aef4f26c96b70 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-98074 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/d6ef22e79c2be3612868daede0e9a84f05439d9e https://git.kernel.org/stable/c/19ba7ecfade159b3702c78a360fd7d971e2b7109 https://git.kernel.org/stable/c/6d0ee411d5437f3d126ea6979acb83a8da29dc81 https://git.kernel.org/stable/c/af602c7aa5fedc9be3043244017aef4f26c96b70