# CVE-2025-21715: net: davicom: fix UAF in dm9000\_drv\_remove

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.33% (percentile 18, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-02-27T02:07:26.174Z
- **Modified:** 2026-06-17T08:44:05.900Z

## Who should check

- Anyone running Linux \>= d28e783c20033b90a64d4e1307bafb56085d8184, \< db79e982c5f9e39ab710cbce55b05f2f5e6f1ca9; \>= 4fd0654b8f2129b68203974ddee15f804ec011c2, \< a53cb72043443ac787ec0b5fa17bb3f8ff3d462b; \>= cf9e60aa69ae6c40d3e3e4c94dd6c8de31674e9b, \< 7d7d201eb3b766abe590ac0dda7a508b7db3e357; \>= cf9e60aa69ae6c40d3e3e4c94dd6c8de31674e9b, \< c94ab07edc2843e2f3d46dbd82e5c681503aaadf; \>= cf9e60aa69ae6c40d3e3e4c94dd6c8de31674e9b, \< c411f9a5fdc9158e8f7c57eac961d3df3eb4d8ca; \>= cf9e60aa69ae6c40d3e3e4c94dd6c8de31674e9b, \< 5a54367a7c2378c65aaa4d3cfd952f26adef7aa7; \>= cf9e60aa69ae6c40d3e3e4c94dd6c8de31674e9b, \< 2013c95df6752d9c88221d0f0f37b6f197969390; \>= cf9e60aa69ae6c40d3e3e4c94dd6c8de31674e9b, \< 19e65c45a1507a1a2926649d2db3583ed9d55fd9; d182994b2b6e23778b146a230efac8f1d77a3445; 427b3fc3d5244fef9c1f910a9c699f2690642f83; …
- Anyone running Linux 5.12

## 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.

## Affected and fixed versions

- Linux: \>= d28e783c20033b90a64d4e1307bafb56085d8184, \< db79e982c5f9e39ab710cbce55b05f2f5e6f1ca9; \>= 4fd0654b8f2129b68203974ddee15f804ec011c2, \< a53cb72043443ac787ec0b5fa17bb3f8ff3d462b; \>= cf9e60aa69ae6c40d3e3e4c94dd6c8de31674e9b, \< 7d7d201eb3b766abe590ac0dda7a508b7db3e357; \>= cf9e60aa69ae6c40d3e3e4c94dd6c8de31674e9b, \< c94ab07edc2843e2f3d46dbd82e5c681503aaadf; \>= cf9e60aa69ae6c40d3e3e4c94dd6c8de31674e9b, \< c411f9a5fdc9158e8f7c57eac961d3df3eb4d8ca; \>= cf9e60aa69ae6c40d3e3e4c94dd6c8de31674e9b, \< 5a54367a7c2378c65aaa4d3cfd952f26adef7aa7; \>= cf9e60aa69ae6c40d3e3e4c94dd6c8de31674e9b, \< 2013c95df6752d9c88221d0f0f37b6f197969390; \>= cf9e60aa69ae6c40d3e3e4c94dd6c8de31674e9b, \< 19e65c45a1507a1a2926649d2db3583ed9d55fd9; d182994b2b6e23778b146a230efac8f1d77a3445; 427b3fc3d5244fef9c1f910a9c699f2690642f83; … (cvelist)
- Linux: 5.12 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-21715. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-21715.md
Affected: Linux >= d28e783c20033b90a64d4e1307bafb56085d8184, < db79e982c5f9e39ab710cbce55b05f2f5e6f1ca9; >= 4fd0654b8f2129b68203974ddee15f804ec011c2, < a53cb72043443ac787ec0b5fa17bb3f8ff3d462b; >= cf9e60aa69ae6c40d3e3e4c94dd6c8de31674e9b, < 7d7d201eb3b766abe590ac0dda7a508b7db3e357; >= cf9e60aa69ae6c40d3e3e4c…
Fixed in: Linux 7d7d201eb3b766abe590ac0dda7a508b7db3e357, Linux 5a54367a7c2378c65aaa4d3cfd952f26adef7aa7, Linux 2013c95df6752d9c88221d0f0f37b6f197969390, Linux 19e65c45a1507a1a2926649d2db3583ed9d55fd9

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-21715 being exploited?

There is no confirmed exploitation: CVE-2025-21715 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-21715?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-21715?

Linux \>= d28e783c20033b90a64d4e1307bafb56085d8184, \< db79e982c5f9e39ab710cbce55b05f2f5e6f1ca9; \>= 4fd0654b8f2129b68203974ddee15f804ec011c2, \< a53cb72043443ac787ec0b5fa17bb3f8ff3d462b; \>= cf9e60aa69ae6c40d3e3e4c94dd6c8de31674e9b, \< 7d7d201eb3b766abe590ac0dda7a508b7db3e357; \>= cf9e60aa69ae6c40d3e3e4c94dd6c8de31674e9b, \< c94ab07edc2843e2f3d46dbd82e5c681503aaadf; \>= cf9e60aa69ae6c40d3e3e4c94dd6c8de31674e9b, \< c411f9a5fdc9158e8f7c57eac961d3df3eb4d8ca; \>= cf9e60aa69ae6c40d3e3e4c94dd6c8de31674e9b, \< 5a54367a7c2378c65aaa4d3cfd952f26adef7aa7; \>= cf9e60aa69ae6c40d3e3e4c94dd6c8de31674e9b, \< 2013c95df6752d9c88221d0f0f37b6f197969390; \>= cf9e60aa69ae6c40d3e3e4c94dd6c8de31674e9b, \< 19e65c45a1507a1a2926649d2db3583ed9d55fd9; d182994b2b6e23778b146a230efac8f1d77a3445; 427b3fc3d5244fef9c1f910a9c699f2690642f83; …; Linux 5.12.

### Is there a fix for CVE-2025-21715?

Yes. Fixed in Linux 7d7d201eb3b766abe590ac0dda7a508b7db3e357, Linux 5a54367a7c2378c65aaa4d3cfd952f26adef7aa7, Linux 2013c95df6752d9c88221d0f0f37b6f197969390, Linux 19e65c45a1507a1a2926649d2db3583ed9d55fd9. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-21715?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-21715>

HTML: <https://flawdb.com/CVE-2025-21715> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-21715>
