forcedeth: fix UAF of txrx_stats in nv_remove
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ f4b633b911fd3b4cbe1dc065e8fb064078d0889d · < ae20a8a4de06a289d40b0a0633d8d573f1fcb049| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
forcedeth: fix UAF of txrx_stats in nv_remove
nv_remove() frees the per-CPU txrx_stats before unregister_netdev(). Until unregister completes, ndo_get_stats64, the NAPI/xmit data path, and nv_close()/drain may still access txrx_stats, leading to a use-after-free.
Free the stats only after unregister_netdev().
From the CVE record · Linux
During forcedeth device removal, the kernel frees per-CPU txrx_stats before network-device unregistration completes. Code that still accesses those stats can encounter a use-after-free. The input does not specify how an attacker could trigger it or whether authentication, network access, or user interaction is required.
Engineers running the Linux kernel with forcedeth should check their versions; affected versions are not specified.