dpaa2-eth: put MAC endpoint device on disconnect
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 71947923089353f23f4f210864903c4dcf2c1696 · < a3cecf169cc652b558d08661bb6ce55e4c933ec0| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
dpaa2-eth: put MAC endpoint device on disconnect
fsl_mc_get_endpoint() returns the MAC endpoint device with a reference taken through device_find_child(). The Ethernet connect path stores that device in mac->mc_dev and keeps it for the lifetime of the connected MAC object.
However, the disconnect path only disconnects and closes the MAC before freeing the dpaa2_mac object. It does not drop the endpoint device reference stored in mac->mc_dev, so every successful connect leaks that device reference when the MAC is later disconnected.
Drop the endpoint device reference after closing the MAC and before freeing the dpaa2_mac object.
From the CVE record · Linux
The Linux kernel’s dpaa2-eth MAC disconnect path fails to release a device reference acquired during connect. Each successful connect followed by a disconnect leaks a reference; the input does not describe an attacker scenario, authentication requirement, or user interaction.
Engineers running Linux kernels with dpaa2-eth should check their versions against the vendor advisory; affected versions are not specified.