# CVE-2025-21715: net: davicom: fix UAF in dm9000_drv_remove

- Severity: High 7.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2025-02-27T02:07:26.174Z
- Modified: 2026-06-17T08:44:05.900Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from d28e783c20033b90a64d4e1307bafb56085d8184 before db79e982c5f9e39ab710cbce55b05f2f5e6f1ca9; from 4fd0654b8f2129b68203974ddee15f804ec011c2 before a53cb72043443ac787ec0b5fa17bb3f8ff3d462b; from cf9e60aa69ae6c40d3e3e4c94dd6c8de31674e9b before 7d7d201eb3b766abe590ac0dda7a508b7db3e357; from cf9e60aa69ae6c40d3e3e4c94dd6c8de31674e9b before c94ab07edc2843e2f3d46dbd82e5c681503aaadf; from cf9e60aa69ae6c40d3e3e4c94dd6c8de31674e9b before c411f9a5fdc9158e8f7c57eac961d3df3eb4d8ca; from cf9e60aa69ae6c40d3e3e4c94dd6c8de31674e9b before 5a54367a7c2378c65aaa4d3cfd952f26adef7aa7; from cf9e60aa69ae6c40d3e3e4c94dd6c8de31674e9b before 2013c95df6752d9c88221d0f0f37b6f197969390; from cf9e60aa69ae6c40d3e3e4c94dd6c8de31674e9b before 19e65c45a1507a1a2926649d2db3583ed9d55fd9; d182994b2b6e23778b146a230efac8f1d77a3445; 427b3fc3d5244fef9c1f910a9c699f2690642f83; 9c49181c201d434186ca6b1a7b52e29f4169f6f8; 9808f032c4d971cbf2b01411a0a2a8ee0040efe3; and 9 more (not affected: before 5.12; from 5.4.291 up to 5.4.*; from 5.10.235 up to 5.10.*; from 5.15.179 up to 5.15.*; from 6.1.129 up to 6.1.*; from 6.6.76 up to 6.6.*; from 6.12.13 up to 6.12.*; from 6.13.2 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 4.4.262 before 4.5; from 4.9.262 before 4.10; from 4.14.226 before 4.15; from 4.19.181 before 4.20; from 5.4.106 before 5.4.291; from 5.10.24 before 5.10.235; from 5.11.7 before 5.15.179; from 5.16 before 6.1.129; from 6.2 before 6.6.76; from 6.7 before 6.12.13; from 6.13 before 6.13.2

## References

- <https://git.kernel.org/stable/c/db79e982c5f9e39ab710cbce55b05f2f5e6f1ca9> (patch)
- <https://git.kernel.org/stable/c/a53cb72043443ac787ec0b5fa17bb3f8ff3d462b> (patch)
- <https://git.kernel.org/stable/c/7d7d201eb3b766abe590ac0dda7a508b7db3e357> (patch)
- <https://git.kernel.org/stable/c/c94ab07edc2843e2f3d46dbd82e5c681503aaadf> (patch)
- <https://git.kernel.org/stable/c/c411f9a5fdc9158e8f7c57eac961d3df3eb4d8ca> (patch)
- <https://git.kernel.org/stable/c/5a54367a7c2378c65aaa4d3cfd952f26adef7aa7> (patch)
- <https://git.kernel.org/stable/c/2013c95df6752d9c88221d0f0f37b6f197969390> (patch)
- <https://git.kernel.org/stable/c/19e65c45a1507a1a2926649d2db3583ed9d55fd9> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html>

## Sources

- CVE List: [CVE-2025-21715](https://www.cve.org/CVERecord?id=CVE-2025-21715), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2025-21715](https://nvd.nist.gov/vuln/detail/CVE-2025-21715), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-21715 · Whole record: https://cve.day/CVE-2025-21715.json · Rebuilt by cve.day 2026-11-25T22:58:54.488Z
