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 B245D3A450F for ; Sun, 19 Jul 2026 15:04:10 +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=1784473451; cv=none; b=D+cWrrbGOmyvDl0wdm/JAlo4fFYSGVlm0Cw87AFcbmlMSFHTQg5wu6vnZPqKiyG8tYbM6FW+WDpQ3geee7Ow9go98Nf5hcNLLebhrpMD7OtIzw5WKpAs7vco4FeXqUNjsr9/c8br3LiNYG3XZ4L5sUnbVny49nZGyDLhmjMRqLk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784473451; c=relaxed/simple; bh=97bUCZxDo9NocNxmXGAm9g8ek9AttqusvKZtmevPTBw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OFrBOzMDf+QYNkes6idUfYuDTH3HkV2As8WMLq0vxv4xUg7rqQcqhiuK0/dmSbPEPVDWayFGfsgTbrqalZXGXuo4tXF2QkbhmKZYheN1xftMFFyvcTzhzSmtIW5OnDAoUjP46EtVov6dEMYXABqQAXeL1cEKoBWpUZ/buxghyFg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vjVcLPkN; 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="vjVcLPkN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 200E81F000E9; Sun, 19 Jul 2026 15:04:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784473450; bh=ee9nyGqtZGN1Grbo8L5iV+wkPB4U0j8be/MRVPWio0g=; h=From:To:Cc:Subject:Date:Reply-To; b=vjVcLPkNsoJTNkExbq8+V+cgkZRYvMQQSp1T5DIoYqX0WtM61KChUiswpsdhqidhq 6djKsljfV5mGa340s3+0atjUsmx22/qGEcjLYBRg0HbL9MaTkExBMNJvpP55zcy6jj x0mEYvABlvQuERsQBlnW62iKef4tFsPgESoStM8Q= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-63989: bridge: Fix sleep in atomic context in netlink path Date: Sun, 19 Jul 2026 16:57:29 +0200 Message-ID: <2026071904-CVE-2026-63989-5868@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=5156; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=DprGutKoXKzv0tyMgFYkXjY/Crb3fKmXesy2/NTRNzU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkxT1vu5AmwWBkpfL38/bjOy4XKy7VL2h1aG7zZNx85v lK0KdiyI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYStJRhvlOvP/P2/N9HYg7E /vgQYbPStb/0D8P88ksRrZ9m7uA8WVLLuiXoo9vyg3cLAQ== 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: bridge: Fix sleep in atomic context in netlink path Since the introduction of the netlink configuration path for bridge ports in commit 25c71c75ac87 ("bridge: bridge port parameters over netlink"), br_setport() was always called with the bridge lock held around it. Back then this decision made sense: The bridge lock protects the STP state of the bridge and its ports and at that time the function only processed three STP related netlink attributes (cost, priority and state). Nowadays, br_setport() processes a lot more attributes and most of them do not need the bridge lock: * Bridge flags: Only require RTNL. Read locklessly by the data path. Annotations can be added in net-next. * FDB port flushing: Only requires the FDB lock. * Multicast attributes: Only require the multicast lock. * Group forward mask: Only requires RTNL. Read locklessly by the data path. Annotations can be added in net-next. * Backup port and NHID: Only require RTNL. Read locklessly by the data path. This is a problem as the bridge calls dev_set_promiscuity() when certain bridge port flags change and this function can sleep since the commit cited below, resulting in a splat such as [1]. Fix this by reducing the scope of the bridge lock and only take it when processing the three STP related attributes that require it. This is consistent with the multicast attributes where each attribute acquires the multicast lock instead of having one critical section for all relevant attributes. [1] BUG: sleeping function called from invalid context at net/core/dev_addr_lists.c:1262 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 356, name: bridge preempt_count: 201, expected: 0 RCU nest depth: 0, expected: 0 2 locks held by bridge/356: #0: ffffffff919473a0 (rtnl_mutex){+.+.}-{4:4}, at: rtnetlink_rcv_msg (net/core/rtnetlink.c:80 net/core/rtnetlink.c:7002) #1: ffff888115072d58 (&br->lock){+...}-{3:3}, at: br_setlink (./include/linux/spinlock.h:348 net/bridge/br_netlink.c:1117) Preemption disabled at: 0x0 Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 Call Trace: dump_stack_lvl (lib/dump_stack.c:94 lib/dump_stack.c:120) __might_resched.cold (kernel/sched/core.c:9163) netif_rx_mode_run (net/core/dev_addr_lists.c:1262) netif_rx_mode_sync (net/core/dev_addr_lists.c:1428) dev_set_promiscuity (net/core/dev_api.c:289) br_manage_promisc (net/bridge/br_if.c:135 net/bridge/br_if.c:172) br_port_flags_change (net/bridge/br_if.c:242 net/bridge/br_if.c:747) br_setport (net/bridge/br_netlink.c:1000) br_setlink (net/bridge/br_netlink.c:1118) rtnl_bridge_setlink (net/core/rtnetlink.c:5572) rtnetlink_rcv_msg (net/core/rtnetlink.c:7005) netlink_rcv_skb (net/netlink/af_netlink.c:2550) netlink_unicast (net/netlink/af_netlink.c:1318 net/netlink/af_netlink.c:1344) netlink_sendmsg (net/netlink/af_netlink.c:1894) __sock_sendmsg (net/socket.c:787 (discriminator 4) net/socket.c:802 (discriminator 4)) ____sys_sendmsg (net/socket.c:2698) ___sys_sendmsg (net/socket.c:2752) __sys_sendmsg (net/socket.c:2784) do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:121) The Linux kernel CVE team has assigned CVE-2026-63989 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit 78cd408356fe3edbac66598772fd347bf3e32c1f and fixed in 6.18.35 with commit c9c2e609e8397bb57b4d73675f33a99183c4a0bd Issue introduced in 6.15 with commit 78cd408356fe3edbac66598772fd347bf3e32c1f and fixed in 7.0.12 with commit 803d39accfbdf223ccbb49684d5b5069b4c44586 Issue introduced in 6.15 with commit 78cd408356fe3edbac66598772fd347bf3e32c1f and fixed in 7.1 with commit 5eec4427b89c2fb2beac54920101e55a2f1c0c21 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-63989 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: net/bridge/br_netlink.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/c9c2e609e8397bb57b4d73675f33a99183c4a0bd https://git.kernel.org/stable/c/803d39accfbdf223ccbb49684d5b5069b4c44586 https://git.kernel.org/stable/c/5eec4427b89c2fb2beac54920101e55a2f1c0c21