net: fec: Better handle pm_runtime_get() failing in .remove()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ a31eda65ba210741b598044d045480494d0ed52a · < 9407454a9b18bbeff216e8ecde87ffb2171e9ccf| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: fec: Better handle pm_runtime_get() failing in .remove()
In the (unlikely) event that pm_runtime_get() (disguised as pm_runtime_resume_and_get()) fails, the remove callback returned an error early. The problem with this is that the driver core ignores the error value and continues removing the device. This results in a resource leak. Worse the devm allocated resources are freed and so if a callback of the driver is called later the register mapping is already gone which probably results in a crash.
From the CVE record · Linux
The Linux kernel's net fec driver can return early from device removal if pm_runtime_resume_and_get() fails, leaving resources unreleased while managed resources are freed. A later driver callback may then access a freed register mapping and crash. The input does not specify an attack path, authentication requirements, or user interaction.
Engineers running Linux kernels with the net fec driver should check their kernel version; affected versions are not specified.