{"id":"CVE-2025-38009","summary":"wifi: mt76: disable napi on driver removal","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: mt76: disable napi on driver removal\n\nA warning on driver removal started occurring after commit 9dd05df8403b\n(\"net: warn if NAPI instance wasn't shut down\"). Disable tx napi before\ndeleting it in mt76_dma_cleanup().\n\n WARNING: CPU: 4 PID: 18828 at net/core/dev.c:7288 __netif_napi_del_locked+0xf0/0x100\n CPU: 4 UID: 0 PID: 18828 Comm: modprobe Not tainted 6.15.0-rc4 #4 PREEMPT(lazy)\n Hardware name: ASUS System Product Name/PRIME X670E-PRO WIFI, BIOS 3035 09/05/2024\n RIP: 0010:__netif_napi_del_locked+0xf0/0x100\n Call Trace:\n \u003cTASK\u003e\n mt76_dma_cleanup+0x54/0x2f0 [mt76]\n mt7921_pci_remove+0xd5/0x190 [mt7921e]\n pci_device_remove+0x47/0xc0\n device_release_driver_internal+0x19e/0x200\n driver_detach+0x48/0x90\n bus_remove_driver+0x6d/0xf0\n pci_unregister_driver+0x2e/0xb0\n __do_sys_delete_module.isra.0+0x197/0x2e0\n do_syscall_64+0x7b/0x160\n entry_SYSCALL_64_after_hwframe+0x76/0x7e\n\nTested with mt7921e but the same pattern can be actually applied to other\nmt76 drivers calling mt76_dma_cleanup() during removal. Tx napi is enabled\nin their *_dma_init() functions and only toggled off and on again inside\ntheir suspend/resume/reset paths. So it should be okay to disable tx\nnapi in such a generic way.\n\nFound by Linux Verification Center (linuxtesting.org).","modified":"2026-04-02T12:47:43.912133Z","published":"2025-06-18T09:28:20.068Z","related":["SUSE-SU-2025:02249-1","SUSE-SU-2025:02254-1","SUSE-SU-2025:02307-1","SUSE-SU-2025:02333-1","SUSE-SU-2025:02335-1","SUSE-SU-2025:02538-1","SUSE-SU-2025:02923-1","SUSE-SU-2025:20475-1","SUSE-SU-2025:20483-1","SUSE-SU-2025:20493-1","SUSE-SU-2025:20498-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38009.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2b81e76db3667d1f7f2ad44e9835cdaf8dea95a8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5e700b06b970fc19e3a1ecb244e14785f3fbb8e3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/78ab4be549533432d97ea8989d2f00b508fa68d8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b892e830d1ea8c5475254b98827771f7366f1039"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ca5b213bf4b4224335a8131a26805d16503fca5f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e7bfbda5fddd27f3158e723d641c0fcdfb0552a7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ff0f820fa5b99035b3c654dd531226d8d83aec5f"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/08/msg00010.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38009.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38009"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"2ac515a5d74f26963362d5da9589c67ca3663338"},{"fixed":"ff0f820fa5b99035b3c654dd531226d8d83aec5f"},{"fixed":"ca5b213bf4b4224335a8131a26805d16503fca5f"},{"fixed":"b892e830d1ea8c5475254b98827771f7366f1039"},{"fixed":"5e700b06b970fc19e3a1ecb244e14785f3fbb8e3"},{"fixed":"2b81e76db3667d1f7f2ad44e9835cdaf8dea95a8"},{"fixed":"e7bfbda5fddd27f3158e723d641c0fcdfb0552a7"},{"fixed":"78ab4be549533432d97ea8989d2f00b508fa68d8"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38009.json"}}],"schema_version":"1.7.5"}