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 270374C10CB for ; Thu, 17 Sep 2026 16:14:29 +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=1789661671; cv=none; b=awO7Hswm88vRDgbf/0PH34x315FqVgM/ZyVn6k3hpmmRY2ZKZVPEqGz1VxM+XbynA/XTuF++JRQ2N4kbN1UR72GdIo0NIEtHiXUM8jKffWXq2v4ovj8TeEgxCNMblv1dbqQ5qlW5MroDMU9IGxL1bhRMzA5Xxkd0ztjHdv37NBM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789661671; c=relaxed/simple; bh=041nMWK151pjk0pd3Nzoo5S9my1T+HyVPCL614B4pmQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hY754OaoKGvRcylvpj1bilA1DKrHF8lRv5cX8fFiWEOvi2y5+arZQ/5WISiNHy+b/PLkY5L2DDjQ4ImuGiXu9IJWizAx8ZVsh8s2ZuR1F042aLCHSiBhjdEMeQF6w/oXcM5+fJlMN/21ZAmATtDggkYHNz4JF4KY/fmuQ2bPkN0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ocO6nE3k; 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="ocO6nE3k" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7D07E1F000FF; Thu, 17 Sep 2026 16:14:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789661669; bh=hWrUYco5CRI5r3qEREFydWQ7L+9/G9MVhT1uZpqSRgY=; h=From:To:Cc:Subject:Date:Reply-To; b=ocO6nE3ka2sgdFyudNGJdvlfobnaaINoEZTfdn9Fi/S246CKmeg6zqFOelFVyGgkN Gn0F8iCwEs39WQs+IpCZXa5eeXtI0t8P1yO49DlwQWlsOG5LjWv4/wUU3x9DoAV8tW JmLRD6QDH2ya5zU/4jyOg32wYXATEXwCNFKNOCbM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-90098: net: sparx5: fix sleep in atomic context in MAC table access Date: Thu, 17 Sep 2026 17:08:48 +0100 Message-ID: <2026091712-CVE-2026-90098-ae17@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=3091; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=kRViRB2lPvffKbUUNgOZ8qHunddOuFv64oNPkEJhDVI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBHIe23fY/pktzVq9poyHL/KWseC0lvJVLYsXt6lWN CVVinF3xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwEQe72aYK+Za/bluZs/eBAEm QbUco3m3f21dzjA/IMf1Rllx5qW2SeerWrVDTL/M3/kaAA== 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: sparx5: fix sleep in atomic context in MAC table access sparx5_set_rx_mode() runs with netif_addr_lock_bh held and iterates dev->mc via __dev_mc_sync(), which per address calls sparx5_mc_sync() / sparx5_mc_unsync() -> sparx5_mact_learn() / sparx5_mact_forget(). These take sparx5->lock, a mutex, and then poll the MAC access command register with readx_poll_timeout(). A mutex may block, which is not allowed from atomic context. Convert the driver to the new .ndo_set_rx_mode_async callback introduced in commit 3554b4345d85 ("net: introduce ndo_set_rx_mode_async and netdev_rx_mode_work"). The async callback is invoked from process context, so the mutex and sleeping completion poll can remain. Observed with CONFIG_PROVE_LOCKING, CONFIG_DEBUG_SPINLOCK, CONFIG_DEBUG_MUTEXES and CONFIG_DEBUG_ATOMIC_SLEEP enabled: BUG: sleeping function called from invalid context at kernel/locking/mutex.c:591 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 217, name: ip preempt_count: 201, expected: 0 Call trace: __might_resched+0x144/0x248 __might_sleep+0x48/0x7c __mutex_lock+0x74/0x850 mutex_lock_nested+0x24/0x30 sparx5_mact_learn+0x78/0x100 sparx5_mc_sync+0x40/0x54 __hw_addr_sync_dev+0xc4/0x170 sparx5_set_rx_mode+0x4c/0x58 __dev_set_rx_mode+0x64/0xa4 __dev_open+0x1ec/0x26c The Linux kernel CVE team has assigned CVE-2026-90098 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit d6fce5141929697a27f029c633433d487f6f62cb and fixed in 7.2.6 with commit 648d196ccc03ae3b04402ae71ffa44959a85e88f Issue introduced in 5.14 with commit d6fce5141929697a27f029c633433d487f6f62cb and fixed in 7.3-rc1 with commit b62793a7baeea9cf20209c9fd2e333311aaf3b8d 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-90098 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/ethernet/microchip/sparx5/sparx5_netdev.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/648d196ccc03ae3b04402ae71ffa44959a85e88f https://git.kernel.org/stable/c/b62793a7baeea9cf20209c9fd2e333311aaf3b8d