CVE-2025-21715

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

Configuration 1 (hide)

OR cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

History

01 Apr 2025, 18:29

Type Values Removed Values Added
First Time Linux
Linux linux Kernel
References () https://git.kernel.org/stable/c/19e65c45a1507a1a2926649d2db3583ed9d55fd9 - () https://git.kernel.org/stable/c/19e65c45a1507a1a2926649d2db3583ed9d55fd9 - Patch
References () https://git.kernel.org/stable/c/2013c95df6752d9c88221d0f0f37b6f197969390 - () https://git.kernel.org/stable/c/2013c95df6752d9c88221d0f0f37b6f197969390 - Patch
References () https://git.kernel.org/stable/c/5a54367a7c2378c65aaa4d3cfd952f26adef7aa7 - () https://git.kernel.org/stable/c/5a54367a7c2378c65aaa4d3cfd952f26adef7aa7 - Patch
References () https://git.kernel.org/stable/c/7d7d201eb3b766abe590ac0dda7a508b7db3e357 - () https://git.kernel.org/stable/c/7d7d201eb3b766abe590ac0dda7a508b7db3e357 - Patch
References () https://git.kernel.org/stable/c/a53cb72043443ac787ec0b5fa17bb3f8ff3d462b - () https://git.kernel.org/stable/c/a53cb72043443ac787ec0b5fa17bb3f8ff3d462b - Patch
References () https://git.kernel.org/stable/c/c411f9a5fdc9158e8f7c57eac961d3df3eb4d8ca - () https://git.kernel.org/stable/c/c411f9a5fdc9158e8f7c57eac961d3df3eb4d8ca - Patch
References () https://git.kernel.org/stable/c/c94ab07edc2843e2f3d46dbd82e5c681503aaadf - () https://git.kernel.org/stable/c/c94ab07edc2843e2f3d46dbd82e5c681503aaadf - Patch
References () https://git.kernel.org/stable/c/db79e982c5f9e39ab710cbce55b05f2f5e6f1ca9 - () https://git.kernel.org/stable/c/db79e982c5f9e39ab710cbce55b05f2f5e6f1ca9 - Patch
CPE cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

13 Mar 2025, 13:15

Type Values Removed Values Added
Summary
  • (es) En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: davicom: fix UAF in dm9000_drv_remove dm son datos privados de netdev y no se pueden usar después de la llamada a free_netdev(). El uso de dm después de free_netdev() puede provocar un error de UAF. Solucione el problema moviendo free_netdev() al final de la función. Esto es similar al problema solucionado en el commit ad297cd2db89 ("net: qcom/emac: fix UAF in emac_remove"). Nuestra herramienta de análisis estático detecta este error.
References
  • () https://git.kernel.org/stable/c/7d7d201eb3b766abe590ac0dda7a508b7db3e357 -
  • () https://git.kernel.org/stable/c/a53cb72043443ac787ec0b5fa17bb3f8ff3d462b -
  • () https://git.kernel.org/stable/c/db79e982c5f9e39ab710cbce55b05f2f5e6f1ca9 -

27 Feb 2025, 18:15

Type Values Removed Values Added
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 7.8
CWE CWE-416

27 Feb 2025, 02:15

Type Values Removed Values Added
New CVE

Information

Published : 2025-02-27 02:15

Updated : 2025-04-01 18:29


NVD link : CVE-2025-21715

Mitre link : CVE-2025-21715

CVE.ORG link : CVE-2025-21715


JSON object : View

Products Affected

linux

  • linux_kernel
CWE
CWE-416

Use After Free