net: davicom: fix UAF in dm9000_drv_remove
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ cf9e60aa69ae6c40d3e3e4c94dd6c8de31674e9b · < 5a54367a7c2378c65aaa4d3cfd952f26adef7aa7| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s davicom network driver can use private network-device data after it has been freed during dm9000_drv_remove. This can cause a use-after-free; the input does not specify how an attacker could trigger it or whether access or user interaction is required.
Engineers running the Linux kernel with the davicom network driver should check their deployments; affected versions are not specified.