CVE-2025-21715·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: net: davicom: fix UAF in dm9000_drv_remove dm is netdev private data and it cannot be used after free_netdev() call. Using dm after free_netdev() can cause UAF bug. Fix it by moving free_netdev() at the end of the function. This is similar to the issue fixed in commit ad297cd2db89 ("net: qcom/emac: fix UAF in emac_remove"). This bug is detected by our static analysis tool.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.13.2
- Published
- 2025-02-27
Affected versions
From: 6.13
Until: 6.13.2
Fixed in: 6.13.2
How to fix this CVE
Update your Linux kernel to version 6.13.2 or later to resolve a use-after-free (UAF) vulnerability in the Davicom dm9000 network driver's removal function. The vulnerable code attempted to access driver private data after the network device had been freed, potentially causing kernel memory corruption or crashes. Apply this patch immediately if you are running kernel versions 6.13 through 6.13.1.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your kernel version with `uname -r` and verify it falls in the range 6.13.0-6.13.1
- Step 2: Confirm the dm9000 driver is loaded by running `lsmod | grep dm9000` (presence indicates potential exposure if affected kernel version is running)
- Step 3: Search kernel logs for crash signatures with `dmesg | grep -i 'UAF\|use.*after.*free\|dm9000' and check /var/log/kern.log for memory corruption errors
- Step 4: After patching, verify with `uname -r` that kernel version is 6.13.2 or higher, then check for successful driver reload with `sudo modprobe -r dm9000 && sudo modprobe dm9000`
FAQ
What is CVE-2025-21715?
CVE-2025-21715 is a use-after-free vulnerability in the Linux kernel's Davicom dm9000 Ethernet driver where the device removal function attempted to access driver data structures after the network device had already been deallocated from memory. This could lead to kernel crashes or potential privilege escalation.
Is CVE-2025-21715 being actively exploited?
No, CVE-2025-21715 is not currently listed in CISA's Known Exploited Vulnerabilities catalog and no public exploits are available. However, the memory corruption potential warrants timely patching.
What versions of Kernel are affected by CVE-2025-21715?
Linux kernel versions 6.13.0 through 6.13.1 are vulnerable. The vulnerability was resolved in kernel version 6.13.2 and later.
How do I check if my server is vulnerable to CVE-2025-21715?
Run `uname -r` to check your kernel version; if it shows 6.13.0 or 6.13.1, you are vulnerable. Verify dm9000 driver presence with `lsmod | grep dm9000`.
Does Defensia detect CVE-2025-21715?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2025-21715 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/19e65c45a1507a1a2926649d2db3583ed9d55fd9
- https://git.kernel.org/stable/c/2013c95df6752d9c88221d0f0f37b6f197969390
- https://git.kernel.org/stable/c/5a54367a7c2378c65aaa4d3cfd952f26adef7aa7
- https://git.kernel.org/stable/c/7d7d201eb3b766abe590ac0dda7a508b7db3e357
- https://git.kernel.org/stable/c/a53cb72043443ac787ec0b5fa17bb3f8ff3d462b
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2025-21715. Free for 1 server.
Get started free