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 8FF053932F9 for ; Sun, 19 Jul 2026 15:02:43 +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=1784473364; cv=none; b=IWh5KlibhzKsC32Qqs94AiO9Hn5qxgPZb+44HeQcSz8piwV03HRXA0SlNKNldj+aJqokaVQXMvjv0GbOeHy7zNLwDGc25u0+2OpRAkL4Jcz0AHhWhBjRNiAkGoC2Ex3+JWN798lJnLLQl2MmgCCQ/uesUsbKxv3YaqvTJ3qh/Uw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784473364; c=relaxed/simple; bh=um22O394z4JSWyt3W7hH4eTn/DltCPTJMnmrtsWpNLA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CGoL/IgSFdGyzJUg8EFtzp8CJy0tl7sRUMAVQQq6AUsTBFEKMGUT5wVQu8Fl7i+q4Z8Y/UCNSoGHELCED+QMK9oRrNj+AbNhRjQPJQg/J3rshQ7q/Uv2meCAlq2PzGwo/ngHxmwP8BBA6jOzonVgC1Qr1EEHVFSxWRpVjaIw0D8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fG5NHx16; 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="fG5NHx16" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E1E021F00A3A; Sun, 19 Jul 2026 15:02:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784473363; bh=+W3Aa5m2fJEXXWl6Lb8I4VTPNkvfT4iUd1L8nX9tzVk=; h=From:To:Cc:Subject:Date:Reply-To; b=fG5NHx164aZfavRWf5n07j1tszkb9Dda5UffFgM9QXNoqKJgihl3MU9D2T4roWkaf vYMdVEcGbuid7ms4W3GmYZWLdbbdvmu0lRgl+9BELILiiYMhvuTFcAeTpdLmSaB6NW 9Fpr0fQUT4ig4QK0hTmZjXS2Ol07qotiiHYGPFgY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-63988: bridge: Fix sleep in atomic context in sysfs path Date: Sun, 19 Jul 2026 16:57:28 +0200 Message-ID: <2026071903-CVE-2026-63988-b641@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=4969; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=tPUBCoRZs8j05PopIE6ZK0tBYV9CEOvNRnvqiGmk4NM=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkxT1u+vK1TuvrniGIxl45sxIaka0aCvVylJVW6jX+Kw i/yvVzbEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABOxK2VYcJL/0/sXXFPn9W9k W2m8f/p7ca0KGYYF6/2j72nNqK4/v1Zg3bkTchNslm3PAgA= 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 sysfs path Since the start of the git history, brport_store() always acquired the bridge lock. 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 was only used by two STP related attributes (cost and priority). Nowadays, brport_store() 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: Only requires 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 two STP related attributes that require it. Remove the now stale comment from br_switchdev_set_port_flag(). The SWITCHDEV_F_DEFER flag can be removed in net-next. [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: 372, name: bash preempt_count: 201, expected: 0 RCU nest depth: 0, expected: 0 5 locks held by bash/372: #0: ffff88810c51c3f0 (sb_writers#7){.+.+}-{0:0}, at: ksys_write (fs/read_write.c:740) #1: ffff888115ce9480 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter (fs/kernfs/file.c:343) #2: ffff88810b9fd330 (kn->active#37){.+.+}-{0:0}, at: kernfs_fop_write_iter (fs/kernfs/file.c:80 fs/kernfs/file.c:344) #3: ffffffffa59473a0 (rtnl_mutex){+.+.}-{4:4}, at: brport_store (net/bridge/br_sysfs_if.c:326) #4: ffff8881099d2d58 (&br->lock){+...}-{3:3}, at: brport_store (./include/linux/spinlock.h:348 net/bridge/br_sysfs_if.c:345) 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) store_learning (net/bridge/br_sysfs_if.c:79 net/bridge/br_sysfs_if.c:235) brport_store (net/bridge/br_sysfs_if.c:346) kernfs_fop_write_iter (fs/kernfs/file.c:352) new_sync_write (fs/read_write.c:595) vfs_write (fs/read_write.c:688) ksys_write (fs/read_write.c:740) 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-63988 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit 78cd408356fe3edbac66598772fd347bf3e32c1f and fixed in 6.18.35 with commit e976e3f2f2005c6267089a1a3b6344f234a59a55 Issue introduced in 6.15 with commit 78cd408356fe3edbac66598772fd347bf3e32c1f and fixed in 7.0.12 with commit 2f9cb30d97e45686f3119fff3b30f12259950910 Issue introduced in 6.15 with commit 78cd408356fe3edbac66598772fd347bf3e32c1f and fixed in 7.1 with commit 6d34594cc619d0d4b07d5afcad8b5984f3526dcf 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-63988 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_switchdev.c net/bridge/br_sysfs_if.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/e976e3f2f2005c6267089a1a3b6344f234a59a55 https://git.kernel.org/stable/c/2f9cb30d97e45686f3119fff3b30f12259950910 https://git.kernel.org/stable/c/6d34594cc619d0d4b07d5afcad8b5984f3526dcf