fsl/fman: Fix refcount handling of fman-related devices
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.6.596.11.66.12In the Linux kernel, the following vulnerability has been resolved:
fsl/fman: Fix refcount handling of fman-related devices
In mac_probe() there are multiple calls to of_find_device_by_node(), fman_bind() and fman_port_bind() which takes references to of_dev->dev. Not all references taken by these calls are released later on error path in mac_probe() and in mac_remove() which lead to reference leaks.
Add references release.
From the CVE record · Linux
The Linux kernel’s fsl/fman driver can leak device references when mac_probe() encounters an error or when mac_remove() runs. The input does not establish whether an attacker can trigger these paths or specify access, authentication, or user-interaction requirements.
Engineers running Linux kernels with the fsl/fman driver should check their kernel vendor’s guidance; affected versions are not specified.