CVE-2022-50349 (GCVE-0-2022-50349)
Vulnerability from cvelistv5
Published
2025-09-16 16:11
Modified
2025-09-16 16:11
Severity ?
VLAI Severity ?
EPSS score ?
Summary
In the Linux kernel, the following vulnerability has been resolved:
misc: tifm: fix possible memory leak in tifm_7xx1_switch_media()
If device_register() returns error in tifm_7xx1_switch_media(),
name of kobject which is allocated in dev_set_name() called in device_add()
is leaked.
Never directly free @dev after calling device_register(), even
if it returned an error! Always use put_device() to give up the
reference initialized.
References
Impacted products
Vendor | Product | Version | |||||||
---|---|---|---|---|---|---|---|---|---|
▼ | Linux | Linux |
Version: 2428a8fe2261e901e058d9ea8b6ed7e1b4268b79 Version: 2428a8fe2261e901e058d9ea8b6ed7e1b4268b79 Version: 2428a8fe2261e901e058d9ea8b6ed7e1b4268b79 Version: 2428a8fe2261e901e058d9ea8b6ed7e1b4268b79 Version: 2428a8fe2261e901e058d9ea8b6ed7e1b4268b79 Version: 2428a8fe2261e901e058d9ea8b6ed7e1b4268b79 Version: 2428a8fe2261e901e058d9ea8b6ed7e1b4268b79 Version: 2428a8fe2261e901e058d9ea8b6ed7e1b4268b79 Version: 2428a8fe2261e901e058d9ea8b6ed7e1b4268b79 |
||||||
|
{ "containers": { "cna": { "affected": [ { "defaultStatus": "unaffected", "product": "Linux", "programFiles": [ "drivers/misc/tifm_7xx1.c" ], "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "vendor": "Linux", "versions": [ { "lessThan": "2bbb222a54ff501f77ce593d21b76b79c905045e", "status": "affected", "version": "2428a8fe2261e901e058d9ea8b6ed7e1b4268b79", "versionType": "git" }, { "lessThan": "d861b7d41b17942b337d4b87a70de7cd1dc44d4e", "status": "affected", "version": "2428a8fe2261e901e058d9ea8b6ed7e1b4268b79", "versionType": "git" }, { "lessThan": "1695b1adcc3a7d985cd22fa3b55761edf3fab50d", "status": "affected", "version": "2428a8fe2261e901e058d9ea8b6ed7e1b4268b79", "versionType": "git" }, { "lessThan": "ee2715faf7e7153f5142ed09aacfa89a64d45dcb", "status": "affected", "version": "2428a8fe2261e901e058d9ea8b6ed7e1b4268b79", "versionType": "git" }, { "lessThan": "57c857353d5020bdec8284d9c0fee447484fe5e0", "status": "affected", "version": "2428a8fe2261e901e058d9ea8b6ed7e1b4268b79", "versionType": "git" }, { "lessThan": "848c45964ded537107e010aaf353aa30a0855387", "status": "affected", "version": "2428a8fe2261e901e058d9ea8b6ed7e1b4268b79", "versionType": "git" }, { "lessThan": "35abbc8406cc39e72d3ce85f6e869555afe50d54", "status": "affected", "version": "2428a8fe2261e901e058d9ea8b6ed7e1b4268b79", "versionType": "git" }, { "lessThan": "ef843ee20576039126d34d6eb5f45d14c3e6ce18", "status": "affected", "version": "2428a8fe2261e901e058d9ea8b6ed7e1b4268b79", "versionType": "git" }, { "lessThan": "fd2c930cf6a5b9176382c15f9acb1996e76e25ad", "status": "affected", "version": "2428a8fe2261e901e058d9ea8b6ed7e1b4268b79", "versionType": "git" } ] }, { "defaultStatus": "affected", "product": "Linux", "programFiles": [ "drivers/misc/tifm_7xx1.c" ], "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "vendor": "Linux", "versions": [ { "status": "affected", "version": "2.6.22" }, { "lessThan": "2.6.22", "status": "unaffected", "version": "0", "versionType": "semver" }, { "lessThanOrEqual": "4.9.*", "status": "unaffected", "version": "4.9.337", "versionType": "semver" }, { "lessThanOrEqual": "4.14.*", "status": "unaffected", "version": "4.14.303", "versionType": "semver" }, { "lessThanOrEqual": "4.19.*", "status": "unaffected", "version": "4.19.270", "versionType": "semver" }, { "lessThanOrEqual": "5.4.*", "status": "unaffected", "version": "5.4.229", "versionType": "semver" }, { "lessThanOrEqual": "5.10.*", "status": "unaffected", "version": "5.10.163", "versionType": "semver" }, { "lessThanOrEqual": "5.15.*", "status": "unaffected", "version": "5.15.86", "versionType": "semver" }, { "lessThanOrEqual": "6.0.*", "status": "unaffected", "version": "6.0.16", "versionType": "semver" }, { "lessThanOrEqual": "6.1.*", "status": "unaffected", "version": "6.1.2", "versionType": "semver" }, { "lessThanOrEqual": "*", "status": "unaffected", "version": "6.2", "versionType": "original_commit_for_fix" } ] } ], "cpeApplicability": [ { "nodes": [ { "cpeMatch": [ { "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionEndExcluding": "4.9.337", "versionStartIncluding": "2.6.22", "vulnerable": true }, { "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionEndExcluding": "4.14.303", "versionStartIncluding": "2.6.22", "vulnerable": true }, { "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionEndExcluding": "4.19.270", "versionStartIncluding": "2.6.22", "vulnerable": true }, { "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionEndExcluding": "5.4.229", "versionStartIncluding": "2.6.22", "vulnerable": true }, { "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionEndExcluding": "5.10.163", "versionStartIncluding": "2.6.22", "vulnerable": true }, { "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionEndExcluding": "5.15.86", "versionStartIncluding": "2.6.22", "vulnerable": true }, { "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionEndExcluding": "6.0.16", "versionStartIncluding": "2.6.22", "vulnerable": true }, { "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionEndExcluding": "6.1.2", "versionStartIncluding": "2.6.22", "vulnerable": true }, { "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionEndExcluding": "6.2", "versionStartIncluding": "2.6.22", "vulnerable": true } ], "negate": false, "operator": "OR" } ] } ], "descriptions": [ { "lang": "en", "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmisc: tifm: fix possible memory leak in tifm_7xx1_switch_media()\n\nIf device_register() returns error in tifm_7xx1_switch_media(),\nname of kobject which is allocated in dev_set_name() called in device_add()\nis leaked.\n\nNever directly free @dev after calling device_register(), even\nif it returned an error! Always use put_device() to give up the\nreference initialized." } ], "providerMetadata": { "dateUpdated": "2025-09-16T16:11:41.340Z", "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "shortName": "Linux" }, "references": [ { "url": "https://git.kernel.org/stable/c/2bbb222a54ff501f77ce593d21b76b79c905045e" }, { "url": "https://git.kernel.org/stable/c/d861b7d41b17942b337d4b87a70de7cd1dc44d4e" }, { "url": "https://git.kernel.org/stable/c/1695b1adcc3a7d985cd22fa3b55761edf3fab50d" }, { "url": "https://git.kernel.org/stable/c/ee2715faf7e7153f5142ed09aacfa89a64d45dcb" }, { "url": "https://git.kernel.org/stable/c/57c857353d5020bdec8284d9c0fee447484fe5e0" }, { "url": "https://git.kernel.org/stable/c/848c45964ded537107e010aaf353aa30a0855387" }, { "url": "https://git.kernel.org/stable/c/35abbc8406cc39e72d3ce85f6e869555afe50d54" }, { "url": "https://git.kernel.org/stable/c/ef843ee20576039126d34d6eb5f45d14c3e6ce18" }, { "url": "https://git.kernel.org/stable/c/fd2c930cf6a5b9176382c15f9acb1996e76e25ad" } ], "title": "misc: tifm: fix possible memory leak in tifm_7xx1_switch_media()", "x_generator": { "engine": "bippy-1.2.0" } } }, "cveMetadata": { "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "assignerShortName": "Linux", "cveId": "CVE-2022-50349", "datePublished": "2025-09-16T16:11:41.340Z", "dateReserved": "2025-09-16T16:03:27.882Z", "dateUpdated": "2025-09-16T16:11:41.340Z", "state": "PUBLISHED" }, "dataType": "CVE_RECORD", "dataVersion": "5.1", "vulnerability-lookup:meta": { "nvd": "{\"cve\":{\"id\":\"CVE-2022-50349\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-09-16T17:15:34.703\",\"lastModified\":\"2025-09-17T14:18:55.093\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nmisc: tifm: fix possible memory leak in tifm_7xx1_switch_media()\\n\\nIf device_register() returns error in tifm_7xx1_switch_media(),\\nname of kobject which is allocated in dev_set_name() called in device_add()\\nis leaked.\\n\\nNever directly free @dev after calling device_register(), even\\nif it returned an error! Always use put_device() to give up the\\nreference initialized.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/1695b1adcc3a7d985cd22fa3b55761edf3fab50d\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/2bbb222a54ff501f77ce593d21b76b79c905045e\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/35abbc8406cc39e72d3ce85f6e869555afe50d54\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/57c857353d5020bdec8284d9c0fee447484fe5e0\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/848c45964ded537107e010aaf353aa30a0855387\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/d861b7d41b17942b337d4b87a70de7cd1dc44d4e\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/ee2715faf7e7153f5142ed09aacfa89a64d45dcb\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/ef843ee20576039126d34d6eb5f45d14c3e6ce18\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/fd2c930cf6a5b9176382c15f9acb1996e76e25ad\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}" } }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…