CVE-2022-49821 mISDN: fix possible memory leak in mISDN_dsp_element_register()

Medium 5.5 Published Updated

A memory leak in the Linux kernel mISDN driver allows attackers to cause denial of service by exhausting system memory.

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-49821?

CVE-2022-49821 is a medium-severity memory corruption vulnerability in Linux kernel, published on 1 May 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:

mISDN: fix possible memory leak in mISDN_dsp_element_register()

Afer commit 1fa5ae857bb1 ("driver core: get rid of struct device's bus_id string array"), the name of device is allocated dynamically, use put_device() to give up the reference, so that the name can be freed in kobject_cleanup() when the refcount is 0.

The 'entry' is going to be freed in mISDN_dsp_dev_release(), so the kfree() is removed. list_del() is called in mISDN_dsp_dev_release(), so it need be initialized.

Weakness: CWE-401

Which versions are affected by CVE-2022-49821?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2022-49821?

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-49821 being exploited?

There is no known exploitation of CVE-2022-49821 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-49821, GHSA-w642-f79m-mr3c, UBUNTU-CVE-2022-49821.

Is CVE-2022-49821 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free