CVE-2025-38270: net: drv: netdevsim: don't napi_complete() from netpoll
From: Greg Kroah-Hartman <[email protected]>
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