CVE-2025-38009

5.5 MEDIUM

📋 TL;DR

This CVE describes a race condition in the Linux kernel's mt76 WiFi driver where NAPI (New API for network processing) isn't properly disabled during driver removal, causing a kernel warning. This affects systems using MediaTek mt76-based WiFi hardware (like mt7921e) when unloading the driver. The vulnerability doesn't allow remote code execution but can cause system instability.

💻 Affected Systems

Products:
  • Linux kernel with mt76 WiFi drivers
Versions: Linux kernel versions containing commit 9dd05df8403b up to patched versions
Operating Systems: Linux distributions using affected kernel versions
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects systems with MediaTek mt76-based WiFi hardware (mt7921e and similar chipsets) when the driver is loaded and being removed.

📦 What is this software?

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

⚠️ Risk & Real-World Impact

🔴

Worst Case

Kernel panic or system crash when unloading the WiFi driver, potentially causing denial of service on affected systems.

🟠

Likely Case

Kernel warning messages in system logs during driver removal/module unloading, with possible minor system instability.

🟢

If Mitigated

No impact if the driver isn't being unloaded or if the patch is applied.

🌐 Internet-Facing: LOW - This is a local driver unloading issue, not remotely exploitable.
🏢 Internal Only: MEDIUM - Could affect systems where WiFi drivers are frequently reloaded or during maintenance operations.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: NO
Unauthenticated Exploit: ✅ No
Complexity: LOW - Requires local access and ability to unload kernel modules.

This is a reliability issue rather than a security exploit. Requires local access and module unloading privileges.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Linux kernel with commit 2b81e76db3667d1f7f2ad44e9835cdaf8dea95a8 or later

Vendor Advisory: https://git.kernel.org/stable/c/2b81e76db3667d1f7f2ad44e9835cdaf8dea95a8

Restart Required: Yes

Instructions:

1. Update Linux kernel to version containing the fix commit 2b81e76db3667d1f7f2ad44e9835cdaf8dea95a8
2. Reboot system to load new kernel
3. Verify mt76 driver version matches patched kernel

🔧 Temporary Workarounds

Avoid driver unloading

linux

Prevent unloading of mt76 WiFi drivers to avoid triggering the race condition

echo 'install mt76 /bin/false' >> /etc/modprobe.d/disable-mt76.conf
echo 'blacklist mt76' >> /etc/modprobe.d/blacklist-mt76.conf

🧯 If You Can't Patch

  • Avoid unloading mt76 WiFi drivers during maintenance operations
  • Monitor system logs for WARNING messages related to __netif_napi_del_locked and investigate any occurrences

🔍 How to Verify

Check if Vulnerable:

Check if mt76 driver is loaded: lsmod | grep mt76. If loaded, check kernel version against affected range.

Check Version:

uname -r

Verify Fix Applied:

Check kernel version contains fix commit: uname -r and verify against patched kernel versions. Test unloading mt76 module (if safe to do so) and check dmesg for warnings.

📡 Detection & Monitoring

Log Indicators:

  • WARNING messages in dmesg or kernel logs containing '__netif_napi_del_locked'
  • Kernel stack traces mentioning mt76_dma_cleanup during module removal

Network Indicators:

  • None - this is a local kernel issue

SIEM Query:

source="kernel" AND "__netif_napi_del_locked" AND "mt76"

🔗 References

📤 Share & Export