Bug 2348544 (CVE-2025-21715) - CVE-2025-21715 kernel: net: davicom: fix UAF in dm9000_drv_remove
Summary: CVE-2025-21715 kernel: net: davicom: fix UAF in dm9000_drv_remove
Keywords:
Status: NEW
Alias: CVE-2025-21715
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-27 03:02 UTC by OSIDB Bzimport
Modified: 2025-02-27 16:50 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-02-27 03:02:40 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.