CVE-2022-50349

misc: tifm: fix possible memory leak in tifm_7xx1_switch_media()

MEDIUM
5.5
CVSS Score
Published: September 16, 2025 at 04:11 PM UTC
Updated: June 17, 2026 at 05:23 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

2.6.22 ≤ v < 4.14.3032.6.22 ≤ v < 4.19.2702.6.22 ≤ v < 4.9.3372.6.22 ≤ v < 5.10.1632.6.22 ≤ v < 5.15.862.6.22 ≤ v < 5.4.2292.6.22 ≤ v < 6.0.162.6.22 ≤ v < 6.1.22.6.22 ≤ v < 6.24.10 ≤ v < 4.14.3034.15 ≤ v < 4.19.2704.20 ≤ v < 5.4.2295.11 ≤ v < 5.15.865.16 ≤ v < 6.0.165.5 ≤ v < 5.10.1636.1 ≤ v < 6.1.22.6.222428a8fe2261e901e058d9ea8b6ed7e1b4268b79
Vendor states this is fixed in 1695b1adcc3a7d985cd22fa3b55761edf3fab50d (fixed)
Vendor states this is fixed in 2bbb222a54ff501f77ce593d21b76b79c905045e (fixed)
Vendor states this is fixed in 35abbc8406cc39e72d3ce85f6e869555afe50d54 (fixed)
Vendor states this is fixed in 57c857353d5020bdec8284d9c0fee447484fe5e0 (fixed)
Vendor states this is fixed in 848c45964ded537107e010aaf353aa30a0855387 (fixed)
Vendor states this is fixed in d861b7d41b17942b337d4b87a70de7cd1dc44d4e (fixed)
Vendor states this is fixed in ee2715faf7e7153f5142ed09aacfa89a64d45dcb (fixed)
Vendor states this is fixed in ef843ee20576039126d34d6eb5f45d14c3e6ce18 (fixed)
Vendor states this is fixed in fd2c930cf6a5b9176382c15f9acb1996e76e25ad (fixed)
Vendor states this is fixed in 2.6.22 (unaffected)
Vendor states this is fixed in 4.14.303 (unaffected)
Vendor states this is fixed in 4.19.270 (unaffected)
Vendor states this is fixed in 4.9.337 (unaffected)
Vendor states this is fixed in 5.10.163 (unaffected)
Vendor states this is fixed in 5.15.86 (unaffected)
Vendor states this is fixed in 5.4.229 (unaffected)
Vendor states this is fixed in 6.0.16 (unaffected)
Vendor states this is fixed in 6.1.2 (unaffected)
Vendor states this is fixed in 6.2 (unaffected)

References (9)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1695b1adcc3a7d985cd22fa3b55761edf3fab50d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2bbb222a54ff501f77ce593d21b76b79c905045e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/35abbc8406cc39e72d3ce85f6e869555afe50d54
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/57c857353d5020bdec8284d9c0fee447484fe5e0
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/848c45964ded537107e010aaf353aa30a0855387
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d861b7d41b17942b337d4b87a70de7cd1dc44d4e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ee2715faf7e7153f5142ed09aacfa89a64d45dcb
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ef843ee20576039126d34d6eb5f45d14c3e6ce18

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.5MEDIUMCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card