CVE-2025-38123: net: wwan: t7xx: Fix napi rx poll issue
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net: wwan: t7xx: Fix napi rx poll issue
When driver handles the napi rx polling requests, the netdev might have been released by the dellink logic triggered by the disconnect operation on user plane. However, in the logic of processing skb in polling, an invalid netdev is still being used, which causes a panic.
BUG: kernel NULL pointer dereference, address: 00000000000000f1 Oops: 0000 [#1] PREEMPT SMP NOPTI RIP: 0010:dev_gro_receive+0x3a/0x620 [...] Call Trace: <IRQ> ? __die_body+0x68/0xb0 ? page_fault_oops+0x379/0x3e0 ? exc_page_fault+0x4f/0xa0 ? asm_exc_page_fault+0x22/0x30 ? __pfx_t7xx_ccmni_recv_skb+0x10/0x10 [mtk_t7xx (HASH:1400 7)] ? dev_gro_receive+0x3a/0x620 napi_gro_receive+0xad/0x170 t7xx_ccmni_recv_skb+0x48/0x70 [mtk_t7xx (HASH:1400 7)] t7xx_dpmaif_napi_rx_poll+0x590/0x800 [mtk_t7xx (HASH:1400 7)] net_rx_action+0x103/0x470 irq_exit_rcu+0x13a/0x310 sysvec_apic_timer_interrupt+0x56/0x90 </IRQ>
The Linux kernel CVE team has assigned CVE-2025-38123 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.2 with commit 5545b7b9f294de7f95ec6a7cb1de0db52296001c and fixed in 6.6.94 with commit cc89f457d9133a558d4e8ef26dc20843c2d12073 Issue introduced in 6.2 with commit 5545b7b9f294de7f95ec6a7cb1de0db52296001c and fixed in 6.12.34 with commit e2df04e69c3f10b412f54be036dd0ed3b14756cf Issue introduced in 6.2 with commit 5545b7b9f294de7f95ec6a7cb1de0db52296001c and fixed in 6.15.3 with commit 66542e9430c625f878a5b5dc0fe41e3458d614bf Issue introduced in 6.2 with commit 5545b7b9f294de7f95ec6a7cb1de0db52296001c and fixed in 6.16-rc1 with commit 905fe0845bb27e4eed2ca27ea06e6c4847f1b2b1
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-38123
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/wwan/t7xx/t7xx_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/cc89f457d9133a558d4e8ef26dc20843c2d12073 https://git.kernel.org/stable/c/e2df04e69c3f10b412f54be036dd0ed3b14756cf https://git.kernel.org/stable/c/66542e9430c625f878a5b5dc0fe41e3458d614bf https://git.kernel.org/stable/c/905fe0845bb27e4eed2ca27ea06e6c4847f1b2b1