net: davicom: fix UAF in dm9000_drv_remove (Linux Linux)

CVE-2025-21715
HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.24 % · percentile 15 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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.

Weaknesses (CWE)

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HCISA-ADP
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected d28e783c20033b90a64d4e1307bafb56085d8184 < db79e982c5f9e39ab710cbce55b05f2f5e6f1ca9 ; affected 4fd0654b8f2129b68203974ddee15f804ec011c2 < a53cb72043443ac787ec0b5fa17bb3f8ff3d462b ; affected cf9e60aa69ae6c40d3e3e4c94dd6c8de31674e9b < 7d7d201eb3b766abe590ac0dda7a508b7db3e357 ; affected cf9e60aa69ae6c40d3e3e4c94dd6c8de31674e9b < c94ab07edc2843e2f3d46dbd82e5c681503aaadf ; affected cf9e60aa69ae6c40d3e3e4c94dd6c8de31674e9b < c411f9a5fdc9158e8f7c57eac961d3df3eb4d8ca ; affected cf9e60aa69ae6c40d3e3e4c94dd6c8de31674e9b < 5a54367a7c2378c65aaa4d3cfd952f26adef7aa7
Linux · Linuxaffected 5.12 ; unaffected 0 < 5.12 ; unaffected 5.4.291 ≤ 5.4.* ; unaffected 5.10.235 ≤ 5.10.* ; unaffected 5.15.179 ≤ 5.15.* ; unaffected 6.1.129 ≤ 6.1.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD