CVE-2022-49619 (GCVE-0-2022-49619)
Vulnerability from cvelistv5 – Published: 2025-02-26 02:23 – Updated: 2025-10-01 19:36
VLAI?
Title
net: sfp: fix memory leak in sfp_probe()
Summary
In the Linux kernel, the following vulnerability has been resolved:
net: sfp: fix memory leak in sfp_probe()
sfp_probe() allocates a memory chunk from sfp with sfp_alloc(). When
devm_add_action() fails, sfp is not freed, which leads to a memory leak.
We should use devm_add_action_or_reset() instead of devm_add_action().
Severity ?
5.5 (Medium)
CWE
- CWE-401 - Missing Release of Memory after Effective Lifetime
Assigner
References
Impacted products
| Vendor | Product | Version | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Linux | Linux |
Affected:
73970055450eebc6fc36fd170e56cc45889d0093 , < 9ec5a97f327a89031fce6cfc3e95543c53936638
(git)
Affected: 73970055450eebc6fc36fd170e56cc45889d0093 , < 1545bc727625ea6e8decd717e5d1e8cc704ccf8f (git) Affected: 73970055450eebc6fc36fd170e56cc45889d0093 , < ede990cfc42775bd0141e21f37ee365dcaeeb50f (git) Affected: 73970055450eebc6fc36fd170e56cc45889d0093 , < 67dc32542a1fb7790d0853cf4a5cf859ac6a2002 (git) Affected: 73970055450eebc6fc36fd170e56cc45889d0093 , < 204543581a2f26bb3b997a304c0bd06926ba7f15 (git) Affected: 73970055450eebc6fc36fd170e56cc45889d0093 , < f22ddc8a5278d7fb6369a0aeb0d8775a0aefaaee (git) Affected: 73970055450eebc6fc36fd170e56cc45889d0093 , < 0a18d802d65cf662644fd1d369c86d84a5630652 (git) |
|||||||
|
|||||||||
{
"containers": {
"adp": [
{
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "LOCAL",
"availabilityImpact": "HIGH",
"baseScore": 5.5,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "NONE",
"integrityImpact": "NONE",
"privilegesRequired": "LOW",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
"version": "3.1"
}
},
{
"other": {
"content": {
"id": "CVE-2022-49619",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2025-10-01T19:34:45.038655Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-401",
"description": "CWE-401 Missing Release of Memory after Effective Lifetime",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2025-10-01T19:36:50.948Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"drivers/net/phy/sfp.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "9ec5a97f327a89031fce6cfc3e95543c53936638",
"status": "affected",
"version": "73970055450eebc6fc36fd170e56cc45889d0093",
"versionType": "git"
},
{
"lessThan": "1545bc727625ea6e8decd717e5d1e8cc704ccf8f",
"status": "affected",
"version": "73970055450eebc6fc36fd170e56cc45889d0093",
"versionType": "git"
},
{
"lessThan": "ede990cfc42775bd0141e21f37ee365dcaeeb50f",
"status": "affected",
"version": "73970055450eebc6fc36fd170e56cc45889d0093",
"versionType": "git"
},
{
"lessThan": "67dc32542a1fb7790d0853cf4a5cf859ac6a2002",
"status": "affected",
"version": "73970055450eebc6fc36fd170e56cc45889d0093",
"versionType": "git"
},
{
"lessThan": "204543581a2f26bb3b997a304c0bd06926ba7f15",
"status": "affected",
"version": "73970055450eebc6fc36fd170e56cc45889d0093",
"versionType": "git"
},
{
"lessThan": "f22ddc8a5278d7fb6369a0aeb0d8775a0aefaaee",
"status": "affected",
"version": "73970055450eebc6fc36fd170e56cc45889d0093",
"versionType": "git"
},
{
"lessThan": "0a18d802d65cf662644fd1d369c86d84a5630652",
"status": "affected",
"version": "73970055450eebc6fc36fd170e56cc45889d0093",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"drivers/net/phy/sfp.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "4.14"
},
{
"lessThan": "4.14",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "4.14.*",
"status": "unaffected",
"version": "4.14.289",
"versionType": "semver"
},
{
"lessThanOrEqual": "4.19.*",
"status": "unaffected",
"version": "4.19.253",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.4.*",
"status": "unaffected",
"version": "5.4.207",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.10.*",
"status": "unaffected",
"version": "5.10.132",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.15.*",
"status": "unaffected",
"version": "5.15.56",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.18.*",
"status": "unaffected",
"version": "5.18.13",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "5.19",
"versionType": "original_commit_for_fix"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "4.14.289",
"versionStartIncluding": "4.14",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "4.19.253",
"versionStartIncluding": "4.14",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.4.207",
"versionStartIncluding": "4.14",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.10.132",
"versionStartIncluding": "4.14",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.15.56",
"versionStartIncluding": "4.14",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.18.13",
"versionStartIncluding": "4.14",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.19",
"versionStartIncluding": "4.14",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: sfp: fix memory leak in sfp_probe()\n\nsfp_probe() allocates a memory chunk from sfp with sfp_alloc(). When\ndevm_add_action() fails, sfp is not freed, which leads to a memory leak.\n\nWe should use devm_add_action_or_reset() instead of devm_add_action()."
}
],
"providerMetadata": {
"dateUpdated": "2025-05-04T08:41:55.502Z",
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux"
},
"references": [
{
"url": "https://git.kernel.org/stable/c/9ec5a97f327a89031fce6cfc3e95543c53936638"
},
{
"url": "https://git.kernel.org/stable/c/1545bc727625ea6e8decd717e5d1e8cc704ccf8f"
},
{
"url": "https://git.kernel.org/stable/c/ede990cfc42775bd0141e21f37ee365dcaeeb50f"
},
{
"url": "https://git.kernel.org/stable/c/67dc32542a1fb7790d0853cf4a5cf859ac6a2002"
},
{
"url": "https://git.kernel.org/stable/c/204543581a2f26bb3b997a304c0bd06926ba7f15"
},
{
"url": "https://git.kernel.org/stable/c/f22ddc8a5278d7fb6369a0aeb0d8775a0aefaaee"
},
{
"url": "https://git.kernel.org/stable/c/0a18d802d65cf662644fd1d369c86d84a5630652"
}
],
"title": "net: sfp: fix memory leak in sfp_probe()",
"x_generator": {
"engine": "bippy-1.2.0"
}
}
},
"cveMetadata": {
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"assignerShortName": "Linux",
"cveId": "CVE-2022-49619",
"datePublished": "2025-02-26T02:23:37.879Z",
"dateReserved": "2025-02-26T02:21:30.419Z",
"dateUpdated": "2025-10-01T19:36:50.948Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.1",
"vulnerability-lookup:meta": {
"vulnrichment": {
"containers": "{\"cna\": {\"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2025-05-04T08:41:55.502Z\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nnet: sfp: fix memory leak in sfp_probe()\\n\\nsfp_probe() allocates a memory chunk from sfp with sfp_alloc(). When\\ndevm_add_action() fails, sfp is not freed, which leads to a memory leak.\\n\\nWe should use devm_add_action_or_reset() instead of devm_add_action().\"}], \"affected\": [{\"product\": \"Linux\", \"vendor\": \"Linux\", \"defaultStatus\": \"unaffected\", \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"programFiles\": [\"drivers/net/phy/sfp.c\"], \"versions\": [{\"version\": \"73970055450eebc6fc36fd170e56cc45889d0093\", \"lessThan\": \"9ec5a97f327a89031fce6cfc3e95543c53936638\", \"status\": \"affected\", \"versionType\": \"git\"}, {\"version\": \"73970055450eebc6fc36fd170e56cc45889d0093\", \"lessThan\": \"1545bc727625ea6e8decd717e5d1e8cc704ccf8f\", \"status\": \"affected\", \"versionType\": \"git\"}, {\"version\": \"73970055450eebc6fc36fd170e56cc45889d0093\", \"lessThan\": \"ede990cfc42775bd0141e21f37ee365dcaeeb50f\", \"status\": \"affected\", \"versionType\": \"git\"}, {\"version\": \"73970055450eebc6fc36fd170e56cc45889d0093\", \"lessThan\": \"67dc32542a1fb7790d0853cf4a5cf859ac6a2002\", \"status\": \"affected\", \"versionType\": \"git\"}, {\"version\": \"73970055450eebc6fc36fd170e56cc45889d0093\", \"lessThan\": \"204543581a2f26bb3b997a304c0bd06926ba7f15\", \"status\": \"affected\", \"versionType\": \"git\"}, {\"version\": \"73970055450eebc6fc36fd170e56cc45889d0093\", \"lessThan\": \"f22ddc8a5278d7fb6369a0aeb0d8775a0aefaaee\", \"status\": \"affected\", \"versionType\": \"git\"}, {\"version\": \"73970055450eebc6fc36fd170e56cc45889d0093\", \"lessThan\": \"0a18d802d65cf662644fd1d369c86d84a5630652\", \"status\": \"affected\", \"versionType\": \"git\"}]}, {\"product\": \"Linux\", \"vendor\": \"Linux\", \"defaultStatus\": \"affected\", \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"programFiles\": [\"drivers/net/phy/sfp.c\"], \"versions\": [{\"version\": \"4.14\", \"status\": \"affected\"}, {\"version\": \"0\", \"lessThan\": \"4.14\", \"status\": \"unaffected\", \"versionType\": \"semver\"}, {\"version\": \"4.14.289\", \"lessThanOrEqual\": \"4.14.*\", \"status\": \"unaffected\", \"versionType\": \"semver\"}, {\"version\": \"4.19.253\", \"lessThanOrEqual\": \"4.19.*\", \"status\": \"unaffected\", \"versionType\": \"semver\"}, {\"version\": \"5.4.207\", \"lessThanOrEqual\": \"5.4.*\", \"status\": \"unaffected\", \"versionType\": \"semver\"}, {\"version\": \"5.10.132\", \"lessThanOrEqual\": \"5.10.*\", \"status\": \"unaffected\", \"versionType\": \"semver\"}, {\"version\": \"5.15.56\", \"lessThanOrEqual\": \"5.15.*\", \"status\": \"unaffected\", \"versionType\": \"semver\"}, {\"version\": \"5.18.13\", \"lessThanOrEqual\": \"5.18.*\", \"status\": \"unaffected\", \"versionType\": \"semver\"}, {\"version\": \"5.19\", \"lessThanOrEqual\": \"*\", \"status\": \"unaffected\", \"versionType\": \"original_commit_for_fix\"}]}], \"cpeApplicability\": [{\"nodes\": [{\"operator\": \"OR\", \"negate\": false, \"cpeMatch\": [{\"vulnerable\": true, \"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"versionStartIncluding\": \"4.14\", \"versionEndExcluding\": \"4.14.289\"}, {\"vulnerable\": true, \"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"versionStartIncluding\": \"4.14\", \"versionEndExcluding\": \"4.19.253\"}, {\"vulnerable\": true, \"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"versionStartIncluding\": \"4.14\", \"versionEndExcluding\": \"5.4.207\"}, {\"vulnerable\": true, \"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"versionStartIncluding\": \"4.14\", \"versionEndExcluding\": \"5.10.132\"}, {\"vulnerable\": true, \"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"versionStartIncluding\": \"4.14\", \"versionEndExcluding\": \"5.15.56\"}, {\"vulnerable\": true, \"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"versionStartIncluding\": \"4.14\", \"versionEndExcluding\": \"5.18.13\"}, {\"vulnerable\": true, \"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"versionStartIncluding\": \"4.14\", \"versionEndExcluding\": \"5.19\"}]}]}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/9ec5a97f327a89031fce6cfc3e95543c53936638\"}, {\"url\": \"https://git.kernel.org/stable/c/1545bc727625ea6e8decd717e5d1e8cc704ccf8f\"}, {\"url\": \"https://git.kernel.org/stable/c/ede990cfc42775bd0141e21f37ee365dcaeeb50f\"}, {\"url\": \"https://git.kernel.org/stable/c/67dc32542a1fb7790d0853cf4a5cf859ac6a2002\"}, {\"url\": \"https://git.kernel.org/stable/c/204543581a2f26bb3b997a304c0bd06926ba7f15\"}, {\"url\": \"https://git.kernel.org/stable/c/f22ddc8a5278d7fb6369a0aeb0d8775a0aefaaee\"}, {\"url\": \"https://git.kernel.org/stable/c/0a18d802d65cf662644fd1d369c86d84a5630652\"}], \"title\": \"net: sfp: fix memory leak in sfp_probe()\", \"x_generator\": {\"engine\": \"bippy-1.2.0\"}}, \"adp\": [{\"metrics\": [{\"cvssV3_1\": {\"scope\": \"UNCHANGED\", \"version\": \"3.1\", \"baseScore\": 5.5, \"attackVector\": \"LOCAL\", \"baseSeverity\": \"MEDIUM\", \"vectorString\": \"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\", \"integrityImpact\": \"NONE\", \"userInteraction\": \"NONE\", \"attackComplexity\": \"LOW\", \"availabilityImpact\": \"HIGH\", \"privilegesRequired\": \"LOW\", \"confidentialityImpact\": \"NONE\"}}, {\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2022-49619\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2025-10-01T19:34:45.038655Z\"}}}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-401\", \"description\": \"CWE-401 Missing Release of Memory after Effective Lifetime\"}]}], \"providerMetadata\": {\"shortName\": \"CISA-ADP\", \"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"dateUpdated\": \"2025-10-01T16:51:44.960Z\"}, \"title\": \"CISA ADP Vulnrichment\"}]}",
"cveMetadata": "{\"cveId\": \"CVE-2022-49619\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"state\": \"PUBLISHED\", \"assignerShortName\": \"Linux\", \"dateReserved\": \"2025-02-26T02:21:30.419Z\", \"datePublished\": \"2025-02-26T02:23:37.879Z\", \"dateUpdated\": \"2025-05-04T08:41:55.502Z\"}",
"dataType": "CVE_RECORD",
"dataVersion": "5.1"
}
}
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…