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 66C9A3DDDB6 for ; Fri, 24 Apr 2026 14:38:20 +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=1777041500; cv=none; b=MUr0LEQU028wuGztm7+VlZfiuLXRcojcqW8/bz14L6ADIqFmiQZP+AJd0G9zeUyYX+10Dzb5ER5e7wgLPSGaKc6gaqwkasXTEzBs6weAIU0Q1j8WR/fhjV3clWd4ESj2WdJzBx33v3BnCR0f6OYjev4GpsUTIiUTULfMSdhgrW0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041500; c=relaxed/simple; bh=KUZ0tnnx3D/3gLiXduPlnwnsHWWNWVmG28cYFXBaLVc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=K/GGzqxr2d5xYqfGCb1X+6rDa0Y2DDEZVrbQbcenkE6Ni4wrqPzu9fQ69XaJHHNU+MxT2nNqSf+j9oaS8x6KW8aBJm6Sv+3vEnXsfgwJWyzHD3TxRHPSmQ3m3O1/c/sZhzIBJVeNL6NP/aGHjMpUdMb6ZY6C/jD2zpoS5rbmW9Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IjTaWS/9; 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="IjTaWS/9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EFD95C19425; Fri, 24 Apr 2026 14:38:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777041500; bh=KUZ0tnnx3D/3gLiXduPlnwnsHWWNWVmG28cYFXBaLVc=; h=From:To:Cc:Subject:Date:Reply-To:From; b=IjTaWS/99Xd86TJ0ms1P3CdFFKwNd2+YE+tB830AvbmIXvfZgGFUUyXkfziDJXrOk Z2xBTMBO5W5BY301lyD4iOsAqa5WnuwSXuAyE0SYtgxyIKlvYMry1VTr/zMEwOxbQT Tv3ocARScrT8/GzAI120YiIT/Yl2jmqK8/U5LJzI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31563: net: macb: Use dev_consume_skb_any() to free TX SKBs Date: Fri, 24 Apr 2026 16:36:07 +0200 Message-ID: <2026042459-CVE-2026-31563-ae94@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=5027; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=360+T/VVSUd1uk6J0IFMbs3FwL0Xj7MFU/s6AJzBL24=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmv688XKGinB807H1eg/NIg6N+itnVewcw7ojQPyGUfS T07ey5zRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkZz7D/OJ09ls96yfuY5kt G/6x4W74euu3MxgWTJ/DKvFd4OYRY9m7y+pzLqW6Lj8oCAA= 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: macb: Use dev_consume_skb_any() to free TX SKBs The napi_consume_skb() function is not intended to be called in an IRQ disabled context. However, after commit 6bc8a5098bf4 ("net: macb: Fix tx_ptr_lock locking"), the freeing of TX SKBs is performed with IRQs disabled. To resolve the following call trace, use dev_consume_skb_any() for freeing TX SKBs: WARNING: kernel/softirq.c:430 at __local_bh_enable_ip+0x174/0x188, CPU#0: ksoftirqd/0/15 Modules linked in: CPU: 0 UID: 0 PID: 15 Comm: ksoftirqd/0 Not tainted 7.0.0-rc4-next-20260319-yocto-standard-dirty #37 PREEMPT Hardware name: ZynqMP ZCU102 Rev1.1 (DT) pstate: 200000c5 (nzCv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __local_bh_enable_ip+0x174/0x188 lr : local_bh_enable+0x24/0x38 sp : ffff800082b3bb10 x29: ffff800082b3bb10 x28: ffff0008031f3c00 x27: 000000000011ede0 x26: ffff000800a7ff00 x25: ffff800083937ce8 x24: 0000000000017a80 x23: ffff000803243a78 x22: 0000000000000040 x21: 0000000000000000 x20: ffff000800394c80 x19: 0000000000000200 x18: 0000000000000001 x17: 0000000000000001 x16: ffff000803240000 x15: 0000000000000000 x14: ffffffffffffffff x13: 0000000000000028 x12: ffff000800395650 x11: ffff8000821d1528 x10: ffff800081c2bc08 x9 : ffff800081c1e258 x8 : 0000000100000301 x7 : ffff8000810426ec x6 : 0000000000000000 x5 : 0000000000000001 x4 : 0000000000000001 x3 : 0000000000000000 x2 : 0000000000000008 x1 : 0000000000000200 x0 : ffff8000810428dc Call trace: __local_bh_enable_ip+0x174/0x188 (P) local_bh_enable+0x24/0x38 skb_attempt_defer_free+0x190/0x1d8 napi_consume_skb+0x58/0x108 macb_tx_poll+0x1a4/0x558 __napi_poll+0x50/0x198 net_rx_action+0x1f4/0x3d8 handle_softirqs+0x16c/0x560 run_ksoftirqd+0x44/0x80 smpboot_thread_fn+0x1d8/0x338 kthread+0x120/0x150 ret_from_fork+0x10/0x20 irq event stamp: 29751 hardirqs last enabled at (29750): [] _raw_spin_unlock_irqrestore+0x44/0x88 hardirqs last disabled at (29751): [] _raw_spin_lock_irqsave+0x38/0x98 softirqs last enabled at (29150): [] handle_softirqs+0x504/0x560 softirqs last disabled at (29153): [] run_ksoftirqd+0x44/0x80 The Linux kernel CVE team has assigned CVE-2026-31563 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1.151 with commit aeeafeb29b1b270302a9a85a13f7d70a68a3b9e6 and fixed in 6.1.168 with commit 92e7081f0c79d9073087e54bab745bb184192c2e Issue introduced in 6.6.105 with commit 5430388a81113e62a2d48b5d7dc1e76231908ebf and fixed in 6.6.131 with commit 78c8b090a3d5c1689dc989861b0163180db2b3f8 Issue introduced in 6.12.46 with commit 7db8aa3fc4ed0a2928246747b2514b0741a8187e and fixed in 6.12.80 with commit 984350b37372f79f71d4f0a5264c640e40daf9ce Issue introduced in 6.17 with commit 6bc8a5098bf4a365c4086a4a4130bfab10a58260 and fixed in 6.18.21 with commit f4bc91398b579730284328322365afa77a9d568f Issue introduced in 6.17 with commit 6bc8a5098bf4a365c4086a4a4130bfab10a58260 and fixed in 6.19.11 with commit ca4d05afb4683d685bb2c6fccae4386c478f524a Issue introduced in 6.17 with commit 6bc8a5098bf4a365c4086a4a4130bfab10a58260 and fixed in 7.0 with commit 647b8a2fe474474704110db6bd07f7a139e621eb Issue introduced in 6.16.6 with commit a4cb0a15ab8e6d06c08229a2c7bdbe1f2454473f 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-31563 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/cadence/macb_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/92e7081f0c79d9073087e54bab745bb184192c2e https://git.kernel.org/stable/c/78c8b090a3d5c1689dc989861b0163180db2b3f8 https://git.kernel.org/stable/c/984350b37372f79f71d4f0a5264c640e40daf9ce https://git.kernel.org/stable/c/f4bc91398b579730284328322365afa77a9d568f https://git.kernel.org/stable/c/ca4d05afb4683d685bb2c6fccae4386c478f524a https://git.kernel.org/stable/c/647b8a2fe474474704110db6bd07f7a139e621eb