CVE-2022-50349 misc: tifm: fix possible memory leak in tifm_7xx1_switch_media()
A memory leak in the tifm driver allows attackers to cause denial of service by exhausting kernel memory through repeated device registration failures.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-50349?
CVE-2022-50349 is a medium-severity memory corruption vulnerability in Linux kernel, published on 16 Sep 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-401
Which versions are affected by CVE-2022-50349?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2022-50349?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2022-50349 being exploited?
There is no known exploitation of CVE-2022-50349 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2022-50349, GHSA-m889-2hfp-9m7j, UBUNTU-CVE-2022-50349.