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 3B5252192EF for ; Thu, 10 Jul 2025 07:43:25 +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=1752133405; cv=none; b=KGx9N9SpCLwexqa8dWQNfNWb9J03NqSGWvuKVaN5/dOQGwTRICN/W0veLETG57ps79b+GfXPYCVxQDSJlddbLi15AhxJI6CpI+wx9cQhnb79dDjlwFM7D9VpZUlTlXykKRkvPVoGJPjlb0U1aKvIpVISHX9jEEvWoWAUP35ysVs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752133405; c=relaxed/simple; bh=j2jiCJj8o8gj4qSSlao0GnqCFO6GVnpX67sYpdgqCsI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=aKqueB8GmV8N6W0pwah/NaX5ZzbqrKSrl+yFBAZzRu3GDlC5pWVPgwaROwQyHoUx/zt5GhpWrdM+arU0gpGSdEr5KpgsJ+Mat7QG6F/s0qA9sLiAj9kHefb6hb2N8WlTXwpiXpOnGdcq0KjxcO5L9bRQEbBcPT6l+ds9yrgzoAo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IsllKEik; 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="IsllKEik" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BEC74C4CEE3; Thu, 10 Jul 2025 07:43:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1752133405; bh=j2jiCJj8o8gj4qSSlao0GnqCFO6GVnpX67sYpdgqCsI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=IsllKEik9pILnEgkG8UGHDASr+k5XY09waPbuPSaXuOCus1lgAlieMKrKECUewfb9 /OXmQNvBvnDeumvUVsETYjIrslcvIdB5cE49uK/55sGeWlWgEWA29M+fm5Eu5WDM7o KedBGng8JcBKvF0ax0VLCvMEqOEAvTDch5fWjAvY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38270: net: drv: netdevsim: don't napi_complete() from netpoll Date: Thu, 10 Jul 2025 09:42:11 +0200 Message-ID: <2025071008-CVE-2025-38270-c7b0@gregkh> X-Mailer: git-send-email 2.50.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2378; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=FnpZMZPG5/P29jg/vHkMDXLVOn5+LNRFfsZCWIhbdvw=; b=owGbwMvMwCRo6H6F97bub03G02pJDBn5eRes1DQnr/D9lnZtQsO8bu8tXmnmjSGf36tUGwX9/ etzqdK9I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACayto5hwRnmFWzroi/Gcp2e v3HGz+mCKvXHmBgWnP40UTVre/Jt5rp1K2ao3X71LiQjDAA= 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: drv: netdevsim: don't napi_complete() from netpoll netdevsim supports netpoll. Make sure we don't call napi_complete() from it, since it may not be scheduled. Breno reports hitting a warning in napi_complete_done(): WARNING: CPU: 14 PID: 104 at net/core/dev.c:6592 napi_complete_done+0x2cc/0x560 __napi_poll+0x2d8/0x3a0 handle_softirqs+0x1fe/0x710 This is presumably after netpoll stole the SCHED bit prematurely. The Linux kernel CVE team has assigned CVE-2025-38270 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit 3762ec05a9fbda16aaaa2568df679ab8ad13f38d and fixed in 6.12.34 with commit a8ff2e362d901200a1075c3ca9c56d9c7bbef389 Issue introduced in 6.10 with commit 3762ec05a9fbda16aaaa2568df679ab8ad13f38d and fixed in 6.15.3 with commit 6837dd877270c57689bd866de9f3de14172c2439 Issue introduced in 6.10 with commit 3762ec05a9fbda16aaaa2568df679ab8ad13f38d and fixed in 6.16-rc2 with commit 1264971017b4d7141352a7fe29021bdfce5d885d 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-2025-38270 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/netdevsim/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/a8ff2e362d901200a1075c3ca9c56d9c7bbef389 https://git.kernel.org/stable/c/6837dd877270c57689bd866de9f3de14172c2439 https://git.kernel.org/stable/c/1264971017b4d7141352a7fe29021bdfce5d885d