fsl/fman: Fix refcount handling of fman-related devices
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.11.6, 6.6.59
- CVEs
- CVE-2024-50166
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 16:19 UTC · Revision 1
Source evidence
fsl/fman: Fix refcount handling of fman-related devices
core-osv · Original sourcePublished 7 Nov 2024, 09:31 UTC
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.
osv:CVE-2024-50166
Kernel
Fixed versions: 6.6.59, 6.11.6
Complete source record
{
"id": "1c74abb6fcd7701c03ac2c6730216c6b4438395215f7a4a435bf9b5aec6e1816",
"url": "https://osv.dev/vulnerability/CVE-2024-50166",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "fsl/fman: Fix refcount handling of fman-related devices",
"summary": "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.",
"evidence": "osv:CVE-2024-50166",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.6.59",
"evidence": "/affected/1/ranges"
},
{
"value": "6.11.6",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "medium",
"structured": {
"id": "CVE-2024-50166",
"aliases": [
"CVE-2024-50166"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "3933961682a30ae7d405cda344c040a129fea422"
},
{
"fixed": "5ed4334fc9512f934fe2ae9c4cf7f8142e451b8b"
},
{
"fixed": "3c2a3619d565fe16bf59b0a047bab103a2ee4490"
},
{
"fixed": "1dec67e0d9fbb087c2ab17bf1bd17208231c3bb1"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50166.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.5.0"
},
{
"fixed": "6.6.59"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.11.6"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50166.json"
}
}
],
"modified": "2026-10-28T02:30:21.289596635Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/1dec67e0d9fbb087c2ab17bf1bd17208231c3bb1",
"https://git.kernel.org/stable/c/3c2a3619d565fe16bf59b0a047bab103a2ee4490",
"https://git.kernel.org/stable/c/5ed4334fc9512f934fe2ae9c4cf7f8142e451b8b",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50166.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-50166",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50166.json"
}
},
"related_cves": [
{
"value": "CVE-2024-50166",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 487023,
"published_at": "2024-11-07T09:31:42.793+00:00"
}