Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 BCA813DBD65 for ; Fri, 24 Apr 2026 14:33:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041228; cv=none; b=RrjHvM3xE8z7ztbaOsTJ/psGMLiue50h/1T2MGTLMHfyJLcwfXXTH940ZnqNAKhzqpw82IO6BavpCi0kfbC2fwXnqcJQYyQXqJd45KvwfZUgsq0P9MeTFzNK8Z9h7EvOAWcaG/3pc2CJ/vhRj/j9wOCqwObV4+yeeL9l3jKnHbw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041228; c=relaxed/simple; bh=2G4c83GBOrLbCxdlpENk2S5l6I3e4fj8HXG+rY0qjQs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=H4cl5vl62Vz3sQ/Zoz+OelCHDem7TT/1EpS8oNshPEpTpuh4o9CtKLi9O9pUDG0rktNbVJRD7M5YLq01VtPu5D7w311n4yBlqod4ZQCzD4cbFXLlQYPMYCEnA5Rg7oM7sSqAJPLvia2Wf1VJD+qcooZZeG3D0SjU+BcKT01bTSQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=l/I0TVeH; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="l/I0TVeH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 29FEDC19425; Fri, 24 Apr 2026 14:33:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777041228; bh=2G4c83GBOrLbCxdlpENk2S5l6I3e4fj8HXG+rY0qjQs=; h=From:To:Cc:Subject:Date:Reply-To:From; b=l/I0TVeHit8iGZd607n6NOWH2sFTR+h5eBya+S2hbyKsWybPcJilBeewCXweMUB5Z 1tCk+YIxeySYxNQRRhWKsUstsyFgiX6a2hUN2VsEXnVMgCTibffeEQd3qNxgY38D4t 4qJdN4/HFXyT7PozPIJa4IfYfY7uVfG1u5hwGZ5c= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31546: net: bonding: fix NULL deref in bond_debug_rlb_hash_show Date: Fri, 24 Apr 2026 16:33:29 +0200 Message-ID: <2026042425-CVE-2026-31546-2ca3@gregkh> X-Mailer: git-send-email 2.53.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=5275; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2fI3Xv4CRM+xjZnviAUwYqdYCtJZxR9CTnsLwnOcMuQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmv602Z75c9u1LS+c+nJirdyzhBJ7RRS2XZmn0KdXU5Z 1rD6p91xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwEQuSDEsOPL+jOWkkp6Qc3pa AucOXWaY+S20m2F+TlgKt8FLTddpFcdTre4+m5xyW2gnAA== 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 deref in bond_debug_rlb_hash_show rlb_clear_slave intentionally keeps RLB hash-table entries on the rx_hashtbl_used_head list with slave set to NULL when no replacement slave is available. However, bond_debug_rlb_hash_show visites client_info->slave without checking if it's NULL. Other used-list iterators in bond_alb.c already handle this NULL-slave state safely: - rlb_update_client returns early on !client_info->slave - rlb_req_update_slave_clients, rlb_clear_slave, and rlb_rebalance compare slave values before visiting - lb_req_update_subnet_clients continues if slave is NULL The following NULL deref crash can be trigger in bond_debug_rlb_hash_show: [ 1.289791] BUG: kernel NULL pointer dereference, address: 0000000000000000 [ 1.292058] RIP: 0010:bond_debug_rlb_hash_show (drivers/net/bonding/bond_debugfs.c:41) [ 1.293101] RSP: 0018:ffffc900004a7d00 EFLAGS: 00010286 [ 1.293333] RAX: 0000000000000000 RBX: ffff888102b48200 RCX: ffff888102b48204 [ 1.293631] RDX: ffff888102b48200 RSI: ffffffff839daad5 RDI: ffff888102815078 [ 1.293924] RBP: ffff888102815078 R08: ffff888102b4820e R09: 0000000000000000 [ 1.294267] R10: 0000000000000000 R11: 0000000000000000 R12: ffff888100f929c0 [ 1.294564] R13: ffff888100f92a00 R14: 0000000000000001 R15: ffffc900004a7ed8 [ 1.294864] FS: 0000000001395380(0000) GS:ffff888196e75000(0000) knlGS:0000000000000000 [ 1.295239] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 1.295480] CR2: 0000000000000000 CR3: 0000000102adc004 CR4: 0000000000772ef0 [ 1.295897] Call Trace: [ 1.296134] seq_read_iter (fs/seq_file.c:231) [ 1.296341] seq_read (fs/seq_file.c:164) [ 1.296493] full_proxy_read (fs/debugfs/file.c:378 (discriminator 1)) [ 1.296658] vfs_read (fs/read_write.c:572) [ 1.296981] ksys_read (fs/read_write.c:717) [ 1.297132] do_syscall_64 (arch/x86/entry/syscall_64.c:63 (discriminator 1) arch/x86/entry/syscall_64.c:94 (discriminator 1)) [ 1.297325] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) Add a NULL check and print "(none)" for entries with no assigned slave. The Linux kernel CVE team has assigned CVE-2026-31546 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.38 with commit caafa84251b886feb6cdf23d50e2cc99dcdaaaf3 and fixed in 5.10.253 with commit 19f0fd87df0e5746b24f5caa465a66a8c6e6e241 Issue introduced in 2.6.38 with commit caafa84251b886feb6cdf23d50e2cc99dcdaaaf3 and fixed in 5.15.203 with commit edacf1613f7b26423ebfa8b2892e7453c4235354 Issue introduced in 2.6.38 with commit caafa84251b886feb6cdf23d50e2cc99dcdaaaf3 and fixed in 6.1.167 with commit 2ec2c777f357a83c3d503d8d9370c90b60f0ae63 Issue introduced in 2.6.38 with commit caafa84251b886feb6cdf23d50e2cc99dcdaaaf3 and fixed in 6.6.130 with commit 0a3f8cd3f370247ded14d38d216b49dd30eade76 Issue introduced in 2.6.38 with commit caafa84251b886feb6cdf23d50e2cc99dcdaaaf3 and fixed in 6.12.78 with commit 6a3bb74e25d79cbb15f67ef80f71e2b2bfe27ff4 Issue introduced in 2.6.38 with commit caafa84251b886feb6cdf23d50e2cc99dcdaaaf3 and fixed in 6.18.20 with commit 017d674cf6930e9586a29ee808c7ca09d1396d07 Issue introduced in 2.6.38 with commit caafa84251b886feb6cdf23d50e2cc99dcdaaaf3 and fixed in 6.19.10 with commit ec9762f0df2f9fbe3f40a3bfa8aab8b2f721466c Issue introduced in 2.6.38 with commit caafa84251b886feb6cdf23d50e2cc99dcdaaaf3 and fixed in 7.0 with commit 605b52497bf89b3b154674deb135da98f916e390 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-31546 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_debugfs.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/19f0fd87df0e5746b24f5caa465a66a8c6e6e241 https://git.kernel.org/stable/c/edacf1613f7b26423ebfa8b2892e7453c4235354 https://git.kernel.org/stable/c/2ec2c777f357a83c3d503d8d9370c90b60f0ae63 https://git.kernel.org/stable/c/0a3f8cd3f370247ded14d38d216b49dd30eade76 https://git.kernel.org/stable/c/6a3bb74e25d79cbb15f67ef80f71e2b2bfe27ff4 https://git.kernel.org/stable/c/017d674cf6930e9586a29ee808c7ca09d1396d07 https://git.kernel.org/stable/c/ec9762f0df2f9fbe3f40a3bfa8aab8b2f721466c https://git.kernel.org/stable/c/605b52497bf89b3b154674deb135da98f916e390