# CVE-2024-50166: fsl/fman: Fix refcount handling of fman-related devices

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2024-11-07T09:31:42.793Z
- Modified: 2026-06-17T08:03:45.950Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 3933961682a30ae7d405cda344c040a129fea422 before 5ed4334fc9512f934fe2ae9c4cf7f8142e451b8b; from 3933961682a30ae7d405cda344c040a129fea422 before 3c2a3619d565fe16bf59b0a047bab103a2ee4490; from 3933961682a30ae7d405cda344c040a129fea422 before 1dec67e0d9fbb087c2ab17bf1bd17208231c3bb1; 4.5 (not affected: before 4.5; from 6.6.59 up to 6.6.*; from 6.11.6 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: from 4.5 before 6.6.59; from 6.7 before 6.11.6; 6.12

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/5ed4334fc9512f934fe2ae9c4cf7f8142e451b8b> (patch)
- <https://git.kernel.org/stable/c/3c2a3619d565fe16bf59b0a047bab103a2ee4490> (patch)
- <https://git.kernel.org/stable/c/1dec67e0d9fbb087c2ab17bf1bd17208231c3bb1> (patch)

## Sources

- CVE List: [CVE-2024-50166](https://www.cve.org/CVERecord?id=CVE-2024-50166), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-50166](https://nvd.nist.gov/vuln/detail/CVE-2024-50166), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-50166 · Whole record: https://cve.day/CVE-2024-50166.json · Rebuilt by cve.day 2026-11-25T22:58:47.867Z
